5. CONFIGURATION
Configuration Description Default Options
Send Delay (ms)
Delay for the answer trans-
mission.
0 0 to 65535
Minimum Interframe
(chars)
Minimum silence time be-
tween different frames.
3.5 3.5 to 100.0
Table 84: MODBUS RTU Master General Configurations
Notes:
Send Delay: The answer to a MODBUS protocol may cause problems in certain moments, as in the RS-485 interface or
other half-duplex. Sometimes there is a delay between the slave answer time and the physical line silence (slave delay to put
RTS in zero and put the RS-485 in high impedance state). To solve this problem, the master can wait the determined time in
this field before sending the new request. Otherwise, the first bytes transmitted by the master could be lost.
Minimum Interframe: The MODBUS standard defines this time as 3.5 characters, but this parameter is configurable in
order to attend the devices which do not follow the standard.
The MODBUS protocol diagnostics and commands configured, either by symbolic mapping or direct representation, are
stored in T_DIAG_MODBUS_RTU_MASTER_1 variables. For the direct representation mapping, they are also in 4 bytes and
8 words which are described in table below (where “n” is the configured value in the %Q Start Address of Diagnostics Area
field):
Direct Repre-
sentation
Variable
Diagnostic Variable
T_DIAG_MODBUS
_RTU_MASTER_1.*
Size Description
Diagnostics Bits:
%QX(n).0
tDiag.
bRunning
BIT The master is running.
%QX(n).1
tDiag.
bNotRunning
BIT
The master is not running (see bit: bInter-
ruptedByCommand).
%QX(n).2
tDiag.
bInterruptedByCommand
BIT
The bit bNotRunning was enabled as the
master was interrupted by the user through
command bits.
%QX(n).3
tDiag.
bConfigFailure
BIT Discontinued diagnosis.
%QX(n).4
tDiag.
bRXFailure
BIT Discontinued diagnosis.
%QX(n).5
tDiag.
bTXFailure
BIT Discontinued diagnosis.
%QX(n).6
tDiag.
bModuleFailure
BIT
Indicates if there is failure in the module or
the module is not present.
%QX(n).7
tDiag.
bDiag_7_reserved
BIT Reserved
Error Codes:
105