4. Configuration
94
Figure 4-11. MODBUS RTU Master General Parameters Configuration Screen
Configuration
Description
Default
Options
Send Delay (ms)
Delay for the answer
transmission
0
0 to 65535
Minimum Interframe
(chars)
Minimum silence time
between different frames.
3.5
3.5 to 100.0
Table 4-46. MODBUS RTU Master General Configurations
Notes:
Send Delay:
The answer to a MODBUS request 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 transmitter 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.
ATTENTION:
It may be useful to make use of the two available diagnostics structures, as it increases the diagnosis
scope and reliability. This is specially recommended in the case you are consisting the RTU Master
communication through the diagnostics and commands stored in
T_DIAG_MODBUS_RTU_MASTER_1 variables (Table 4-47) and the requests diagnostic
structure T_DIAG_MODBUS_RTU_MAPPING_1 (Table 4-53).
Diagnostic Variable
T_DIAG_MODBUS_RTU_MASTER_1.*
Size
Description
Diagnostics Bits:
tDiag.*
bRunning
BOOL
The master is running
bNotRunning
BOOL
The master is not running (see bit:
bInterruptedByCommand)
bInterruptedByCommand
BOOL
The bit bNotRunning was enabled as the master was
interrupted by the user through command bits
bConfigFailure
BOOL
Discontinued diagnosis
bRXFailure
BOOL
Discontinued diagnosis
bTXFailure
BOOL
Discontinued diagnosis
bModuleFailure
BOOL
Discontinued diagnosis
bDiag_7_reserved
BOOL
Reserved
Error Codes:
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