Simple Network Time Protocol (Sntp) - FATEK FBs-W2C User Manual

Wi-fi communication module
Table of Contents

Advertisement

Chapter4. Simple Network Time Protocol (SNTP)
In addition to the above functions, the PLC with the FBs-W2C Wi-Fi
communication module can be used to perform network time correction via the
NTP Server and support two synchronization modes according to different PLC
register value.
Sync mode 1: Synchronize time back to PLC RTC.
(For more details can refer PLC user manual 2 advanced application
chapter15: RTC)
Sync mode 2: Synchronize time back to specified PLC register.
The user can flexibly select different mode according to individual needs. The
PLC register configuration of these two modes is shown in Table 8.
In addition, W2C will automatically perform time correction with NTP Server at
the following timing, and update the time to the PLC registers.
① When W2C is powered on, the time of W2C and time in corresponding PLC
registers according to the mode will be synchronized with NTP server.
② Every 24 hours after powered on, the time of W2C and time in
corresponding PLC registers according to the mode will be synchronized
with NTP server.
The W2C also provides the user to manually update the time to the PLC register.
Simply set the value of the register R908 to 1, and the time will be updated to
the corresponding register according to the selected mode.
In addition, if you want to change the time zone, you can refer to Appendix
B-Time Zone Table. The time zone is the daylight time (if there is one in the
area), input the index value of the desired area into the register R910, and then
input 1 to the register to R908, the time will be updated.
If the entered index value is exceeded or not in the Appendix B table, the system
default area is Taipei.
If the SNTP server needs to be changed to another server, the new URL can be
written to the register and enable the corresponding PLC register to notify W2C
there's a new setting needs to changed, default setting of SNTP server is "
pool.ntp.org", W2C will synchronize time with SNTP server every 24 hours after
powered on, the functions of SNTP and the configuration of the PLC register are
shown in
Table 9.
FBs-W2C User Manual
11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents