5. CONFIGURATION
Direct Repre-
sentation
Variable
Diagnostic Variable
T_DIAG_MODBUS
_RTU_SLAVE_1.*
Size Description
%QX(n+2).7
tCommand.
bDiag_23_reserved
BIT Reserved.
%QB(n+3)
byDiag_3_reserved
BYTE Reserved.
Communication Statistics:
%QW(n+4)
tStat.
wRXRequests
WORD
Counter of normal requests received by the
slave and answered normally. In case of
a broadcast command, this counter is in-
cremented, but it is not transmitted (0 to
65535).
%QW(n+6)
tStat.
wTXExceptionResponses
WORD
Counter of normal requests received by
the slave and answered with exception
code. In case of a broadcast command,
this counter is incremented, but it isn’t
transmitted (0 to 65535).
Exception codes:
1: the function code (FC) is legal, but not
supported.
2: relation not found in these MODBUS
data.
3: illegal value for this field.
128: the master/client hasn’t right for
writing or reading.
129: the MODBUS relation is disabled.
%QW(n+8)
tStat.
wRXFrames
WORD
Counter of frames received by the slave.
It’s considered a frame something which is
processed and it is followed by a Minimum
Interframe Silence, in other words, an ille-
gal message is also computed (0 to 65535).
%QW(n+10)
tStat.
wRXIllegalRequests
WORD
Illegal request counter. These are frames
which start with address 0 (broadcast)
or with the MODBUS slave address,
but aren’t legal requests – invalid syn-
tax, smaller frames, invalid CRC – (0 to
65535).
%QW(n+12)
tStat.
wRXOverrunErrors
WORD
Counter of frames with overrun errors dur-
ing reception – UART FIFO or RX line –
(0 to 65535).
%QW(n+14)
tStat.
wRXIncompleteFrames
WORD
Counter of frames with construction er-
rors, parity or failure during reception (0
to 65535).
%QW(n+16)
tStat.
wCTSTimeOutErrors
WORD
Counter of CTS time-out error, using the
RTS/CTS handshake, during the transmis-
sion (0 to 65535).
%QW(n+18)
tStat.
wDiag_18_Reserved
WORD Reserved.
Table 98: MODBUS RTU Slave Diagnostic
Note:
Counters: all MODBUS RTU Slave diagnostics counters return to zero when the limit value 65535 is exceeded.
122