Fieldbus & Industrial Networking


Precision Time Protocol

May 2010 Fieldbus & Industrial Networking

Using the IEEE1588 protocol for precision clock synchronisation.

Motion control and many other distributed systems in automation technology depend on precise clock synchronisation for correct operation. With most automation systems moving over to Ethernet as a communication medium, and the fact that Ethernet is not a deterministic medium, a protocol which defines the mechanism for precise time synchronisation becomes essential. It is also important that any such protocol places minimum strain on the network, as well as the CPUs of any equipment involved.

Traditional solutions used in enterprise networks (Network Time Protocol and the Simple Network Time Protocol) do not meet the stringent demands of control systems (though they offer millisecond range synchronisation), even more so when it comes to processes such as motion control.

The IEEE1588 Precision Time Protocol (PTP), first proposed by Agilent Technologies, is designed to address the requirements for time control, namely:

* Defining an international standard.

* Ease of implementation and administration.

* Synchronisation capabilities of sub-microsecond.

* Ethernet capable.

* Low CPU requirements and low bandwidth requirements.

PTP is very effective in addressing all of the above requirements, and, in Ethernet networks (PTP works on any multicast-capable network), it successfully eliminates the effects that variable network latency may have. It also caters for the effect that switches and routers have on the packet transmission, which can be exacerbated by the use of mechanisms such as QoS and ToS.

PTP does this by introducing the concept of a boundary clock, in addition to having master and slave clocks. A boundary clock is positioned at an Ethernet device (such as a switch, or a router), while the end devices are either a master or a slave clock.

To successfully synchronise clocks, two aspects must be addressed – the offset and the drift. The former ensures that the inaccurate (or less accurate) clock is set to the accurate one, while the latter ensures that the fact that different clocks may run at different speeds is compensated. Thus, PTP works in two phases. In the first phase, the offset is corrected by the master clock (usually connected to a GPS or other high precision source), which sends a time stamped synchronisation signal at regular intervals to the slave clocks. In addition to this, the master also measures the time at which the SYNC message was sent and sends this value to the slaves as well. The slaves measure the reception time and can calculate the offset (or the correction time) and correct themselves. The second phase is the delay measurement, which is measured by the Delay Request and Delay Response messages. Based on these the drift is calculated and corrected accordingly.

The process, however, depends on the latency between master and slave being symmetrical – something which is almost guaranteed when they are directly connected. This is not the case in a typical network though, when there are switches and routers connecting end devices. This is where the boundary clock concept comes in – each network device will have a clock, which is synchronised with a master directly connected to the device, and then acts as a master to all other devices connected to it. This means that the symmetrical latency requirement is always satisfied, and the synchronisation kept accurate. It is still important to adhere to general good practices for Industrial Ethernet network design, since the latency introduced by the networking devices increases proportionately with the network load.

One of the benefits of the PTP is that the selection of the master and slave clocks is handled by the protocol. This is done using the Best Master Clock algorithm, which runs on every member of the PTP. The algorithm compares the properties of the clocks and distributes them amongst the members, who in turn determine their own status. Thus no status negotiation is necessary.

The implementation of the PTP can be done either in software only, or by using relatively simple and inexpensive hardware. The purely software implementation achieves reasonably good accuracy (between 10 and 250 μs), however it is dependent on the CPU cycles and network utilisation.

Hardware implementations, such as the one used in the Hirschmann range of PTP capable switches, ensures that the dedicated Time Stamp Unit is present, which generates the time stamps directly on the transport medium. Such implementations are good for accuracy of under a microsecond.

For more information contact Vladimir Milovanovic, IAC, +27 (0)12 657 3600, [email protected], www.iaconline.co.za



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

EtherCAT interoperability removes industrial networking barriers
Fieldbus & Industrial Networking
Selecting the right communication technology is one of the most important decisions engineers make, and interoperability helps with that decision. Key development tools and standards ensure interoperability among many EtherCAT devices and manufacturers.

Read more...
Condition monitoring to go
Turck Banner Southern Africa Fieldbus & Industrial Networking
Anyone who wants to efficiently monitor the climate in control cabinets will find a comprehensive range of control cabinet monitors for the DIN rail in Turck Banner’s cabinet condition monitoring family.

Read more...
Innovative separation of recyclable materials
Beckhoff Automation Fieldbus & Industrial Networking
A plant built by Belgian specialist machine builder, Absolem Engineering features an innovative process for separating recyclable materials. Using PC-based control from Beckhoff, a major problem has been elegantly solved - the generation of different signal sequences for the exact synchronisation of different camera systems.

Read more...
Enhancing AI-powered object detection and recognition capabilities
Vepac Electronics Fieldbus & Industrial Networking
Innodisk has announced its cooperation with Advantech, a global leader in AIoT and edge computing. This collaboration leverages Innodisk’s customisable MIPI camera modules and Advantech’s Intel x86-based AFE-R360 solution to enhance AI-powered object detection and recognition capabilities, expanding visual applications for autonomous mobile robots in smart factories and warehouses.

Read more...
Rugged, agile and scalable boards
Vepac Electronics Fieldbus & Industrial Networking
Embedded computing pioneer, AAEON has launched the PICO-ASL4 and GENE-ASL6, both featuring the new Intel Atom x7000RE Processor Series for the edge.

Read more...
Rugged gateway board with open-source flexibility
Vepac Electronics Fieldbus & Industrial Networking
The SRG-CM4 from Vepac brings all the open-source flexibility of the Raspberry Pi OS and ecosystem to AAEON’s signature rugged, durable gateway design to create a truly industry-ready modular system.

Read more...
New safety I/O modules for functional safety in highly automated operations
Fieldbus & Industrial Networking
Belden has expanded the Lumberg Automation LioN family with its new LioN-Safety I/O Modules. Designed to support functional safety efforts in industrial operations, the modules streamline the transmission of data over existing networks.

Read more...
IO-Link master for the automation and IT world
ifm - South Africa Fieldbus & Industrial Networking
The decentralised IO-Link master modules from ifm serve as a gateway between intelligent IO-Link sensors and the fieldbus. Important information on the intelligent sensors can also be simultaneously sent.

Read more...
Condition monitoring with IO-Link rotary encoders
Pepperl+Fuchs Fieldbus & Industrial Networking
Whether in the materials handling industry, in packaging machines or in wind turbines, sensors with an IO-Link interface are increasingly being used to pave the way to Industry 4.0. Pepperl+Fuchs was one of the first manufacturers to launch an absolute rotary encoder with IO-Link interface, that was available in numerous variants and with a wide range of setting parameters.

Read more...
Efficiently consolidate analogue signals and reduce wiring
Turck Banner Southern Africa Fieldbus & Industrial Networking
Control engineers can bring analogue signals into a control system more efficiently with the new R95C 8-port analogue input to modbus hub.

Read more...