Protocolo Modbus
9. 3
Menú: Specialist: System edit: Data storage and send to PC
MCS100E program revision 1.42
Modbus RTU protocol
Definition which registers are sent and received from the external PC
+------------------------------------------------------------------------------+
¦Address¦
¦Offset ¦Block1¦Block2¦Digit.¦Compon¦System¦DatLog¦OUTPUT¦INPUT ¦FLAG
¦ 0
¦first byte send
¦Result,Comp.data type
¦16 bits data factor
¦Julian date offset
¦Modbus master settings: (Function,Start register/coil,No. register/coil)
¦SlaveAddr:0
¦Fnc¦Start¦No. ¦Fnc¦Start¦No. ¦Fnc¦Start¦No. ¦Fnc¦Start¦No. ¦Fnc¦Start¦No. ¦
|1
|1
|3
|5
|15 |97
|16 |105
|0
|0
|0
|0
¦
¦Timeout for new Modbus message (*55ms)
¦
+------------------------------------------------------------------------------+
Datatransfer MCS100E <---> PC with serial interface and Modbus RTU protocol
Start the message with a silent of at least 3.5 character times
Byte
1
2
3
:
last-1
last
Address Offset
! The Address Offset is
!added to Start Register by sending always
!and subtracted by receiving only when Start Register > Address Offset.
Modbus Master:
function
01 : Read
15 : Force multiple coil
05 : Force single coil
03 : Read
16 : Write multiple register
with the definition from above
demand
send
digital OUT
Modbus Slave:
Exception response if illegal data address
126
Register offset
¦0
¦100
¦68
¦200
: high
: 32bits floating point 2 register
: 100
: 578041
¦SlaveAddr:0
¦SlaveAddr:0
|8
|1
|0
|0
|0
|12
|15 |0
|0
|0
|16
|3
|0
|0
|0
|12
|16 |0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
address
function
data
LSB CRC-check
MSB CRC-check
multiple coil
Demand of digital I/O/FLAG from Slave
Send
of digital I/O/FLAG to
Send
one digital I/O/FLAG to
multiple register
Demand of Results,Component values,Modbus-Systemparameter
Send
of Results,Component values,Modbus-Systemparameter
: Results
R1,R2,R3,R4,R5,R6
digital OUT
DO1,DO2,DO3,DO4,DO5,DO6,DO7,DO8
: Results
R33,R34,R35,R36,R37,R38
digital INP
DI01..DI16
DO1
MCS100E Instrucciones de servicio 8011852V/YWA7/V3-1/2018-01 © SICK AG
¦coil offset digital ¦
¦1400
¦1500
¦0
¦96
default: 578041
¦SlaveAddr:0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
:
2
Slave
Slave
Programas de utilidad y protocolos
¦
¦
¦
¦192
¦
¦
¦
¦
¦
¦
¦
¦SlaveAddr:0
¦
¦
¦
|0
|0
|0
|
¦
|0
|0
|0
|
¦
|0
|0
|0
|
¦
|0
|0
|0
|
¦
|0
|0
|0
|
¦
|0
|0
|0
|
¦
¦
¦
¦