inout Dinplayer D01-MKII User manual

0
qq
Dinplayer mod.D01-MKII USER MANUAL
Version 2.3

DINplayer User Manual v.2.3
Page 1
Warranty
DINplayer has a 24 month warranty on the electronic parts, running from the date of
purchase. The warranty will not be valid in case of tampering with the device or in case
personnel not authorised by the manufacturer or by the authorised dealer should carry out
work on it.
N.B. responsibility of the purchaser: in case of operation under warranty, the device must
be packaged so as to prevent damage during transport and shipped to the manufacturer
together with all the accessories.
Warranty rules
1. In order to exercise his warranty rights, the purchaser must enclose with the device a
copy of evidence of purchase duly stamped by the dealer (bill/invoice).
2. The warranty lasts for 24 months for the electronic parts. The warranty is granted at the
point of sale or else directly requested from the manufacturer.
3. The warranty only covers damage to the product which makes it work badly.
4. Work under warranty will only mean repairing or replacing, free of charge, any parts
acknowledged to be defective during manufacture or in their material, including labour
costs.
5. The warranty does not apply to damage caused by negligence or failure to comply with
the instructions, or damage caused by unauthorised people, with a special reference to
the outside parts.
6. Also, the warranty does not apply to damage caused to the device by connection to
unsuitable power sources.
7. The warranty does not cover parts subject to wear after use, or the container if the
material is not defective.
8. The warranty does not include transport costs, which will be paid for by the purchaser
in relation to the manner and time of transport.
9. The warranty will run out after 24 months have elapsed. In this case, service will be
provided charging for the parts replaced, labour costs and transport according to the
current rates.
10. Any dispute will be settled exclusively before the Court of Law of Venice.

DINplayer User Manual v.2.3
Page 2
TABLE OF CONTENTS
1.
Introduction
1.1 What is DINplayer?
1.2 What is Mp3?
1.3 Encoder
1.4 Decoder
1.5 Player
1.6 Wave
1.7 Audio compression in various formats
2.
Installation
2.1 Content of the DINplayer kit
2.2 Notices
3.
Description and connections
3.1 Command description
3.2 Connection description
3.3 Power supply
3.4 Vplay output for external relay
3.5 DINplayer configurations
3.6 Logical inputs
3.7 Logical inputs: music player
4.
Configuration file
4.1 What is the configuration file?
4.2 Content of the configuration file
4.3 How it is managed by DINplayer
4.4 Preparing the file
4.5 Memorising the files in the Flash memory
4.6 Audio adjustment parameters
4.7 Power amplifier configuration
4.8 Logical inputs configuration
4.9 Playlist/music player configuration
4.10 RS485 serial port communication parameters
5.
Operation with logical inputs
5.1 Introduction to the logical input operation mode
5.2 Binary input command codes
6.
Playlist operation
6.1 Introduction to playlist mode operation – MPLL parameter
6.2 Playlist player
6.3 Playlist player with logic inputs
6.4 Playlist player and RS485

DINplayer User Manual v.2.3
Page 3
7.
Music player mode
7.1 Music player function
7.2 Music player with logical inputs function
8.
RS485 serial communication
8.1 DINplayer and RS485
8.2 Serial port communication parameters (config.txt)
8.3 Framing error on master
8.4 NAK reply by DINplayer
8.5 Transmitting a command by master
8.6 How to read the figures of the dedicated protocols
8.7 When the Master delivers a command to DINplayer
8.8 Basic format of the dedicated protocols
8.9 Basic set-up of the data transmission
8.10 Control codes
8.11 Address (ADD)
8.12 Command (CMD)
8.13 CheckSum (CHK)
8.14 Basic protocol
8.15 Basic protocol with CheckSum
8.16 Basic protocol with CR and LF
8.17 Basic protocol with CheckSum, CR and LF
8.18 List of commands
8.19 Error codes
9.
Specifications
9.1 Technical features
9.2 Obsolete devices disposal
Addendum:
examples of serial RS485 communication

