www.rletech.com
50
970.484.6510
8
Modbus Communication
8.1.1.2 Function
Field
The function field is one byte in length and tells the LD5100 which function to perform. The
supported functions are 03 (Read 4xxxx output registers), 04 (Read 3xxxx input registers), 06
(Preset single register) and 16 (Preset multiple registers).
8.1.1.3 Data
Field
The data field of the request is a variable length depending on the function. The data fields for
the LD5100 are 16-bit registers, transmitted high order byte first (big-endian).
8.1.1.4 Error Check (Checksum) Field
The checksum field lets the receiving device determine if the packet has transmission errors.
The LD5100 RTU mode uses a 16-bit cyclic redundancy check (CRC-16).
8.1.2 Exception Responses
If a Modbus master sends an invalid command to the LD5100 or attempts to read an invalid
register, an exception response is generated. The response packet will have the high order bit
of the function code set to one. The data field of the exception response contains the exception
error code.
Table 8.1
Exception Codes
Code Name
Description
01
Illegal Function
The function code is not supported
02
Illegal Data Address
Attempt to access an invalid address
03
Illegal Data Value
Attempt to set a variable to an invalid value
Содержание LD5100
Страница 1: ...Leak Detection LD5100 User Guide...
Страница 8: ...970 484 6510 8 rletech com Notes...
Страница 10: ...970 484 6510 10 rletech com C Preventive Maintenance 65 D Troubleshooting 67 E Technical Specifications 71...
Страница 11: ...970 484 6510 11 rletech com...
Страница 12: ...970 484 6510 12 rletech com Notes...
Страница 14: ...970 484 6510 14 rletech com Notes...
Страница 24: ...www rletech com 24 970 484 6510 2 Connections and Settings Notes...
Страница 30: ...www rletech com 30 970 484 6510 4 4 20mA Output Testing Notes...
Страница 48: ...www rletech com 48 970 484 6510 7 EIA 232 Interface Notes...
Страница 60: ...www rletech com 60 970 484 6510 A Updating Firmware Notes...
Страница 66: ...www rletech com 66 970 484 6510 C Preventive Maintenance Notes...
Страница 70: ...www rletech com 70 970 484 6510 D Troubleshooting Notes...