WikiPatents - Community Patent Review
Create Free Account  |  License or Sell Your Patent  |  WikiPatents Marketplace  |  WikiPatents Blog
Username:  Password:  
    
Advanced Search
System and method for synchronizing clocks in a plurality of devices across a communication channel    
United States Patent6236623   
Link to this pagehttp://www.wikipatents.com/6236623.html
Inventor(s)Read; James F. (Mission Hills, CA); Moore; Leonard W. (Northridge, CA)
AbstractA system and method is disclosed for synchronizing clocks in a plurality of devices connected by a communication channel. A master control device is coupled to one or more slave control devices, e.g., event recorders, across a communication channel. Preferably, the communication channel is implemented according to an RS-485 interface. By periodically interrogating and monitoring the responses of each of the slave control devices, the master control device determines the transit time, i.e., communication, delays to each of the slave control devices. Operating in conjunction with this data, the master control device can then interpret and/or adjust any event times reported by the event recorders to improve the relative time accuracy of the event recorders as compared to a time maintained by the master control device. Consequently, the control system can achieve a relative time synchronization accuracy between the master and slave times to within 100 microseconds and preferably 100 nanoseconds or less.



 Title Information Submit all comments and votes
 
Patent Text Patent PDF Print Page Summary File History
Plain text PDF images Print Summary File History
Drawing from US Patent 6236623
System and method for synchronizing clocks in a plurality of devices across

     a communication channel - US Patent 6236623 Drawing
System and method for synchronizing clocks in a plurality of devices across a communication channel
Inventor     Read; James F. (Mission Hills, CA); Moore; Leonard W. (Northridge, CA)
Owner/Assignee     Moore Industries (Sepulveda, CA)
Patent assignment
All assignments
Publication Date     May 22, 2001
Application Number     09/179,678
PAIR File History     Application Data   Transaction History
Image File Wrapper   Patent Term   Fees
Litigation
Filing Date     October 16, 1998
US Classification     368/46 368/47 370/507 375/354 375/358
Int'l Classification     G04C 011/00 G04C 011/02
Examiner     Miska; Vit
Assistant Examiner    
Attorney/Law Firm     Hogan & Hartson LLP
Address
Parent Case    
Priority Data    
USPTO Field of Search     368/10 368/46 368/47 368/52 370/451 370/458 370/445 370/447 370/448 370/449 370/450 370/457 370/498 370/503 370/507 370/508 375/354 375/355 375/356 375/357 375/358
Patent Tags     synchronizing clocks plurality devices across communication channel
   
Enter a comma (,) or semicolon (;) between multiple tag words/phrases.
Describe this patent:
 Amusing   
 Clever   
 Complex   
 Efficient   
 Historic   
 Important   
 Innovative   
 Interesting   
 Practical   
 Simple   
[no votes]
Patent WIKI

Share information and news about this patent, including information and news about the technology, inventors, company, ligation and licensing.

 References Submit all comments and votes
 
*references marked with an asterisk below are user-added references
 U.S. References
 
Add a new US reference:  
ReferenceRelevancyCommentsReferenceRelevancyComments
5684803
Nguyen Thuy
370/451
Nov,1997

[0 after 0 votes]
5590116
Zhang
370/253
Dec,1996

[0 after 0 votes]
5566180
Eidson
370/473
Oct,1996

[0 after 0 votes]
5442639
Crowder
714/712
Aug,1995

[0 after 0 votes]
5408506
Mincher
375/134
Apr,1995

[0 after 0 votes]
5319374
Desai
342/387
Jun,1994

[0 after 0 votes]
4912706
Eisenberg
370/507
Mar,1990

[0 after 0 votes]
4807259
Yamanaka
375/358
Feb,1989

[0 after 0 votes]
 Foreign References
 Other References
 Market Review Submit all comments and votes
   
Market Size
Estimate the gross annual revenues of the relevant market sector:
> $10B
$5B - $10B
$2B - $5B
$500M - $2B
$100M - $500M
$10M - $100M
$1M - $10M
$500K - $1M
$100K - $500K
< $100K
[No votes]
$0
 