DINplayer User Manual v.2.3
Page 4
1Introduction
1.1 What is DINplayer?
DINplayer is an advanced MP3 player with solid state memory, which has been designed
to play warning messages, voice alerts and all types of audio files, recalled by the use of
logical inputs in binary combination.
Standard DIN clamp housing allows to use it with different automation systems: PLC,
industrial computers, touch screen operated terminals, automatic distributors, commercial
promotion systems and various uses on switchboards.
1.2 What is Mp3?
Mp3 is an acronym for Mpeg-1 layer 3. This is an audio compression standard which
eliminates sounds which the human ear cannot hear via a psycho-acoustic algorithm. The
purpose of this compression is to reduce the space taken up by an audio file while still
ensuring excellent quality. The greater the compression, the less the audio quality. The
right compromise, which guarantees a quality comparable to that of a Compact Disc, is
128 Kbps (thousands of bits per second) which represents the most widely used manner,
and reduces the size of an uncompressed file by 10 times.
1.3 Encoder
Software which compresses audio CDs or wave files into MP3s. There are many software
of this kind, and it is virtually impossible to say which is the best.
1.4 Decoder
Software which decompresses an MP3 audio file in order to send it to a digital-analog
converter and reconstruct the original audio signal.
1.5 Player
Hardware and software system able to read MP3 audio files. DINplayer is able to carry out
this function.
1.6 Wave
High quality audio format (extension .wav), compatible with the tracks of normal music
CD’s. If one uses a wave file in format 44.1 KHz/sec. at 16 bit in stereo, one will get
exactly the same quality as a music CD, but the size of the file is about 10Mb per minute.
1.7 Audio compression in various formats.
The following graphic shows the space taken up by an uncompressed audio file of about 5
minutes (.wav) and compressed in MP3 at 128Kbps (MP3).
Wave 51,1 MB
MP3 4,6 MB

DINplayer User Manual v.2.3
Page 5
2Installation
2.1 Content of the kit DINplayer
-n° 1 DINplayer device;
-n° 1 user manual;
-n° 1 flash memory;
2.2 Notices
1. DINplayer has been designed and made to work only with the following mains power
supply: 12÷24VDC.
2. The device must be serviced only by qualified staff.
3. Do not put objects inside the device through the openings, in order to prevent the risk
of fire or shock.
4. Disconnect the device from the power socket before cleaning. Clean the device using a
soft, dry cloth. Do not use liquids or spray which can contain flammable substances.
Obsolete devices disposal :
When you find this picture on a device, it means that the device is
compliant with European Directive 2002/96/EC.
All electronic and electric devices should be disposed separately from
normal garbage.
The proper disposal of old devices, accessories, and of the batteries in
particular, it contributes to prevent possible negative consequences for
human health and for the environment.
For more detailed information on the disposal of obsolete devices, contact
the municipality, the garbage disposal service or the shop in which the
product has been acquired.

DINplayer User Manual v.2.3
Page 6
3Description and connections
3.1 Command description
A- Flash memory introduction slot for Secure Digital or MultiMedia Card.
B-
Command keys:
= precedent MP3 file
= (brief pressure) PLAY / (prolonged pressure) increase output volume
= (brief pressure) STOP / (prolonged pressure) reduce output volume
=nextMP3file
IMPORTANT:
- volume control with the keys is active only during the playing of the MP3 file.
C- Green LED: lit =
blinking =
MP3 file playing;
DINplayer in STOP.
D- Red LED: lit = device is live.

DINplayer User Manual v.2.3
Page 7
3.2 Connection description
1- COM IN Common inputs (COM INPUT)
2- +VDC Power supply 12÷24VDC.
3- GND Ground supply / Ground signal of pre-amplified audio output.
4- Vplay Active when device is playing. It supplies the same voltage power of the
DINplayer (VDC) and it can directly drive an external relay (150mA max).
5-
OUT L
SPK+
Pre-amplified audio output L channel.
Configurable for Amplified 20W audio output for speaker (4Ω min.)
6-
OUT R
SPK-
Pre-amplified audio output R channel.
Configurable for Ground signal of amplified audio output.
7- IN1 Input for activating 1.mp3 file (direct or bit 0 in binary combination).
8- IN2 Input for activating 2.mp3 file (direct or bit 1 in binary combination).
9- IN3 Input for activating 4.mp3 file (direct or bit 2 in binary combination).
10 - IN4 Input for activating 8.mp3 file (direct or bit 3 in binary combination).
11 -
IN5
485A
Input for activating 16.mp3 file (direct or bit 4 in binary combination).
Configurable for serial RS485 communication (see chap. 8).
12 -
IN6
485B
Input for activating 32.mp3 file (direct or bit 5 in binary combination).
Configurable for serial RS485 communication (see chap. 8).
3.3 Power supply
DINplayer may operate with the following voltage power supplies: 12÷24VDC.
In the case of configuration with power amplifier, the use of a suitable power supply is
recommended to supply the required audio power . With a 4Ωloudspeaker, DINplayer can
absorb current peaks of 2A.
The standby consumption is 1W.
3.4 Vplay output for external relay
The output of the DINplayer is of a transistor type and is
optoisolated towards the inside CPU.
When activated, it provides on the output terminal the
same feeding voltage applied on the module. This voltage
may be applied to the input of a PLC or else it may
directly pilot the spool of an outside relay.
The output can provide a maximum current of 150mA and
is equipped with a protection diode for inverse currents
induced by the spool of any outside relay.
The output is activated at the time when the reproduction
of an audio file starts, and is maintained in this state
throughout the duration of the file.

