MDDP - 66411 2 21 en 1103
MDDP - 66411 2 21 en 1103
MDDP - 66411 2 21 en 1103
interface RS-485
MDDM / MDDO
MDDP / MDDQ
MDDP / MDDQ Mark II
MDDR / MDDT
MDDx-66411-2-21-en-1103
Copyright
Bühler AG reserves all rights to this document and to the object thereof. Without
the prior written permission of Bühler this document may not, either in whole or
in part, be reproduced, copied, or, in any form, in whole or in part, made
accessible to a third party, or be used for any purpose other than that for which it
was made available to the recipient.
Contents
Safety
This control unit is built in compliance with the recognised safety engineering
principles. In spite of this, inexpert use may entail hazards to the health and life
of persons, or may cause damage to property.
Warranty
Liability
Bühler is only liable for direct injury to persons and direct property damage
based on the applicable product liability law if the control unit is used within the
area specified in these operating instructions, or in a contractually agreed
application.
Bühler is not obliged to reimburse damage not directly affecting the control unit
itself (exploitation losses, production downtimes and profit drop as well as other
direct and indirect damage).
Important:
These Operating instructions apply from program version MDDM_O V28A.
In version V26A the command “B” was amended.
In version V28A the command “E” was amended.
In version V29A the command “X” was amended.
1 Safety ................................................................................................................... 5
1.1 General ......................................................................................................................5
1.1.1 Duty of instruction .........................................................................................5
1.1.2 Accident prevention ......................................................................................5
1.2 Notes on safety at work .............................................................................................5
1.2.1 Commissioning and installation ....................................................................5
1.2.2 Operation of the control unit .........................................................................6
1.2.3 Electrical installations ...................................................................................6
1.3 Safety concept for control units .................................................................................6
4 Protocol............................................................................................................... 12
4.1 General ....................................................................................................................12
4.2 Transmission procedure ..........................................................................................12
4.3 Timeout times ..........................................................................................................13
4.3.1 Timeout for reply ........................................................................................13
6 Commands.......................................................................................................... 17
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
Safety 3
6.1 General ....................................................................................................................17
6.1.1 General examples ......................................................................................17
6.1.2 Example checksum calculation ..................................................................18
6.2 Data packets of the roller mill control unit MDDM/O standard protocol ..................19
6.2.1 Commands with nominal values.................................................................19
6.2.2 Commands with actual values in return data message .............................20
6.2.3 Parameter output ........................................................................................21
6.3 Data packets for the grinding master computer MDEF ...........................................22
6.3.1 Commands with nominal values.................................................................22
6.3.2 Commands with actual values....................................................................23
6.3.3 Status of the automatic grinding gap adjustment .......................................23
6.4 Data packets for host system with integrated grinding gap adjustment ..................24
7 Appendix ............................................................................................................. 26
7.1 Accessories .............................................................................................................26
7.1.1 Interface converter .....................................................................................26
7.1.2 Interface cable ............................................................................................26
7.2 Address of the after-sales service ...........................................................................26
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
4 Safety
1 Safety
1.1 General
Important:
These Operating instructions must always be kept ready and on hand near
the control unit.
The user is responsible for the training and safety of operating personnel. Thus, it
is very important that the documentation is actually handed over to these persons.
The operator and operating personnel of the control unit are obliged to note and to
observe the instructions in these Operating instructions.
Every person who is involved in the connection, operation, or maintenance of the
control unit must have read and understood the Operating instructions.
The control unit should only be operated by persons who have been instructed and
are aware of the dangers involved.
The control unit is equipped ex factory with safety devices. When operated in
accordance with the intended purpose, these devices comply with the currently
valid international safety standards and the relevant accident prevention rules.
These Operating instructions include the safety rules for preventing accidents. In
addition, all generally valid local safety instructions and safety rules always apply.
Important:
Safety devices, warning and instruction signs must be kept clean and never
be removed or covered.
Immediately replace damaged warning and instruction signs with new ones.
The start-up, trial run and adjustment work should only be carried out by instructed
and (if necessary) authorised personnel.
Prior to the initial start-up of the machine, the operating personnel should
familiarise themselves with all instructions and regulations contained in these
Operating instructions.
Generally the countryspecific standards are to be observed.
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
Safety 5
1.2.2 Operation of the control unit
Work on the control unit may only be carried out by authorised personnel who have
familiarised themselves with all display and operating elements.
All electrical installation and inspection work on the machine should be carried out
by local authorised personnel. Electrical installations and appliances must be
checked at regular intervals. Pay special attention to the following:
For all set-up and repair work on the control unit, the power supply has to be
interrupted by disconnecting all poles. The mains has to be secured against
switching on.
Immediately repair or replace any defective installations or devices.
Do not lay loose cables on floors.
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
6 Safety
2 Short description and
technical data
The data is transferred serially to the control units via an EIA standard RS-485
interface. All transferred characters are ASCII characters.
A command unit (master) transmits nominal values to every control unit (slave) and
receives actual values. Every nominal and actual value transfer is triggered by a
certain character (command).
2.1.2 Definitions
EIA Electronic Industries Association
RS-485 Transfer standard of the physical interface
ASCII U.S. standard code for data exchange
Bus system Conducting branch which is shared by several participants for
the data exchange
Master Device which controls the bus system according to protocol. It
determines which participant may transmit and when.
Slave Device which is queried by the master in the bus system
according to protocol
Host See master
Baud Transmission speed (1 baud = 1 bit/s)
Command Command which is sent by the master to the slave
Message Message which is transmitted
BCD Binary coded decimal numbers
Hex Hexadecimal (number system based on 16)
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
Short description and
technical data 7
2.2 Technical data
Type EIA standard RS-485
(electrically isolated)
Type of transmission Differential, bi-directional, serial,
asynchronous
Transmission speed MDDM_O / MDDP_Q
Terminal X9 4800
Terminal X10 4800 / 9600 / 19200
MDDR_T 4800 / 9600 / 19200
Character format 1 start bit
8 data bit (8th bit always zero)
1 stop bit
(no parity bit)
Number of participants max. 255
Rx receiver
+ 12 V to – 7 V
Maximum signal level
Input sensitivity ± 0.2 V
± 25 V
Transient consistency
12 kohms
Input resistance
Tx transmitter
+ 12 V to – 7 V
Maximum signal level
Output voltage, unloaded ±5V
± 1.5 V (load resistor = 54 ohms)
Output voltage, loaded
max. 150 mA
Short circuit current @ +5 V
Leakage current (disabled or off) max. ± 150 µA
± 25 V
Transient consistency
60 ohms
Output resistance
Length of cable max. 1200 m
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
Short description and
8 technical data
3 Installation and configuration
3.1 General
When installing RS-485 interfaces (bus system) special attention must be given to
the correct installation of the data cable as well as the correct connection of the
shielding. The proper configuration of the individual participants is especially
important and is often the source of faults with problems in the data transfer.
The RS-485 data cables have to be installed separately from the high-voltage
cables. The minimum distance between the RS-485 data line and the high-voltage
lines has to be at least 5 cm. The only exception are the distribution boxes where
the distance between the terminals for RS-485 signals and the high-voltage
terminals has to be a minimum of 2 cm. In general, the greater the distance
between the data cables and the high-tension cables, the better.
3.2 Wiring
The RS-485 standard is based on an interface with a maximum of 32 devices. The
data line is wired from one device to the next. Star shaped wiring is not permitted.
3.3 Shielding
The shielding of the RS-485 data cables has to be connected at both ends as
closet as possible to the ground of the corresponding device.
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
Installation and configuration 9
3.4 Terminal resistors
In order to prevent reflections and therefore faults on the interface the bus system
has to be terminated at both sides with a 120 ohm resistor each (see switch
settings). This termination has to be provided at the first (normally the master) and
at the last device.
All other versions are incorrect!
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
10 Installation and configuration
3.9 Connection and switch setting (MDDM/O, MDDP/Q)
According to requirement the serial interface can be connected at the terminals X9
or X10. With 2 masters it is also possible to occupy both interfaces simultaneously.
Shield 1 RXDTXD+ 1
RXDTXD+ 2 Serial interface Serial interface
X10 RXDTXD- 3 RS-485 to host X9 RXDTXD- 2
RS-485 to host
0V/Shield 3
0V 4 Interface A Interface B
X9
AB
S1:1 X10 X 22
X 20
X 21
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
Installation and configuration 11
4 Protocol
4.1 General
All control, address and data characters of a protocol are displayable ASCII
characters. Each telegram (message) contains a ‘>’ as a starting character and a
‘CR’ (carriage return) as a concluding character.
Program Teli for Windows:
The program Teli for Windows is used for tests with this serial interface. Versions
for Windows 3.1 and Win 95 are available. It is a program for the transfer of
telegrams and the reception of replies (master). The transmission and reception
data are continuously displayed. The data exchange takes place via the serial
interface of a PC. This interface can be configured as COM1 or COM2. An
interface converter (RS-232 RS-485) must be used.
Master Slave
Start Timer tm
Start Timer ts
Start Timer tm
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
12 Protocol
Command message correctly received, do not transmit actual values
ACK message (ACK: acknowledged)
Master Slave
Start Timer tm
Start Timer ts
Start Timer tm
Master Slave
Start Timer tm
Start Timer ts
Start Timer tm
After the transmission of the command message, the master has to start the timer
tm. Within the time tm, the master has to receive the first character of the NAK
message, the ACK message or the return data message from the addressed slave
(MDDM/O). For every further character, tm is restarted.
Timeout value: tm = 300 ms
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
Protocol 13
5 Protocol structure
5.1 Definitions
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
14 Protocol structure
5.3 NAK message
N Errorcode CR
-H- -L-
1 2 1
Number of ASCII
characters
A CR
1 1
Number of ASCII
characters
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
Protocol structure 15
5.5 Return data message
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
16 Protocol structure
6 Commands
6.1 General
The commands in the command messages with nominal values consist of an
ASCII character represented by a capital letter.
The commands in the command messages without nominal values (collecting
actual values) consist of an ASCII character represented by a small letter.
The host transmits the status release to the slave (MDDM/O) with the set
decimal address 1.
Host transmits Command message:
> 01 S 0001 75 CR
Starting character = >
Address = 01 hex (1 decimal)
Command = S
Status = Release
Checksum = 75 hex
Final character = CR
The host demands the alarm number from the slave with the set decimal
address 161.
Host transmits Command message:
> A1 a D3 CR
Starting character = >
Address = A1 hex (161 decimal)
Command = b
Checksum = D3 hex
Final character = CR
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
Commands 17
6.1.2 Example checksum calculation
Command message:
> 0 1 S 0 0 0 1 75 CR
The starting character is not considered for the checksum.
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
18 Commands
6.2 Data packets of the roller mill control unit MDDM/O standard protocol
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
Commands 19
6.2.2 Commands with actual values in return data message
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
20 Commands
6.2.3 Parameter output
It is possible to read out the parameters. Command E can be used for this
purpose. It has to be noted that the parameters are to be read only after a
command and not cyclically, because the operation is inhibited for a short time
during the query.
Parameter string:
2 characters ASCII-BCD: Address of the roller mill
8 characters ASCII: Parameter group
8 characters ASCII: Parameter name
16 characters ASCII: Parameter value
End string:
2 characters ASCII-BCD: Address of the roller mill
3 characters ASCII: “END” character string
29 characters ASCII:
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
Commands 21
6.3 Data packets for the grinding master computer MDEF
Important:
The following commands are intended for the grinding master computer
MDEF. Thus all these commands must only be used then when there is no
MDEF available.
The data can be queried directly at the MDEF!
(See Operating instructions 66391-1-1)
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
22 Commands
6.3.2 Commands with actual values
For software version V29A and later, the status is not adapted
with 0000! The nominal values are not accepted either.
0001 Manual The adjustment is working in the manual operation mode
0002 Automatic The adjustment is working in the automatic operation mode
0003 Referencing The referencing is active or the roller mill is waiting for a
nominal value input from the command system.
(Caution: Referencing can only take place when the
engagement release is not present).
0004 Alignment A new 600 alignment was made.
0005 SavePositon The current actual values must be stored as new set values in
the recipe.
0006 Alignment after The rollers were changed and a new alignment was made.
roller change
0007 Restart There was a voltage interruption
(is transmitted only once on the first inquiry.)
0008 Roller change The adjustment is working in the roller change operation mode
(Nominal value command M is ignored)
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
Commands 23
6.4 Data packets for host system with integrated grinding gap adjustment
1) Bit 15 is set to TRUE as soon as a status is present, which is transmitted only once. The read
acknowledgement takes place via the status bit 15 in command x.
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
24 Commands
Command Number of Data content / description
ASCII Hex characters
‘X’ 58 24 Setting of new nominal values for automatic grinding gap adjustment
Display at handwheel Transmitted value
6:00 0600
6:30 0650
6:45 0675
4 characters ASCII-BCD: Nominal value grinding gap top left
4 characters ASCII-BCD: Nominal value grinding gap top right
4 characters ASCII-BCD: Nominal value grinding gap bottom left (MDDO)
4 characters ASCII-BCD: Nominal value grinding gap bottom right (MDDO)
4 characters ASCII-BCD: Status of the automatic grinding gap adjustment –
(see 6.3.3 Status of the automatic grinding gap
adjustment)
0000 The status and nominal values are not
accepted
Setting of the status
This status is normally not required. The release always takes place via a 24 V
input (RELEASE). This function is used if an individual passage has to be
disengaged or if the residual discharge has to be activated via the remote
control.
1 character ASCII-HEX: Bit 0: Release
Bit 1: Residual discharge
Bit 2: Acknowledge alarm
Bit 3 – 7: Spare
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
Commands 25
7 Appendix
7.1 Accessories
The following accessories are available from Bühler AG by supplying the
corresponding information:
RS-232 RS-485, incl. RS-232 cable 1.8 m (DB9 socket – socket) and plug
adapter (DB9 plug – DB25 socket)
Important:
The information on the identification plate is to be used to identify the device
when making any inquiries of Bühler AG.
Bühler AG
Description of the serial interface MDDx-66411-2-21-en-1103
26 Appendix