$0   $2.5B   $5B   $7.5B   $10B
Market Share
Estimate the percentage of the relevant market sector this invention will capture:
75% - 100%
50% - 74.99%
25% - 49.99%
10 - 24.99%
5 - 9.99%
2 - 4.99%
1 - 1.99%
< 1%
[No votes]
0.0%
 
0%   25%   50%   75%   100%
Reasonable Royalty
What percentage of gross sales should the inventor or assignee be paid?
75% - 100%
50% - 74.99%
25% - 49.99%
10 - 24.99%
5 - 9.99%
2 - 4.99%
1 - 1.99%
< 1%
[No votes]
0.0%
 
0%   25%   50%   75%   100%
Public's "Guesstimation" of Royalty Value
Market SizeN/A[No votes]
xMarket ShareN/A[No votes]
xReasonable RoyaltyN/A[No votes]

N/A

License Availablity
If you are NOT the owner or assignee, answer here:
Yes, license is available for purchase

No, license is not currently available



[No votes]
License Availablity
If you ARE the owner or assignee, answer here:
Yes, license is available for purchase

No, license is not currently available



[No votes]
Competitive Advantage
Does this invention have a significant competitive advantage over similar technologies?
Yes

No



[No votes]
Most helpful competitive advantage comment
[No comments]

Commercial Alternatives
Are there viable commercial alternatives for this invention?
Yes

No



[No votes]
Most helpful commercial alternative comment
[No comments]

 Technical Review Submit all comments and votes
 Claims Submit all comments and votes
 


We claim:

1. A system for synchronizing clocks in a plurality of slave control device interconnected via a communication channel, said system comprising:

a master control device comprising:

master clock circuitry for maintaining an essentially fixed frequency output and a master time;

a communication controller for periodically sending an interrogation signal to each of said slave control devices and receiving an acknowledgment signal from each of said slave control devices in response thereto, each said acknowledgment signal characterized by a time delay corresponding to each said slave control device; and

an offset register for storing one or more time delay values corresponding to each said slave control device, said offset register storing said one or more time delay values between periodic interrogations of said slave control devices;

at least one slave control device comprising:

clock circuitry for maintaining a slave time;

a communication controller for receiving said interrogation signal and sending said acknowledgment signal in response thereto; and

an event controller for operating in association with said slave clock circuitry; and

a communication channel for providing a bidirectional communication path between said master control device and each of said slave control devices for sending and receiving said interrogation and said acknowledgment signals wherein said slave communication controller is additionally responsive to a synchronization signal sent from said master control device across said communication channel, used in conjunction with an associated time delay value in said offset register, to cause said slave time to essentially synchronize with said master time.

2. The system of claim 1 wherein said slave control device additionally comprises:

two or more slave time registers for controlling the operation of said slave clock circuitry; and wherein

said slave time registers are alternately operational to receive a time essentially corresponding to said master time and responsive to said synchronization signal to cause said slave clock circuitry to operate in response to said operational slave time register.

3. The system of claim 1 additionally comprising:

GPS apparatus for receiving a GPS signal and generating a GPS fixed frequency output and a GPS time; and wherein

said master clock circuitry is responsive to said GPS time and said GPS fixed frequency output in maintaining said master clock fixed frequency output at an essentially fixed frequency and said master time corresponding to said GPS time.

4. The system of claim 1 wherein said slave control device additionally comprises:

an offset register for storing a value from said offset register associated with said slave control device; and wherein

said offset register value is used in determining said slave time.

5. The system of claim 1 wherein said slave time corresponds to said master time within 100 microseconds.

6. The system of claim 1 wherein said event controller additionally comprises means for detecting an event and storing said slave time of said event.

7. The system of claim 6 wherein said slave control device additionally comprises:

means for transferring said stored time to said master control device; and wherein

said system further includes means for causing said transferred stored time to essentially correspond to said master time when said event occurred.

8. The system of claim 7 wherein said transferred stored time corresponds within 100 microseconds to said master time when said event occurred.

9. The system of claim 1 wherein said event controller additionally comprises:

an output driver for causing an event to occur; and

means for causing said output driver to be activated at a time essentially corresponding to a predetermined master time.

