Table des Matières

Publicité

Protocole Modbus

9. 3
Menu : Spécialiste : Configurer système : Enregistrement et envoi au PC
N° de révision du programme MCS100E : 1.42
Protocole Modbus RTU
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 bit 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
|16
|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
Octet
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 : Read
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
: 32bit floating point 2 register
: 100
: 578041
¦SlaveAddr:0
|8
|1
|0
|0
|12
|15 |0
|0
|97
|16
|3
|0
|0
|105 |12
|16 |0
|0
|0
|0
|0
|0
|0
|0
|0
|0
adresse
fonction
donnée
LSB CRC-check
MSB CRC-check
multiple coil
Demand of digital I/O/FLAG from Slave
multiple coil
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
¦coil offset digital ¦
¦1400
¦1500
¦0
default: 578041
¦SlaveAddr:0
¦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
MCS100E Manuel d'utilisation 8009505/ YWA7/V3-1/2018-01 © SICK AG
Programmes d'aide et protocoles
¦
¦
¦
¦96
¦192
¦
¦
¦
¦
¦
¦
¦
¦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
|
¦
¦
¦
¦

Publicité

Table des Matières
loading

Table des Matières