5. CONFIGURATION
Direct Repre-
sentation
Variable
Diagnostic Variable
T_DIAG_MODBUS
_RTU_SLAVE_1.*
Size Description
%QB(n+1)
eErrorCode
SERIAL_STATUS
(BYTE)
0: there is no error.
1: invalid serial port.
2: invalid serial port mode
3: invalid baud rate
4: invalid data bits
5: invalid parity
6: invalid stop bits
7: invalid modem signal parameter
8: invalid UART RX Threshold parameter
9: invalid time-out parameter
10: serial port busy
11: UART hardware error
12: remote hardware error
20: invalid transmission buffer size
21: invalid modem signal method
22: time-out of CTS = true
23: time-out of CTS = false
24: transmission time-out error
30: invalid reception buffer size
31: reception time-out error
32: flow control configured differently
from the manual
33: invalid flow control for the configured
serial port
34: data reception not allowed in the nor-
mal mode
35: data reception not allowed in the ex-
tended 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:
%QX(n+2).0
tCommand.
bStop
BIT Stop slave.
%QX(n+2).1
tCommand.
bRestart
BIT Restart slave.
%QX(n+2).2
tCommand.
bResetCounter
BIT Restart diagnostics statistics (counters).
%QX(n+2).3
tCommand.
bDiag_19_reserved
BIT Reserved.
%QX(n+2).4
tCommand.
bDiag_20_reserved
BIT Reserved.
%QX(n+2).5
tCommand.
bDiag_21_reserved
BIT Reserved.
%QX(n+2).6
tCommand.
bDiag_22_reserved
BIT Reserved.
121