DINplayer User Manual v.2.3
Page 8
3.5 DINplayer Configurations
DINplayer in addition to the 6 logic inputs for the audio files activation has a mono 20W
amplifier to directly drive an external loudspeaker and it can be connected through the
serial port to an RS485 bus, to be controlled by a master system or by a computer.
To configure the device to meet your needs, gently use a screwdriver to lift the clamps
cover and to move the P1, P2, P3, P4 jumpers as displayed below.
1. DINplayer with 6 logical inputs and preamplified STEREO output.
In the "factory default configuration" the logical inputs mode is active and the power
amplifier is NOT active.
IMPORTANT:
Check if the MOMD parameter is correctly setted (par. 4.7)
DEFAULT: MOMD=2, power amplifier NOT ACTIVE.
6 logical inputs and preamplified
STEREO output (DEFAULT)

DINplayer User Manual v.2.3
Page 9
2. DINplayer with 6 logical inputs and amplified 20W mono output.
The 20W mono amplifier can directly drive an external loudspeaker with the impedance
of 4Ω min. To set the amplified mode, lift the clamps cover and move the jumpers P3
and P4 as in figure.
Attention! Use a loudspeaker with equal or greater power than the one driven by the
internal amplifier.
Do not to place the audio connection cables close to the electric power cables to avoid
possible troubles.
To set the logical inputs mode, lift the clamps cover with a screwdriver and move the
jumpers P3 and P4 like in figure.
IMPORTANT:
Check if the MOMD parameter is correctly setted (par. 4.7)
MOMD=0, power amplifier ACTIVE.
6 logical inputs and amplified
MONO output

DINplayer User Manual v.2.3
Page 10
3. DINplayer with RS485 and premaplified STEREO output.
To set the preamplified output mode, lift the clamps cover with a screwdriver and move
the jumpers P3 and P4 like in figure.
To enable the serial port through the 11/485A and 12/485B pins, raise the cover of the
device and move the P1 and P2 jumpers of the diagram as indicated in the following
figure.
With the RS485 connection one must supply termination resistors on both extremes of
the line, to avoid the generation of stationary waves and to define the impedance of the
lines even in absence of transmission. DINplayer already has within itself a termination
resistor, enabled through a JP1 bridge jumper; to activate such resistance it is
sufficient to raise the cover of the device and move the JP1 jumper as indicated in the
figure.
RS485 and preamplified STEREO
output

DINplayer User Manual v.2.3
Page 11
4. DINplayer with RS485 and amplified 20W MONO output.
The 20W mono amplifier can directly drive an external loudspeaker with the impedance
of 4Ω min. To set the amplified mode, lift the clamps cover and move the jumpers P3
and P4 like in figure.
Attention! Use a loudspeaker with equal or greater power than the one driven by the
internal amplifier. Do not place the audio connection cables close to the electric power
cables to avoid possible troubles.
To enable the serial port through the 11/485A and 12/485B pins, raise the cover of the
device and move the P1 and P2 jumpers of the diagram as indicated in the following
figure.
With the RS485 connection one must supply termination resistors on both extremes of
the line, to avoid the generation of stationary waves and to define the impedance of the
lines even in absence of transmission. DINplayer already has within itself a termination
resistor, enabled through a JP1 bridge jumper; to activate such resistance it is
sufficient to raise the cover of the device and move the JP1 jumper as indicated in the
figure.
RS485 and amplified MONO output.

DINplayer User Manual v.2.3
Page 12
3.6 Logical inputs
DINplayer has six optoisolated logical inputs, to trigger the audio files. To activate an input,
apply a tension between 12 and 24Vdc to the Common inputs pin and the desired logical
input.
Using the binary combination of logical inputs, it is possible to activate a maximum of 63
audio files (see table 5.2).
The positive pole can be indifferently connected to the common inputs or to the logical input.
Logical input connected to ground (GND)
and external power supply:
connect Common input (pin 1) to a tension
between
12 and 24Vdc. To activate the
input connect it to power supply ground.
Logical input connected to external
power supply (12-24Vdc):
connect Common input (pin 1) to the power
supply ground. To activate the input connect
it to the power supply positive.