10. The system of claim 1 wherein said communication channel comprises a signal path implemented according to an RS-485 interface.

11. The system of claim 1 wherein said system additionally comprises communication means for verifying the accuracy of said slave time as compared to said master time.

12. A method of synchronizing clocks in a plurality of slave control devices interconnected via a communication channel to a master control device, said method comprising the steps of:

periodically sending an interrogation message from said master control device to each of said slave control devices;

sending an acknowledgment message from said slave control devices to said master control device upon receipt of said interrogation message;

determining a time delay corresponding to each of said slave control devices;

storing a value corresponding to each of said time delays in said master control device;

periodically sending a master time globally to said slave control devices;

receiving said master time in each of said slave control devices; and

said slave control devices setting a slave time in accordance with said received master time.

13. The method of claim 12 additionally comprising the steps of:

sending an event message from an originating slave control device to said master control device in response to an event; said event message time stamped in accordance with said slave time;

said master control device receiving said time-stamped event message; and

adjusting said received time stamp in accordance with said stored time delay value corresponding to said originating slave control device.

14. The method of claim 12 additionally comprising the steps of:

sending a command message from said master control device to a destination slave control device; said command message designating a future master time within, adjusted by said stored time delay value corresponding to said destination slave control device, to actuate an output driver;

said destination slave control device receiving said command message; and

said destination slave control device actuating an output driver at a time when its slave time essentially corresponds to said future master time designated within said command message.

15. The method of claim 12 additionally comprising the steps of:

said master control device periodically receiving a time and frequency signal; and

said master control device adjusting a master clock frequency and master time in response thereto.

16. The method of claim 12 wherein said periodically sending a master time step occurs at a rate of essentially every 5 seconds or less.

17. The method claim 12 wherein said periodically sending an interrogation message step occurs at a rate of essentially every 5 seconds or less.

18. A method of synchronizing clocks in a plurality of slave control devices interconnected via a communication channel to a master control device, said method comprising the steps of:

periodically sending an interrogation message from said master control device to each of said slave control devices;

sending an acknowledgment message from said slave control devices to said master control device upon receipt of said interrogation message;

determining a time delay for each of said slave control devices;

sending a value corresponding to said time delay to its associated slave control device;

storing said corresponding time delay value in said associated slave control device;

periodically sending a master time globally to said slave control devices;

receiving said master time in each of said slave control devices; and

said slave control devices setting a slave time in accordance with said received master time.

19. The method of claim 18 wherein said setting step additionally comprises setting said slave time in accordance with said stored delay value as well as said received master time; said slave time being essentially identical with said master time.

20. The method of claim 18 additionally comprising the steps of:

sending an event message from an originating slave control device to said master control device in response to an event; said event message time stamped in accordance with said slave time; and

said master control device receiving said time-stamped event message.

21. The method of claim 18 additionally comprising the steps of:

sending a command message from said master control device to a destination slave control device; said command message designating a future master time within to actuate an output driver;

said destination slave control device receiving said command message; and

said destination slave control device actuating an output driver at a time when its slave time essentially corresponds to said future master time designated within said command message.

22. The method of claim 18 additionally comprising the steps of:

said master control device periodically receiving a time and frequency signal; and

said master control device adjusting a master clock frequency and master time in response thereto.

23. The method of claim 18 wherein said periodically sending a master time step occurs at a rate of essentially every 5 seconds or less.

24. The method claim 18 wherein said periodically sending an interrogation message step occurs at a rate of essentially every 5 seconds or less.

25. A method of synchronizing clocks in a plurality of slave control devices interconnected via a communication channel to a master control device, said method comprising the steps of:

periodically sending an interrogation message from said master control device to each of said slave control devices;

sending an acknowledgment message from said slave control devices to said master control device upon receipt of said interrogation message;

determining a time delay corresponding to each of said slave control devices;

storing a value corresponding to each of said time delays in said master control device;

periodically sending a master time adjusted by a corresponding time delay value of each slave control device to each of said slave control devices;

receiving said master time adjusted by said corresponding time delay value in each of said slave control devices; and

said slave control devices setting a slave time in accordance with said received adjusted master time.

26. The method of claim 25 additionally comprising the steps of:

sending an event message from an originating slave control device to said master control device in response to an event; said event message time stamped in accordance with said slave time; and

said master control device receiving said time-stamped event message.

27. The method of claim 25 additionally comprising the steps of:

sending a command message from said master control device to a destination slave control device; said command message designating a future master time within to actuate an output driver;

said destination slave control device receiving said command message; and

said destination slave control device actuating an output driver at a time when its slave time essentially corresponds to said future master time designated within said command message.

28. The method of claim 25 additionally comprising the steps of:

said master control device periodically receiving a time and frequency signal; and

said master control device adjusting a master clock frequency and master time in response thereto.

29. The method of claim 25 wherein said periodically sending a master time step occurs at a rate of essentially every 5 seconds or less.

30. The method claim 25 wherein said periodically sending an interrogation message step occurs at a rate of essentially every 5 seconds or less.

31. A master control device for synchronizing times in a plurality of slave control devices interconnected via a communication channel, said master control device comprising:

master clock circuitry for maintaining an essentially fixed frequency output and a master time;

a communication controller for periodically sending an interrogation signal to each slave control device and receiving an acknowledgment signal from each slave control device in response thereto; each said acknowledgment said characterized by a time delay corresponding to each slave control device; and

an offset register for storing one or more time delay values corresponding to each slave control device, said offset register storing said one or more time delay values between periodic interrogations of said slave control devices.

32. A slave control device interconnected via a communication channel to a master control device for receiving messages to cause a slave time to synchronize to a master time in the master control device, said slave control device comprising:

clock circuitry for maintaining a slave time;

a communication controller for receiving an interrogation signal from the master control device and sending said acknowledgment signal in response thereto;

an event controller for operating in association with said slave clock circuitry; and wherein

said master control device periodically sends an interrogation signal to said slave control device and said slave control device sends an acknowledgment signal in response thereto to determine a time delay for said slave control device and said slave communication controller is additionally responsive to a synchronization signal sent from the master control device across the communication channel used in conjunction with said time delay value to cause said slave time to essentially synchronize with the master time.

33. The slave control device of claim 32 additionally comprising:

an offset memory for storing said time delay value; and wherein

said offset said time delay value is used in determining said slave time.

34. A system for synchronizing clocks in a plurality of slave control device interconnected via a communication channel, said system comprising:

a master control device comprising:

master clock circuitry for maintaining an essentially fixed frequency output and a master time;

a communication controller for periodically sending an interrogation signal to each of said slave control devices and receiving an acknowledgment signal from each of said slave control devices in response thereto, each said acknowledgment signal characterized by a time delay corresponding to each said slave control device; and

an offset register for storing one or more time delay values corresponding to each said slave control device;

at least one slave control device comprising:

clock circuitry for maintaining a slave time;

a communication controller receiving said interrogation signal and sending said acknowledgment signal in response thereto;

two or more slave time registers operational in setting a slave time and alternately operational to receive signals corresponding to said master time; and

an event controller operating in association with said slave clock circuitry; and

a communication channel for providing a bidirectional communication path between said master control device and each of said slave control devices for sending and receiving said interrogation and said acknowledgment signals wherein said slave communication controller is additionally responsive to a synchronization signal sent from said master control device across said communication channel, used in conjunction with an associated time delay value in said offset register, to cause said slave time to essentially synchronize with said master time.

35. The system of claim 34, wherein a first and second of said two or more slave time registers store respective first and second values of said master time.

36. The system of claim 34, said at least one slave control device further comprising an incremental slave time register holding a time value representative of a time period since a most recent synchronization of said slave time with said master time.

37. The system of claim 36, further comprising an adder coupled to each of said two or more slave time registers and to said incremental slave time register, said adder combining a value in an active one of said two or more slave time registers with a value in said incremental slave time register to produce said slave time.

38. The system of claim 37, wherein a first and second of said two or more slave time registers store respective first and second values of said master time.

39. A method of synchronizing clocks in a plurality of slave control devices interconnected via a communication channel to a master control device, said method comprising the steps of:

periodically sending an interrogation message from said master control device to each of said slave control devices;

sending an acknowledgment message from said slave control devices to said master control device upon receipt of said interrogation message;

determining a time delay corresponding to each of said slave control devices;

storing a value corresponding to each of said time delays in said master control device;

periodically sending a master time globally to said slave control devices;

periodically sending a master time adjustment corresponding to said time delay value of each slave control device to each of said slave control devices;

receiving said master time in each of said slave control devices; and

said slave control devices setting a slave time in accordance with said received adjusted master time.
 Description Submit all comments and votes
 


BACKGROUND OF THE INVENTION

The present invention relates generally to a system and method for synchronizing clocks in a plurality of devices connected by a communication channel and is particularly suited for monitoring and/or accurately controlling the relative time relationship of events occurring proximate to one or more of the devices.

DESCRIPTION OF THE PRIOR ART

Event recorders have been used successfully for many years throughout industry, mainly for the purposes of scheduling maintenance actions and for post-incident analysis after an alarm or failure has occurred. For example, if a failure occurs on a power grid that caused portions of the grid to shut down, it would be useful to determine the sequence in which the shut downs occurred. Additionally, in the event of a catastrophic failure, e.g., an explosion in an oil refinery, the ability to determine the origin of the explosion by determining the sequence of events in the refinery could be extremely desirable. Event recorders work by time-stamping a signal when it arrives at the recorder's buffer. The time-stamping performed by such recorders relies upon an internal clock that is generally only accurate to within a millisecond. Typically, when multiple recorders are used, their internal clocks are not precisely synchronized even in systems where the recorders are in close proximity. Accordingly, determining the precise timing sequence of a group of events, e.g., a power shutdown or catastrophic failure, can be difficult due to the accumulated errors, i.e., from multiple clock and synchronization errors. Consequently, it is generally difficult to determine the event, and its corresponding location, which originated the sequence. In addition, if the recorders are widely distributed, the ability to synchronize the recorder's internal clocks typically becomes even more difficult and even less precise. Therefore, what is needed is a system that allows for precise synchronization between multiple event recorders and/or control devices that is essentially independent of the geographical distribution of such devices.

SUMMARY OF THE INVENTION

The present invention relates to a system and method for synchronizing clocks in a plurality of devices connected by a communication channel and is particularly suited for monitoring and/or accurately controlling the relative time relationship of events occurring proximate to one or more of the devices. Preferred embodiments of the present invention provide a master control device coupled to one or more slave control devices via a communication channel. The master control device, preferably microcomputer based, is a controller having an internal clock that is capable of periodic communication with the slave control devices to cause clocks within each slave control device to essentially synchronize with the master control device's internal clock. Furthermore, the master control device can command and/or monitor events at each of the slave control devices. The slave control devices, preferably microcomputer based, are controllers having internal clocks that are responsive to messages from the master control device. Additionally, the slave control devices include an interface to monitor local events, e.g., through a relay contact, and/or control external devices to cause local events to occur, e.g., through an output driver. Preferably, the communication channel is implemented according to an RS-485 interface. By periodically interrogating and monitoring the responses of each of the slave control devices, the master control device determines the transit time, i.e., communication, delays to each of the slave control devices. Operating in conjunction with this data, the master control device can then interpret and/or adjust any event times reported by the event recorders to improve the relative time accuracy of the event recorders as compared to a time maintained by the master control device. Consequently, embodiments of the present invention can achieve a relative time synchronization accuracy between master and slave times to within 100 microseconds and preferably 100 nanoseconds or less.

Accordingly, a system of the present invention is of particular use in determining the cause of a power shutdown or a catastrophic failure since the precision between event recorders permits more precise analysis of the actual order that events occurred. Additionally, slave control devices of the present invention can be constructed that allow for the precise synchronization of distributed control events.

A system for synchronizing clocks in a plurality of slave control devices interconnected via a communication channel might include a master control device, at least one slave control device, and a communication channel for providing a bidirectional communication path between the master control device and each of the slave control devices. In particular, the master control device comprises master clock circuitry for maintaining an essentially fixed frequency output and a master time, a communication controller for periodically sending an interrogation signal to each of the slave control devices and receiving an acknowledgment signal from each of the slave control devices in response thereto, each acknowledgment signal characterized by a time delay corresponding to each slave control device, and an offset register for storing one or more time delay values corresponding to each slave control device. Each slave control device comprises clock circuitry for maintaining a slave time, a communication controller for receiving the interrogation signal and sending the acknowledgment signal in response thereto, and an event controller for operating in association with the slave clock circuitry. The communication channel is used for sending and receiving the interrogation and the acknowledgment signals. Additionally, the slave communication controller is responsive to a synchronization signal sent from the master control device across the communication channel, used in conjunction with an associated time delay value in the offset register, to cause the slave time to essentially synchronize with the master time.

Such a system is particularly useful in precisely determining the time that events occur at one or more of the slave control devices when the master control device receives time-stamped event messages from the slave control devices. In a preferred embodiment, the offset register contains delay values for each of the slave control devices and adjusts the received time stamps when each event message is received. In an alternative embodiment, the delay value is sent from the master control device to the slave control device where it is retained in an offset memory. The slave control device then uses this value in synchronizing the slave time to the master time.

In a particularly preferred aspect of the present invention, the clock and the time of the master control device are periodically regulated by a GPS receiver which receives a globally precise timing signal, i.e., a timing signal that is precisely regulated to all places on the earth. Accordingly, multiple geographically-distributed systems of the present invention can be synchronized to a global reference, and thus to each other.

The invention will be best understood from the following description when read in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a top level functional block diagram of a preferred system for enabling clocks in a plurality of devices to be synchronized across a communication channel;

FIG. 2 is an exemplary timing diagram for communications between the master and a slave control device of the system of FIG. 1;

FIG. 3a is a functional block diagram of methods of synchronizing the clocks of the system of FIG. 1 by alternatively compensating time values received from the slave control devices or adjusting the time values sent to the slave control devices in accordance with the transit time delays of each slave control device;

FIG. 3b is a functional block diagram of an alternative implementation of the clock circuitry portion of the slave control device of FIG. 3a;

FIG. 4a is a functional block diagram of an alternative method of synchronizing the clocks of the system of FIG. 1 by passing a corresponding offset value to each slave control device;

FIG. 4b is a functional block diagram of an alternative implementation of the clock circuitry portion of the slave control device of FIG. 4a;

FIG. 5 is a timing diagram for the process of interrogating and synchronizing the slave control devices of FIG. 1;

FIG. 6 is a block diagram of a pair of clock synchronization systems synchronized to each other via the use of GPS receivers;

FIG. 7 shows an exemplary implementation of clock training circuitry for adapting the clock circuitry to a clock from a GPS receiver;

FIG. 8 shows a system which employs two master control devices connected to a plurality of slave control devices across a single communication path; and

FIG. 9 shows an exemplary timing diagram for verifying the accuracy of the slave time.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

The present invention relates to a system and method for synchronizing clocks in a plurality of devices across a communication channel. Preferred embodiments of the present invention provide a master control device coupled to one or more slave control devices, e.g., event recorders, through a communication channel. The master control device, preferably microcomputer based, is a controller having an internal clock that is capable of periodic communication with the slave control devices to cause internal clocks within each slave control device to essentially synchronize with the master control device's internal clock. Furthermore, the master control device can command and/or monitor events at each of the slave control devices. The slave control devices, preferably microcomputer based, are controllers having internal clocks that are responsive to messages from the master control device. Additionally, the slave control devices include an interface to monitor local events, e.g., through a relay contact, and/or control external devices to cause local events to occur, e.g., through an output driver. Preferably, the communication channel is implemented according to an RS-485 interface. By periodically interrogating and monitoring the responses of each of the slave control devices, the master control device determines the transit time delays, i.e., the time it takes for a message to transfer from the master control device to each slave control device. Operating in conjunction with this data, the master control device can interpret and/or adjust event times reported by the event recorders to improve the relative time accuracy of the times reported by the event recorders based on clocks in the event recorders as compared to the time maintained by a clock in the master control device. Consequently, embodiments of the present invention can achieve a relative time synchronization accuracy between the master and slave times to within 100 microseconds and preferably 100 nanoseconds or less.

