Date and Time Settings
The table lists the date and time settings for the Modbus TCP/IP and EtherNet/IP communication.
|
Modbus TCP/IP Address (Register) |
EtherNet/IP Address |
RW |
X | Unit |
Type |
Range | Default value |
Svd |
Description |
|---|---|---|---|---|---|---|---|---|---|
|
0x113B (4412) |
85 : 03 : 01 |
RW |
1 | – |
UINT16 |
1–31 |
1 |
Y |
Date |
|
0x113C (4413) |
85 : 03 : 02 |
RW |
1 | – |
UINT16 |
1–12 |
1 |
Y |
Month |
|
0x113D (4414) |
85 : 03 : 03 |
RW |
1 | – |
UINT16 |
2000–2099 |
2016 |
Y |
Year |
|
0x113E (4415) |
85 : 03 : 04 |
RW |
1 | – |
UINT16 |
0–23 (step 1) |
0 |
Y |
Hour |
|
0x113F (4416) |
85 : 03 : 05 |
RW |
1 | – |
UINT16 |
0–59 (step 1) |
0 |
Y |
Minute |
|
0x1140 (4417) |
85 : 03 : 06 |
RW |
1 | – |
UINT16 |
0–59 (step 1) |
0 |
Y |
Second |
|
0x1141 (4418) |
85 : 03 : 07 |
– | – | – | – | – | – | – |
Reserved |
|
0x1142 (4419) |
85 : 03 : 08 |
||||||||
|
0x1143 (4420) |
85 : 03 : 09 |
RW |
1 | – |
UINT16 |
0–1 |
0 |
N |
Update date and time setting |
Write date and time to the following Modbus holding registers with address –4412, function code 16 (multiple holding registers), No of registers –9.
For example, to update 01-Jan-2023 12:00:00, register values should be as below format:
| Parameter name | Register | Example data | Data format (Big-endian) |
|---|---|---|---|
|
Date |
4412 |
1 | 0x0001 |
|
Month |
4413 |
1 | 0x0001 |
|
Year |
4414 |
2023 | 0x07E7 |
|
Hour |
4415 |
12 | 0x000C |
|
Minute |
4416 |
0 | 0x0000 |
|
Second |
4417 |
0 | 0x0000 |
|
Reserved |
4418 |
0 | 0x0000 |
|
Update date and time setting |
4420 |
0 | 0x0001 |
For more information, refer to NTP or SNTP