10. easyE4 communication Connection to other devices
10.17 Modbus TCP
Setting the device clock at runtime
Firmware version 1.21 and higher.
When configured as a Modbus TCP server, easyE4 will provide device clock inform-
ation with the date and time function codes via Modbus TCP data communication.
easyE4 will automatically fill this register with the current data from the device clock.
A Modbus TCP client can read the data from the Modbus TCP map and write to it as
well.
If a Modbus TCP client writes a date, the device clock will set itself to the date and
time and then switch back to the mode for filling the registers with data from the
device clock that is now set.
There are two options for the writing operation:
1. RTC format in Modbus TCP map register 5000 – 5005
2. GALILEO format Modbus TCP map register 5006 – 5009
The following function codes can be used to write to registers 5000 – 5009:
FC6
Write Single Holding Register
FC16
Write Multiple Holding Registers

Note for GALILEO users
We recommend not writing the easyE4 device time cyclically!
Accordingly, do not permanently set control bit 11 in the Control system tag's
1st data word in GALILEO.
There is the option of preventing writing by enabling the Clock setting locked option.
800
easyE402/24 MN050009ENEaton.com