Professional Documents
Culture Documents
Abstract - Communication redundancy and time synchroni- Like many of the automation protocol suites Ether-
zation are two important requirements commonly found in CAT has developed adapted solutions for redundancy
industrial systems. However, achieving high redundancy (e.g. network redundancy in the context of this paper).
performance in combination with highly accurate time syn- Also when it comes to time synchronization the various
chronization at all times is a challenging task. EtherCAT is a
automation protocol suites sometimes specify their own
high performance, functionality rich communication tech-
time synchronization solutions, either by specifying how
nology offering both advanced redundancy features and
accurate time synchronization. This paper will describe a to use the IEEE 1588 [4] protocol or by making adapted
robust solution where an EtherCAT system offers high and optimized solutions. EtherCAT therefore offers very
redundancy performance in combination with accurate accurate time synchronization of the devices reaching
time synchronization. The solutions is based on using Ether- down well below the microseconds level by the aid of
CAT slaves integrated into the EtherCAT master nodes. In hardware assisted functionality in the devices.
the redundant case there is a need for two of these inte- Since EtherCAT has become a main technology in this
grated slaves and they need to be configured appropriately domain it is of key interest to investigate how the tech-
to offer a robust solution. nology could be used in order to achieve both high levels
of redundancy in combination with accurate time syn-
Keywords - redundancy; synchronization; networking
chronization in a robust way. This is not a trivial topic
I. INTRODUCTION and this paper will outline one possible method for how
to handle this in EtherCAT.
The requirements of industrial systems may be quite
different from the ones found in typical office environ- II. TIME SYNCHRONIZATION IN ETHERCAT
ments when it comes to some specific features. Industrial
By using EtherCAT out-of-the-box the achievable
systems may have requirements related to factors like
level of time synchronization accuracy is typically speci-
safety, time synchronization, determinism and availabil-
fied to be better than 1 μs. This means that the clocks of
ity that are not common in office systems. In other situa-
all devices are synchronized to within 1 μs at all times.
tions the requirements are much harder than those in the
This is similar to most so-called real-time Ethernet tech-
office environment. Typical examples are determinism
nologies and sufficient in many cases.
and time synchronization requirements. Therefore special
However, EtherCAT also offers a significantly higher
communication solutions directly targeting industrial
performing time synchronization mechanism referred to
requirements have been developed for these challenging
as the distributed clocks (DC) functionality. The DC
situations. EtherCAT [2] is one such technology which is
functionality is an attractive feature for high performance
extensively used today and it is the focus of this paper.
control systems and instrumentation systems and depends
EtherCAT is a communication technology offering
on special hardware support in the slave devices (FPGA,
very high real-time performance accompanied by a rich
ASIC etc.) to achieve a synchronization accuracy of less
functionality set making it a leading technology from a
than 100 ns, in many cases down to a few tens of nano-
technical perspective. This combined with openness of
seconds (implementation and situation dependent). The
the technology and the wide availability of software and
DC functionality can be enabled in most EtherCAT hard-
hardware components has made EtherCAT a market lead-
ware implementations and will make it possible for all
ing technology as well [1], extensively used in many dif-
EtherCAT slaves with DC support to be very accurately
ferent industrial systems requiring high-end deterministic
synchronized (any devices without DC support will still
communication performance. The technology is also
be synchronized to within 1 μs or so).
increasingly used in laboratory and instrumentation envi-
It is normally the slave closest to the master which is
ronments. A detailed presentation of the EtherCAT tech-
the clock master or reference clock in an EtherCAT net-
nology is however outside the scope of this paper.
work. In the case with a mix of devices with DC support
accuracy can be obtained after a failure and transition relevant for high-end industrial communication systems.
from the ring to the dual line state. This is due to the fact Accurate synchronization of all devices is guaranteed
that the EtherCAT master needs to measure internal immediately after failure recovery, i.e. after transition
delays in the system, i.e. delays between the devices. from a ring topology to the dual line topology.
These delays are used to calculate the clock offset
between the devices (and the master). Special care has to REFERENCES
be taken to avoid this initial transition but this is outside
[1] Ethernet-Based Device Networks Worldwide Outlook.
the scope of this paper. There may also be other failure Market analysis and forecast through 2012. ARC Advisory
modes that needs special handling, e.g. for systems sup- Group 2008.
porting hot swapping or hot connect. [2] IEC 61158. Industrial Communication Networks - Field-
bus Specifications. IEC 2007.
VIII. CONCLUSION [3] IEC 62439 ed. 2. High Availability Automation Networks.
IEC 2010.
This paper has outlined a robust approach for the com- [4] IEEE 1588-2008 IEEE Standard for a Precision Clock
bination of accurate time synchronization of all nodes in Synchronization Protocol for Networked Measurement
an EtherCAT system combined with high performance and Control Systems.
network or media redundancy. The approach uses only [5] IEEE 802.1D-2004. MAC Bridges. IEEE 2004.
standard EtherCAT functionality. The solution depends [6] http://www.ethercat.org.
on tight integration of the EtherCAT master with two [7] Prytz, G: A performance analysis of EtherCAT and
internal EtherCAT slaves, resulting in an enhanced Ether- PROFINET IRT. ETFA 2008. Proceedings, pp. 408-415,
CAT master with some additional functionality. In addi- 2008.
tion the approach requires reversing the processing [8] Prytz, G: Redundancy in industrial Ethernet networks.
WFCS 2006. Proceedings, pp. 380-385, 2006.
direction of one of the integrated slaves.
[9] Rehnman, M. and Gentzell, T: Synchronization in a force
Using this synchronized and redundant solution the
measurement system using EtherCAT. ETFA 2008. Pro-
EtherCAT system will have a very interesting feature set ceedings, pp. 1023-1030, 2008.