Topic: DMD0224 Synchronizing the Clocks on Multiple Do-more Controllers |
|
The TimeSync Configuration option allows the Ethernet-equipped Do-more controllers on a local network to automatically synchronize their internal real-time clocks. A typical network of Do-more controllers will have one configured as a TimeSync Server, one or more controllers configured as TimeSync Alternates, and the remaining controllers configured as TimeSync Clients. The TimeSync packet contains the current time from the TimeSync Server and the Update Interval so that TimeSync Clients and TimeSync Alternates will know when to expect the next TimeSync packet.
TimeSync packets are automatically sent by the TimeSync Server at the specified Update Interval. A TimeSync packet is also sent any time the real-time clock on the TimeSync Server is manually changed by the Do-more Designer Programmng Software, or changed by a NETTIME (SNTP Client) instruction in the controller.
Because the current Date and Time for a given controller is rendered from component values, TimeSync packets contain all of the information required for each controller to render a synchronized value. These packets contain the TimeSync Server's UTC time value, the Time Zone adjustment, and the $SummerTime setting. With these settings synchronized, the controllers will all render the same $LocalTime value for their clocks.
Note:
This feature uses TCP/IP broadcast packets to synchronize the real-time
clocks of the Clients and Alternates, which means that only controllers
within the TimeSync Server's broadcast
domain
|
|
Configuring a Do-more controller to participate in a TimeSync network is done through the CPU Configuration page of the System Configuration utility. There are four possible options for the TimeSync Configuration feature:
Client - this controller will process TimeSync messages that are sent from a TimeSync Server. Each time a Client receives a TimeSync message it will update it's real-time clock with the real-time clock information in the TimeSync packet, set its Status Bit ST23 ($TimeSynced) ON which indicates that the clocks have been synchronized, and begin timing down from the Update Interval so the Client will know when to expect the next TimeSync packet.
Server - this controller will generate TimeSync messages for other controllers on the network that are configured as Clients and Alternates. At each Update Interval or any time the Server's real-time clock is changed, a TimeSync Server will broadcast three TimeSync messages at five second intervals - three messages are sent to make sure that the Clients and Alternates receive at least one of the messages.
Alternate - this controller will normally function as a TimeSync Client but will promote itself to a TimeSync Server if there are no TimeSync packets received within the Update Interval. An Alternate will begin the process of promoting itself to a Server 15 seconds after the Update interval has expired.
The process of a TimeSync Alternate promoting itself to a TimeSync Server is as follows:
This
TimeSync Alternate will continue to operate as a TimeSync Server until
one of the following happens:
Update Interval
- is used in the following three ways:
|
|
See Also:
|
|