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:

Introduction to Part 2 loop signatures and process transfer functions
Fieldbus & Industrial Networking
The previous series of loop signature articles dealt with the basics of control loop optimisation, and concentrated on troubleshooting and ‘SWAG’ tuning of simple processes. In this new series, consideration will be given to dealing practically with more difficult issues like interactive processes, and with processes with much more complex dynamics.

Read more...
Siemens sets new standards in drive technology
Fieldbus & Industrial Networking
Siemens is setting new standards in industrial drive technology with the launch of its new high-performance drive system, Sinamics S220. This offers a seamless and innovative drive system with comprehensive simulation and analysis capabilities and advanced connectivity features that enable full integration into digital work processes.

Read more...
PC-based control in the plastics industry
Beckhoff Automation Fieldbus & Industrial Networking
Nissei Plastic, an injection moulding machine manufacturer based in Japan is implementing a worldwide tend towards open automation systems from experienced specialists using PC and EtherCAT-based control technology from Beckhoff.

Read more...
Loop Signature 31: Non-linearity in control loops (Part 2)
Michael Brown Control Engineering Fieldbus & Industrial Networking
This article is a continuation of Loop Signature 30 published in the last issue in this series, exploring reasons for non-linearities which may be encountered in feedback control loops

Read more...
PC-based control optimises robotic parts handling on plastics machinery
Beckhoff Automation Editor's Choice Fieldbus & Industrial Networking
NEO is a cartesian robot developed by INAUTOM Robótica in Portugal for parts removal on plastics machinery. Its aim is to increase system productivity. NAUTOM Robótica has entered into a strategic partnership with Bresimar Automação to increase the working speed of the cartesian robots using advanced control and motion solutions from Beckhoff. The result is a comprehensive, future-proof automation solution for its entire family of cartesian robots.

Read more...
PC-based control for flat wire motors for electric vehicles
Beckhoff Automation Fieldbus & Industrial Networking
Special machine manufacturer, ruhlamat Huarui Automation Technologies unveiled the second generation of its mass production line for flexible stators with bar winding. This enables extremely short production cycle and line changeover times, supported by PC- and EtherCAT-based control technology from Beckhoff.

Read more...
Case History 200: The final case history – desuperheater control problem.
Michael Brown Control Engineering Editor's Choice Fieldbus & Industrial Networking
For this final article I have chosen to relate a problem that existed in a desuperheater temperature control on a boiler in a petrochemical refinery.

Read more...
PC-based control technology in additive manufacturing
Beckhoff Automation Editor's Choice Fieldbus & Industrial Networking
As an open control platform, PC-based control supports different engineering approaches, including low-code programming. The machine builder, Additive Industries uses this to create the code for the TwinCAT runtime of its 3D printers.

Read more...
Suppression and safety solutions for fire and gas in mission-critical industries
Fieldbus & Industrial Networking
By representing world-leading brands and focusing on fully integrated, certified systems, HMA South Africa is positioning itself as a trusted partner in fire detection, suppression and explosion-proof safety solutions across the continent.

Read more...
Integrating fire alarm systems into building management systems
Beckhoff Automation Fieldbus & Industrial Networking
Fire alarm systems work independently of the building automation system. Schrack Seconet has developed a flexible gateway using ultra-compact industrial PCs and TwinCAT from Beckhoff, which can be used to flexibly convert a customer-specific communication protocol to a wide range of transmission standards.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved