Patent · US6535926B1 · B1 · US
Time synchronization system for industrial control network using global reference pulses
- (11) Publication number
- US6535926B1
- (21) Application number
- 09/409,958
- (22) Filing date
- 1999-09-30
- (30) Priority date
- 1999-09-30
- (43) Publication date
- 2003-03-18
- (45) Date of grant
- 2003-03-18
- (51) IPC
- H04J 3/06; H04L 29/06; H04L 29/08
- (52) CPC
- (73) Assignee
- Rockwell Automation Technologies Inc
- (72) Inventors
- Lawrence W. Esker
- (54) Title
- Time synchronization system for industrial control network using global reference pulses
- (57) Abstract
Local clocks used for coordinating events in an industrial control system may be synchronized using time messages transmitted on standard communication networks. A master industrial controller incorporates a time values in a time messages transmitted to the other controllers, the time value indicating the tie of occurrence of an independent global synchronizing pulse. All controllers also capture the local time of the global synchronizing pulse and these times may be compared to the time message from the master industrial controller to deduce a time error value independent of network messaging delays. The error value is used to correct the local clocks.
- Full text
- View on Google Patents
Claims (14)
- A method of synchronizing local clocks among industrial control devices communicating on a network, the synchronizable being to a time value of a master clock in a first industrial control device, the method comprising the steps of: (a) detecting at the first industrial control device a global reference pulse; (b) storing at the first industrial control device, a first time value of the master clock at the time of detection of the global reference pulse by the first industrial control device; (c) transmitting from the first industrial control device a time message on the network containing the stored first time value of the master clock; (d) detecting at a second industrial control device the global reference pulse; (e) storing at the second industrial control device, a second time value of a local clock in the second industrial control device at a time of detection of the global reference pulse at the second industrial control device; (f) receiving at the second industrial control device the time message and comparing the first time value to the second time value to produce an error value; and (g) correcting the local clock of the second industrial control device according to the error value.
- The method of claim 1 wherein the global reference pulse is a periodic reference signal from a global positioning satellite.
- The method of claim 1 wherein the global reference pulse is a periodic signal intrinsic to a communications protocol of the network.
- The method of claim 3 wherein the communications protocol is selected from the group consisting of EtherNet, DeviceNet, ControlNet, FireWire, Sercos, ATM and FieldBus.
- The method of claim 1 wherein steps (a) and (b) are performed by dedicated circuitry in the first industrial control device including a snapshot register communicating with the master clock and triggered by the detection of the global reference pulse at step (a) and to store the time value of the master clock.
- The method of claim 1 wherein steps (a) and (b) are performed by a software interrupt routine reading the master clock and triggered by the detection of the global reference pulse at step (a) and to store the time value of the master clock.
- The method of claim 1 wherein step (d) and (e) are performed by dedicated circuitry in the second industrial control device including a snapshot register communicating with the local clock and triggered by the detection of the global reference pulse at step (d) and to store the time value of the local clock.
- The method of claim 1 wherein step (f) of computing the error value is performed by a computer processor executing a stored program.
- The method of claim 1 wherein step (f) of computing the error value is performed by hardware.
- The method of claim 1 wherein the global reference pulse occurs regularly at a first period and wherein step (c) is performed an arbitrary time after step (a) within a first period after the global reference pulse.
- The method of claim 1 wherein the global reference pulse occurs at a first rate and wherein steps (a) (b) and (c) are limited to a second rate less than the first rate.
- The method of claim 1 wherein the error value is a function of the difference between the first and second time values.
- The method of claim 1 wherein the error value is a function of the rate of change of the difference between the first and second time values to anticipate difference is oscillator speeds underlying the master and local clocks.
- The method of claim 1 wherein the error value is a function of the second derivative with time of the difference between the first and second time values to anticipate drift in oscillator speeds underlying the master and local clock.
Description
The present invention relates to industrial controllers used for real-time control of industrial processes and in particular to a method of synchronizing clocks among multiple industrial controllers connected by a network, wherein the synchronizing method is applicable to a wide variety of different network protocols.
Industrial controllers are special-purpose computers used for controlling industrial processes and manufacturing equipment. Under the direction of a stored program, the industrial controller examines a series of inputs reflecting the status of the controlled process and changes the series of outputs controlling the industrial process. The inputs and outputs may be binary, that is on or off, or analog providing a value within a continuous range of values.
An industrial controller differs from a conventional computer in that the various components of the industrial controller may be separated by a considerable distance commensurate with the expanse of a large factory or manufacturing operation. Separated industrial controllers communicate via digital messages transmitted over one or more communication networks including well-known standards of EtherNet, DeviceNet, ControlNet, Fire Wire, Field Bus, SERCOS and ATM. Each of these networks employs different communication protocols. Inter-communication among industrial controllers using different standards is facilitated by the availability of application-specific integrated circuits (ASIC) providing for low-level formatting and queuing operations necessary to interface to the communication media
Citations (7)
- US5991280A
- US5896524A
- US6157957A
- US6351821B1
- US6308280B1
- US6324586B1
- US6389547B1