Modbus register
47
RCMB300-series_D00372_01_M_XXEN/06.2019
7.8 Additional function codes:
7.8.1 Diagnostic (function code 0x08)
Tab. 7.6: Additional function codes: Diagnostic
1)
The diagnostic register is 0 if all error counters are 0. Otherwise it is 1.
2)
It is a 16-bit counter. This means that a maximum of 65535 is counted. There is no overflow.
7.8.2 Get Com Event Counter (function code 0x0B)
Tab. 7.7: Get Com event Counter
Sub-function code name
Sub-function code
number (decimal)
Error counter Supported Notes
Return Query Data 0 X
Restart Communication 1 X
Return Diagnostic Register 2 X
1)
Change ASCII Input Delimiter 3
Force Listen Only Mode 4 X
Reserved 5…9
Clear Counters and Diagnostic Register 10 X
Return Bus Message Count 11 X
2)
Return Bus Communication Error Count 12 X X
Return Bus Exception Error Count 13 X X
Return Server Message Count 14 X
Return Server No Response Count 15 X
Return Server NAK Count 16 X X
Return Server Busy Count 17 X X
Return Bus Character Overrun Count 18 X X
Reserved 19
Clear Overrun Counter and Flag 20 X
Reserved 21…65535
Response Notes
Status
If a previously received command is still being processed, then the answer is 0xFFFF. Otherwise it is 0x0000. (Current
implementation: always 0x0000).
Event Count It is a 16-bit counter. This means that a maximum of 65535 is counted. There is no overflow.