Topic: DMD0225 Using the SNTP Client with a Time Server |
|
What is SNTP?The date and time for an Ethernet-equipped Do-more
controller can automatically be set by retrieving the time value from
a Simple Network Time Protocol (SNTP) time server. There are two levels,
or tiers, of Simple Network Time Protocol (SNTP) time servers that are
available on the Internet:
|
|
How Does Do-more Provide Access to Time Servers?Do-more controllers use the SNTP Client (NETTIME) instruction to retrieve clock and calendar information from a time server using the SNTP protocol. The time value retrieved from a time server is in UTC coordinates, so after the new time value is retrieved, the NETTIME instruction will recalculate the local time using the controller's Time Zone offset and Daylight Savings time setting, then set the controller's real-time clock to the newly calculated local time value.
Note: While it is reasonable to use the default time server for testing purposes, be aware that the uptime of the default time server can not be guaranteed. It is recommended that you install your own time server or select a publicly available time server for long-term use.
The default UDP Port Number of 123 is the traditional port number used by the SNTP protocol.
|
|
See Also:
|
|