4. Configuration
109
Diagnostic Variable
T_DIAG_MODBUS_ETH_CLIENT_1.*
Size
Description
Diagnostic Bits:
tDiag.*
bRunning
BOOL
The client is in execution mode
bNotRunning
BOOL
The client is not in execution mode (see bit:
bInterruptedByCommand)
bInterruptedByCommand
BOOL
The bit bNotRunning was enabled, as the client
was interrupted by the user through command
bits
bConfigFailure
BOOL
Discontinued diagnostics
bRXFailure
BOOL
Discontinued diagnostics
bTXFailure
BOOL
Discontinued diagnostics
bModuleFailure
BOOL
Discontinued diagnostics
bDiag_7_reserved
BOOL
Reserved
byDiag_1_reserved
BYTE
Reserved
Command bits, automatically initialized:
tCommand.*
bStop
BOOL
Stop client
bRestart
BOOL
Restart client
bResetCounter
BOOL
Restart the diagnostic 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 number of requests transmitted by the
client (0 to 65535)
wRXNormalResponses
WORD
Counter of normal answers received by the client
(0 to 65535)
wRXExceptionResponses
WORD
Counter of answers with exception code (0 to
65535)
wRXIllegalResponses
WORD
Counter of illegal answers received by the client
– invalid syntax, invalid CRC or not enough bytes
received (0 to 65535)
wDiag_12_reserved
WORD
Reserved
wDiag_14_reserved
WORD
Reserved
wDiag_16_reserved
WORD
Reserved
wDiag_18_reserved
WORD
Reserved
Table 4-60. MODBUS Client Protocol Diagnostics
Note:
Counters:
all MODBUS TCP Client diagnostics counters return to zero when the limit value 65535
is exceeded.