DINplayer User Manual v.2.3
Page 13
Logical input connected to ground (GND)
and internal power supply:
connect the Common input (pin 1) to the
DINplayer power supply (12-24Vdc). To
activate the input connect it to ground
(GND).
Logical input connected to positive pole
and internal power supply:
Connect the Common input (pin1) to the
DINplayer power supply ground.
To activate the input connect it to the
DINplayer power supply positive pole.

DINplayer User Manual v.2.3
Page 14
3.7 Logical input: music player.
In music player mode (see chapter 7), logical inputs have the typical player functionality, like in
the figure.

DINplayer User Manual v.2.3
Page 15
4Configuration file
4.1 What is the configuration file?
DINplayer is a very versatile device which can be adapted to the needs of the application
in which it is used. Different applications may require adjustment of volume, tone,
loudness, special parameters of communication or timing. The text file, called
‘configuration file’ and stored in the main directory of the flash memory, together with the
audio files, makes it possible to programme the various parameters of DINplayer.
This file must be assigned the name config.txt (this extension has been used so it can be
modified by any text editor, including those for portable PocketPC terminals).
4.2 Content of the configuration file
Each line of the configuration file consists of:
Mnemonic code of the parameter to be set. It always consists of four CAPITAL
alphanumeric characters, and must always be at the beginning of the line. No more
than one parameter is permitted on the same line.
Separating character. ‘=’.ThisMUST be inserted just after the mnemonic code, without
any spacing or tabulation character.
The relevant numerical parameter expressed as a decimal, to be inserted directly after
the separation character, without any spacing or tabulation character.
Example file config.txt:
LOUT=14
LLOU=10
LTRE=14
LBAS=10
Audio adjustment parameters
TPCM=10
MICP=1
MIRS=1
Logical inputs parameters (direct or binary combinaton)
MPLL=1 Playlist/music player mode parameter
MOMD=0 Power amplifier on/off parameter
CMAD=0
CMCK=1
CMCL=0
CMBR=3
CMPR=0
CMSB=1
CMDB=8
CMDR=0
CMNR=0
RS485 serial port communication parameters

DINplayer User Manual v.2.3
Page 16
4.3 How it is managed by DINplayer
At the time the device is turned on, or when the flash memory is inserted, DINplayer will
start to read the main directory of the memory; once it has found the file config.txt,it
interprets the parameters inserted in each line, memorising them permanently in its
internal memory, of a non volatile kind. The parameters therefore stay in memory even
after the device has been turned off. This is why it is not indispensable for the
configuration file to be always present in the flash memory: once all the parameters have
been acquired, this file can also be deleted.
NOTE: If it is necessary to configure various DINplayers with the same parameters, one
can prepare a single flash memory with the appropriate config.txt file, alternately insert this
memory on all the modules to be configured, then insert the memory with the audio files
only.
4.4 Preparing the file
To create the file, one can use an ordinary text editor (like Windows Notebook). The file
must be saved as a pure text file (.txt). Should other programmes be used (e.g. Microsoft
Word) one must be careful to save the document as “text only”: otherwise, control
characters would be inserted which would make it impossible for DINplayer to interpret this
file.
4.5 Memorising the files in the flash memory
The configuration file and all the MP3 audio files can be memorised in the flash memory
via a special USB reader/writer for PC.

