![MTS Sensors Level Plus LP Series Скачать руководство пользователя страница 15](http://html1.mh-extra.com/html/mts-sensors/level-plus-lp-series/level-plus-lp-series_interface-manual_1852490015.webp)
15
Modbus Interface Manual
LP Series
Note:
The communications event log is not supported. The “Query data” field
is irrelevant (normally, FF00H would clear the log).
If the device is in listen-only mode, the device responds to this
message by switching out of listen-only mode - (resulting in no response
being sent to the request).
If the device is not in listen only mode, it responds as follows:
Slave address: echoed
Function: 08H
Subfunction high: 00H
Subfunction low: 01H
Query data (16-bit): echoed (0000H or FF00H)
Error check: 16-bit CRC/8-bit LRC
Function 08 - Diagnostics
(Subfunction 04, Force Listen-Only Mode)
The device responds to this request by switching to listen-only
mode. Messages are still received and parsed, but no responses
are transmitted. To switch out of listen-only mode, issue a ‘
Restart
Communications Option
’ request (function 08, subfunction 01) or
cycle power.
Function 16 - Preset Multiple Registers
The device response returns the slave address, function code, starting
address, and quantity of registers preset.
Function 17 - Report Slave ID
The device responds to this request with the following data:
Slave address: echoed
Function: 11H
Byte count: 05H
Slave ID: FFH
Run indicator status: FFH (ON)
Additional data: ‘DMS’
Error check: 16-bit CRC/8-bit LRC
Modbus Exception Codes
The following standard Modbus exceptions are implemented:
Error code 01 (Illegal Function)
Reported when:
»
A function other than 03, 04, 06, 08, 16 or 17 is requested
»
Function 08 is requested, and a subfunction other than 00, 01,
or 04 is requested, or when invalid register within set is requested.
»
Handled by error code 07
Error code 02 (Illegal Data Address)
Reported when:
»
Function 03 or 04 is requested and the starting register number
is greater than 5198 (register greater than 35198 or 45198)
»
Function 03 or 04 is requested and a register within the requested
register set is invalid
9.3 Modbus function codes (Cont.)
Error code 03 (Illegal Data Value)
Reported when:
»
Function 03 or 04 is requested and the number of data points
is greater than 800.
Error code 06 (Busy)
Reported when:
»
The device LCD menu is active.
Error code 07 (Illegal Operation)
Reported when:
»
Function 06 or 16 is requested while the device is write protected.
»
Function 08 is requested with an invalid subfunction.