Accordingly, a system of the present invention is of particular use in determining the cause of a power shutdown or a catastrophic failure since the precision between event recorders permits analysis of the actual order that events occurred. Additionally, slave control devices of the present invention can be constructed as remotely-controlled timing modules that allow for the precise synchronization of distributed control events, e.g., the actuation of a relay for powering a pump or a motor which form a part of a process control system.

FIG. 1 shows a top level functional block diagram of a preferred system 10 for enabling clocks in a plurality of devices to be synchronized across a communication channel. A preferred clock synchronization system 10 may include a master control device 12, at least one slave control device 14, and a bidirectional communication channel 16 for providing a communication path between the master control device 12 and each of the slave control devices 14. Preferably, the communication channel 16 is comprised of a signal path implemented according to an RS-485 interface, a two wire bidirectional, differential interface. However, multiple RS-422 or RS-232 interfaces or a LAN interface could also be used to implement the communication channel 16.

A first control device, the master control device 12 for synchronizing the clocks of a plurality of slave control devices 14 to its internal clock, comprises clock circuitry 18 for maintaining an essentially fixed frequency output 20 and a master time 22, a communication controller 24 for communicating with each of the slave control devices 14, and an offset register 26, a memory for storing one or more time delay values corresponding to the communication delay times associated with one or more of the slave control devices 14.

The slave control devices 14 are comprised of clock circuitry 28 for maintaining a slave time 30, a communication controller 32 for communicating with the master control device 12, and an event controller 34, operating in association with the clock circuitry 28. The event controller 34 records the occurrence of an event identified at signal 36. Typically, signal 36 is indicative of an event that the system is monitoring, e.g., a system failure such as a tripped circuit breaker or an over temperature warning. An event time register 37 captures the slave time 30 at the moment that signal 36 is detected. Subsequently, the value stored in the event time register 37 is reported to the master control device 12 (preferably in response to an inquiry from the master control device 12). Alternatively, the controller 34 receives commands from the master control device 12 to cause an event to occur at a time which is stored in the event time register 37. When the value in the event time register 37 equals the slave time 30, the event controller 34 outputs a control signal 38 via driver output 40 to cause an event to occur, e.g, the startup of a pump.

The master and slave time portions are comprised of circuitry that counts forward, preferably indicating the time of day, in response to clocks in their respective clock circuitry portions. Embodiments of the present invention provide a method for periodically updating/correcting the slave times 30 relative to the master time 22 and, accordingly, the slave times 30 are essentially synchronized to each other.

Communication delays occur between the master 12 and slave controllers 14 due to physical and communication processing delays. Physical delays primarily correspond to the physical line length of the communication path 16 between the master control device 12 and each slave control device 14. Additionally, the quality of the physical communication path, e.g., corrosion or resistance, can be different for each portion of the communication path 16. Communication processing delays primarily correspond to the hardware/software portion of the communication controllers 32 in each of the slave control devices 14. Consequently, a different communication delay will typically exist for each slave control device 14. Embodiments of the present invention compensate for these differences so that the slave time 30 in each slave control device 14 essentially corresponds to the master time 22 in the master control device 12. To accomplish this synchronization, the master control device 12 periodically interrogates the slave control devices 14 to individually determine the corresponding communication delay for each slave control device 14. In a preferred embodiment, each of these corresponding communication delays is stored in the main controller 12, preferably within the offset register 26. Alternatively, each of these delays can be forwarded to the associated slave control device 14.

