
Appendix
A.2 Modbus RTU
SENTRON PAC3100
Manual, 07/2009, A5E02385159B-01
125
A.2
Modbus RTU
A.2.1
Structure of the job message frame
Structure
Data traffic between the master and the slave and between the slave and the master begins
with the address of the slave. The job message frame consists of the following elements:
1.
Address of the MODBUS slave
2.
Function code
3.
Data of the message frame
4.
Checksum of the message frame (CRC)
The structure of the data field depends on the function code used.
Table A- 4
Structure of the message frame
Address
Function code
data
CRC
Byte
Byte
n byte
2 bytes
Cyclic Redundancy Check (CRC)
The Cyclic Redundancy Check checks the data flow. The CRC consists of 2 Bytes:
●
one LSB
●
One MSB
The transmitting device calculates the CRC and appends it to the message. The receiving
device calculates the CRC again and compares the newly calculated value with the received
CRC. If the two values do not agree, an error has occurred.
End of a message frame
If no characters are transferred for the space of 3.5 bytes this is taken as the end of the
message frame. A check is made to determine the validity of the message frame.
Validity of the message frame
Gaps in the message frame are filled with 0xFFFFFFFF. FFFFFFFF means the message
frame contains no measured values. This means it is invalid. If the message frame has a
different content it is in principle valid.
See also
Function codes (Page 127)
Summary of Contents for SENTRON PAC3100
Page 10: ...Table of contents SENTRON PAC3100 10 Manual 07 2009 A5E02385159B 01 ...
Page 38: ...Mounting 5 3 Deinstallation SENTRON PAC3100 38 Manual 07 2009 A5E02385159B 01 ...
Page 104: ...Service and maintenance 10 5 Disposal SENTRON PAC3100 104 Manual 07 2009 A5E02385159B 01 ...
Page 118: ...Dimensional drawings SENTRON PAC3100 118 Manual 07 2009 A5E02385159B 01 ...
Page 142: ...Appendix A 3 Correction sheet SENTRON PAC3100 142 Manual 07 2009 A5E02385159B 01 ...
Page 146: ...List of abbreviations C 1 Abbreviations SENTRON PAC3100 146 Manual 07 2009 A5E02385159B 01 ...
Page 148: ...Glossary SENTRON PAC3100 148 Manual 07 2009 A5E02385159B 01 ...
Page 152: ...Index SENTRON PAC3100 Manual 07 2009 A5E02385159B 01 152 ...