DINplayer User Manual v.2.3
Page 17
4.6 Audio adjustment parameters
DINplayer allows for the following audio adjustments:
adjustments general amplified/pre-amplified output.
adjustment of loudness level.
adjustment of high tone level.
adjustment of low tone level.
The following tables show the relation between the value set in the configuration file and
the actual value of the audio parameter.
LOUT (DEFAULT=14) general output amplified/pre-amplified level*
LOUT= 01234567891011 12 13 14 15 16 17 18 19 20
dB
level OFF -55 -35 -28 -23 -20 -17 -14 -12 -10 -8 -6 -4 -2 0 +2 +4 +6 +8 +10 +12
* the dB value is always related to the premaplified signal, also with the internal power amplifier
activated!
LLOU
(DEFAULT=10)
loudness level
LLOU= 01234567891011 12 13 14 15 16 17 18 19 20
dB
level
0
+0,5
+1
+1,5
+2
+2,5
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
LTRE
(DEFAULT=14)
high tone level
LTRE= 012345678 91011 12 13 14 15 16 17 18 19 20
dB
level -12 -10 -8 -7 -6 -5 -4 -3 -2 -1
0
+1 +2 +3 +4 +5 +6 +7 +8 +10 +12
LBAS (DEFAULT=10) low tone level
LBAS= 012345678 91011 12 13 14 15 16 17 18 19 20
dB
level -12 -10 -8 -7 -6 -5 -4 -3 -2 -1
0
+1 +2 +3 +4 +5 +6 +7 +8 +10 +12
4.7 Power amplifier configuration
In the factory default configuration the power amplifier is NOT active (preamplfied
configuration). To switch on the power amplifier, set the MOMD parameter in the
config.txt file.
Mnemonic Description parameter
MOMD
(DEFAULT=2)
Internal amplifier configuration:
0 = Muting ON. The power amplifier is active only during the MP3 files
playing. When DINplayer is in STOP mode the power amplifier is in
Standby.
1 = Muting OFF. Power Amplifier always active, . Also when DINplayter is in
STOP mode.
2 = Power amplifier NOT ACTIVE (default – use this setting in preamplified
configuration).

DINplayer User Manual v.2.3
Page 18
IMPORTANT:
In case of power amplifier excessive high temperature , the thermal protection disables
the audio output. To reactivate the amplifier normal operation switch the DINplayer off
and then on again.
4.8 Input management parameters
The playing of the files takes place by activating the available logical inputs, the activation
modes are set through the TPCM MICP and MIRS parameters inserted in the
configuration files.
Mnemonic Description of timing parameter
TPCM
(DEFAULT=10)
Setting the persistence time of the input command (time to wait before
DINplayer is able to interpret the input command) expressed in decimals of
milliseconds (value between 0 and 255 in decimal).
0=nodelay
1=10mSeconds
2=20mSeconds
100 = 1 second
200 = 2 seconds
250 = 2,5 seconds (max. value)
MICP
(DEFAULT=1)
Setting Mode Input Continuous Play
0 = having terminated the playing of the codified file, requested from the
input code, DINplayer goes in standby.
1 = the requested codified file is continuously played until the relevant input
code is inserted.
MIRS
(DEFAULT=1)
Setting Mode Input ReStart
0 = repeated activation or deactivating of the same input code does not
influence the playing of the relevant file. Only the activation of a different
code can block the playing underway and activate the playing of the new
requested file.
1 = in the moment in which an input code is enabled the playing of the of the
relevant file from its beginning takes place, even if it is already in play.
4.9 Playlist/music player configuration
Mnemonic Description parameter
MPLL
(DEFAULT=1)
0= playlist NOT ACTIVE.
1= playlist ACTVE.
16= music player mode

DINplayer User Manual v.2.3
Page 19
4.10 RS485 serial port communication parameters
IMPORTANT:
The RS485 is active in every configuration.
The following table lists the values of the parameters needed to connect DINplayer to a
Master system coordinating it (protocol, speed, timings, etc.).
Mnemonic Description
CMAD
(DEFAULT=0)
Address DINplayer in the 485 bus (ADD) (Value between 0 and 63 in decimal).
IMPORTANT:This address MUST be univocal, two devices with the same
address can not co-exist on the same bus.
CMCK
(DEFAULT=1)
Enabling introduction of the Checksum: 0= Checksum deactivated
1= Checksum activated
CMCL
(DEFAULT=0)
Enabling introduction of end-of-pack
characters CR and LF (hexadecimal values
OD and 0A)
0= No CR and LF
1= Insertion of CR and LF activated
CMBR
(DEFAULT=3)
Baud rate (communication speed in bits
per second)
0=1200 bps
1=2400 bps
2=4800 bps
3=9600 bps
CMPR
(DEFAULT=0)
Parity Bits: 0= no parity
1= odd parity
2= even parity
CMSB
(DEFAULT=1)
Number of Stop Bits 1=1 stopBit
2=2 stopBits
CMDB
(DEFAULT=8)
Number of data bits 7=7 bits per datum
8=8 bits per datum
CMDR
(DEFAULT=0)
Minimum delay between end of reception
of the pack and delivery of the reply.
(Value expressed in tenths of msec
between 0 and 15 in decimal)
0= Minimum delay of about 4msec
1= Minimum delay of 10msec
2= Minimum delay of 20msec
CMNR
(DEFAULT=0)
Deactivate all replies: 0= standard function, every command is
followed by a confirmation or error reply.
1= all replies deactivated.
Table of contents
Other inout MP3 Player manuals