5. CONFIGURATION
Direct Repre-
sentation
Variable
Diagnostic Variable
T_DIAG_MODBUS
_RTU_MASTER_1.*
Size Description
%QB(n+1)
eErrorCode
SERIAL_STATUS
(BYTE)
0: there are no errors.
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: 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:
%QX(n+2).0
tCommand.
bStop
BIT Stop master.
%QX(n+2).1
tCommand.
bRestart
BIT Restart master.
%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
106