FIG. 2 shows an exemplary timing diagram for communications between the master device 12 and a slave control device 14. In this example, it is assumed that there is a first transit time T.sub.1 from the master control device 12 to the slave control device 14. The first transit time is comprised of T.sub.p1 (the physical delay) and T.sub.c1 (the communication processing delay). Similarly, there is a second transit time T.sub.2 from the slave control device 14 to the master control device 12 of T.sub.p2 and T.sub.c2. Accordingly, if the master control device 12 sends an interrogation command 42 (e.g., ENQ-DEVICE) at time T.sub.0 to a selected slave control device 14, the command will arrive at the slave control device 14 at a time T.sub.0 +T.sub.1. The slave control device 14 then sends a reply message 44 (e.g., an ACK, a sequence of characters including the interrogation command and/or the time of receipt, etc.) which arrives back at the master control device 12 at a time T.sub.0 +T.sub.1 +T.sub.2, i.e., after a loop communication delay of T.sub.1 +T.sub.2 (i.e., T.sub.p1 +T.sub.p2 +T.sub.c1 +T.sub.c2). Typically, the physical delays are essentially identical in both directions across the communication path 16 and the communication processing delays are similar and/or can be designed to be similar. Accordingly, if the total loop communication delay 46 is monitored in reference to the master clock circuitry 18 and/or the master time 22, the loop communication delay can be measured. Then, if the loop communication delay 46 (i.e., T.sub.1 +T.sub.2) is divided by 2, the transit time delay 48 (i.e., T.sub.1 or T.sub.2) can be determined. Using this transit time delay 48, various methods can be used to either actually synchronize (e.g., within the measurement errors of the transit time delay) the slave times 30 or compensate for the known time setting errors for each of the slave control devices 14.

In the embodiment illustrated in FIG. 3a (referred to as embodiment A and discussed further in reference to FIG. 9), the slave control device 14 is periodically commanded by the master control device 12 using a clock set command 50 (e.g., STX-TIME) to synchronize its time 30 to the master time 22. Preferably, the clock set command 50 is globally sent to all of the slave control devices 14. Of course, when each slave control device 14 receives this command, it is now a transit time delay T.sub.Tx (corresponding to each device) later. Thus, the slave time 30 will be slow by a value T.sub.Tx. Accordingly, if slave control device number 1 reported that an event occurred at a slave time T.sub.S, that event would have actually occurred at a master time T.sub.M where T.sub.M =T.sub.S +T.sub.T1. Thus, when the master control device 12 receives a time-stamped event message 52, it preferably adjusts the reported time, e.g., T.sub.S, by adding a stored delay value T.sub.T1, corresponding to that slave control device 14, from the offset register 26. Accordingly, the adjusted reported time will be T.sub.S +T.sub.T1, which is the actual time that the event occurred.

In another embodiment (also illustrated in FIG. 3a), the master control device 12 adjusts its clock set command 50 to set each slave time 30 according to the calculated transit time T.sub.Tx for each slave control device 14. Accordingly, the transit time delay T.sub.T1 for a selected slave control device number 1 is added from the offset register 26 to the master time T.sub.M and this adjusted value (T.sub.M +T.sub.T1) is sent to the selected slave control device 14. Since the transit time delay T.sub.T1 (where T.sub.T1 =T.sub.p1 +T.sub.c1) is the time that it has been determined that it takes for a command to be received at the selected slave control device 14, the slave time 30 will be set to a value of T.sub.M +T.sub.T1 at a time when the actual time is T.sub.M +T.sub.T1. Thus, the slave time 30 and the master time 22 will contain essentially identical times. Consequently, when an event is reported from the slave control device 14 on the communication path 16 via the time-stamped event message 52, it will be reported with the actual time that the event occurred.

As opposed to the first embodiment, this alternative embodiment requires that a separate clock set command 50 be sent to each slave control device 14 since each slave control device 14 has a different transit time delay 48. As discussed further below, the clock set command 50 is actually divided into two intervals. A first portion 50a is used to send a desired time value to the slave device 14 and a second portion 50b is used to instruct the slave device 14 to set its slave time 30 to the value it received in the first portion 50a of the clock set command. While the first portion 50a corresponds to each slave device 14, the second portion 50b need not be. Accordingly, while the first portions 50a are directed to each slave device 14, the second portion 50b can be sent globally to all of the slave control devices 14.

In a next embodiment (see FIG. 4a), the transit time delay value T.sub.T1 which was calculated in the master control device 12, is sent to the slave control device 14 where it is saved in an offset memory 54. Consequently, this value T.sub.T1 can be used in adjusting the slave time 30 at the slave control device 14. In