7 Modbus/TCP – SmartWire-DT implementation
7.4 Time monitoring and Modbus-TCP operating mode
SmartWire-DT Gateway EU5C-SWD-EIP-MODTCP 08/17 MN120003Z EN www.eaton.com 77
The setpoint value is 3000 (3000 milliseconds = 3 s). This means that the
outputs will be switched off after 3 seconds in any of the above situations.
This needs to be taken into account when communications between the PLC
and the gateway are based on an integrated firmware driver without cyclic
access. If you are only using a user program to communicate, there may be
extended pauses between communications operations. If, for example, you
are working with the Master.Lib and ModbusSlave.Lib application libraries
together with XControl PLCs, the following must be taken into account:
• Addressing between the PLC and the gateway is not cyclic, but sporadic
instead (time > 3 s)
• Single-step operation during testing and commissioning
In these cases, change the value as required.
If time monitoring has been configured, the active time monitoring status can
be read from register 0x1020. The time monitoring time is reset every time a
Modbus/TCP frame is transmitted.
If there are no cyclic data transfers that will automatically reset the time mon-
itoring time, the monitoring time can also be reset with write access to regis-
ter 0x1121. This can also be done with any other Modbus/TCP frame.
Registers 0x1113C, 0x1113D:
"Restore Modbus-TCP connection parameters"
Registers 0x113C and 0x113D are used to restore the parameters in register
0x1120 to their setpoint values. To do this, a value of "0x6C6F" is first written
to register 0x113C. In order to enable the reset, a value of "0x6164" ("LOAD")
is then written to register 0x113D. This must be done within 30 seconds of
writing to register 0x113C.
It is also possible to write to both registers with a single operation by using
function codes FC16 and FC23 The parameters will be enabled, but will not
be saved in a non-volatile manner yet. To save them in a non-volatile manner,
it is necessary to use the "Save Modbus-TCP connection parameters" ser-
vice.
Registers 0x113E, 0x113F:
"Save Modbus-TCP connection parameters"
Registers 0x113E and 0x113F are used to store the Modbus-TCP connection
parameters held in register 0x1120 in a non-volatile manner. To do this, a
value of "0x7361" is first written to register 0x113E. However, the data is not
actually stored until command "0x7665" ("SAVE") is written to register
DANGER
Setting the timeout value in register 0x1120 to a value of "0" can
result in dangerous situations, since set outputs will remain on
even if there are no communications between the PLC and the
gateway.