4. Configuration
95
Diagnostic Variable
T_DIAG_MODBUS_RTU_MASTER_1.*
Size
Description
8: invalid UART RX Threshold parameter
9: invalid time-out parameter
10: busy serial port
11: UART hardware error
12: remote hardware error
20: invalid transmission buffer size
21: invalid signal modem method
22: CTS time-out = true
23: CTS time-out = false
24: transmission time-out error
30: invalid reception buffer size
31: reception time-out error
32: flow control configured differently from manual
33: invalid flow control for the configured serial port
34: data reception not allowed in normal mode
35: data reception not allowed in extended mode
36: DCD interruption not allowed
37: CTS interruption not allowed
38: DSR interruption not allowed
39: serial port not configured
50: internal error in the serial port
Command bits, automatically initialized:
tCommand.*
bStop
BOOL
Stop master.
bRestart
BOOL
Restart master.
bResetCounter
BOOL
Restart diagnostics statistics (counters)
bDiag_19_reserved
BOOL
Reserved
bDiag_20_reserved
BOOL
Reserved
bDiag_21_reserved
BOOL
Reserved
bDiag_22_reserved
BOOL
Reserved
bDiag_23_reserved
BOOL
Reserved
byDiag_03_reserved
BYTE
Reserved
Communication Statistics:
tStat.*
wTXRequsts
WORD
Counter of requests transmitted by the master (0 to
65535)
wRXNormalResponses
WORD
Counter of normal responses received by the master (0
to 65535).
wRXExceptionResponses
WORD
Counter of responses with exception codes received by
the master (0 to 65535).
wRXIllegalResponses
WORD
Counter of illegal responses received by master
– invalid
syntax, not enough received bytes, invalid CRC
– (0 to
65535).
wRXOverrunErrors
WORD
Counter of overrun errors during reception - UART FIFO
or RX line
– (0 to 65535).
wRXIncompleteFrames
WORD
Counter of answers with construction, parity errors or
failure during reception (0 to 65535).
wCTSTimeOutErrors
WORD
Counter of CTS time-out error, using RTS/CTS
handshake, during transmission (0 to 65535).
wDiag_18_reserved
WORD
Reserved
Table 4-47. MODBUS RTU Master Diagnostics
Note:
Counters
: All MODBUS RTU Master diagnostics counters return to zero when the limit value
65535 is exceeded.