Feature Packs - EtherCAT Master Options
EtherCAT users expect interoperability as well as a well-defined set of functionality which an EtherCAT master has to provide.
Not all applications of course have the same requirements and thus, not every master has to support all features of the EtherCAT technology.
The most general requirements of an EtherCAT master are covered by the Class A and Class B editions of EC-Master, which fully conform to the respective ETG1500 EtherCAT master directives.
Additional functionality which may be needed for the broad usage of the EtherCAT technology in controllers, plants and machines are available as well.
These features can be considered to be optional, they are described by Feature Packs in the ETG1500 directive. The Feature Pack describes all mandatory master functionality for a specific feature, e.g. redundancy. EC-Master covers all such defined feature packs and even provides features beyond the officially defined ones. This page provides an overview of the available feature packs and the respective use case.
Overview
- Split-Frame Processing
- External Synchronization
- Hot Connect
- Cable Redundancy
- Master Redundancy
- EoE Third Party Tool Support Package
- EoE Gateway Tool
- UDP Mailbox Gateway
Feature Pack - Split-Frame Processing
The Split-Frame Processing Feature Pack enables the processing of multiple EtherCAT cyclic tasks in separate application threads. From the application perspective, this makes it possible to structure EtherCAT process data across multiple threads. Therefore, process data that requires different cycle times can be handled accordingly.
Additionally, the processing of acyclic communication can also be outsourced to a separate thread.
For example, a typical application for the Split-Frame Processing Feature Pack would have one tasks for servo drives that requires very fast cycle times, and another task for I / O data that does not need very fast processing or special cycle time requirements.
EC-Engineer makes it easy to create configurations with several EtherCAT cyclic tasks:
The timing of an application utilizing Split-Frame Processing application would look like the following:
- Thread 0 runs with a 250 microsecond cycle time and handles the processing of EtherCAT task 0. This thread also sends out the process data for all other tasks.
- Thread 1 runs with a 500 microsecond cycle time and handles only the processing of EtherCAT task 1.
- Thread Acyc runs with a 1 millisecond cycle time and processes only the acyclic communication and also the Master management tasks.
Feature Pack - External Synchronization
The synchronization of system components or production lines with several EtherCAT Segments can be done with different solutions:
- Synchronization with an external grandmaster clock using IEEE 1588 protocol
- Synchronization by a bridge device.
Depending on the application the accuracy of the synchronization has different requirements. For the synchronization of two production lines often the accuracy in the range of milliseconds is enough.
However if two or more motion control networks should be synchronized it may be necessary to have the Sync-signals exact at the same time in all devices (e.g. for a network wide commutation information) - that means an accuracy better than a microsecond may be needed.
Within one EtherCAT Segment the Distributed Clocks (DC) mechanism can be used, to synchronize the network devices. DC offers accuracy much better than a microsecond.
The first device that should be synchronized is used as the reference clock for that segment.
The synchronization of several EtherCAT Segments with a high accuracy means that the DC reference clocks in the segments must be adjusted.
The leading clock is called Grandmaster clock. It can be an external Time information, e.g. GPS or DCF77 receiver (see Figure 27), but it can also be one of the DC reference clocks.
The synchronization of two or more EtherCAT segments can be done by a Bridge device as shown in this figure.
The Bridge has two EtherCAT connections (internal two EtherCAT Slave Controllers are used). The primary port is connected to the first segment; the secondary port is connected to the second segment. One of the two ports can be configured to be the leading time reference. The Bridge can calculate the time difference and offers the TimeControlValue to the Master. The Master can then adjust the Reference Clock. During startup the two segments can be powered-on at different times. That means that there will be an absolute time difference between the two segments.
To synchronize the Secondary Segment two software algorithms are involved:
- DCX: Synchronize the reference clock to bridge device
- DCM: Synchronize the Master timer to reference clock
Feature Pack - Hot Connect
Flexibiltät mit “Hot Connect”
Unter dem Begriff „Hot Connect (HC)“ versteht man bei EtherCAT zunächst einmal das An- und Abstecken von Slaves im laufenden Betrieb. Wobei dies nur ein mögliches Szenario ist. Viel häufiger besteht der Wunsch, dass auch ohne eine 100-prozentige Übereinstimmung zwischen Konfiguration (ENI Datei) und aktuell vorhandenen Slaves bzw. vorhandener Verkabelung, das System betrieben werden kann.
Folgende Anwendungsfälle sind dadurch realisierbar:
- Inbetriebnahme: Ein Teil der Anlage ist noch nicht verfügbar bzw. abgeschaltet.
- Optionale Teilnehmer, welche nicht zwingend vorhanden sein müssen (z. B. in der Messtechnik).
- Flexibiltät in der Verkabelung: Slaves können an unterschiedliche Ports angeschlossen werden (z. B. analog zu CAN).
Damit „Hot Connect“ funktioniert ist keine spezielle EtherCAT Funktion notwendig, vielmehr kann jeder EtherCAT Slave ein Mitglied einer HC-Gruppe sein. Eine HC-Gruppe muss nur eindeutig identifizierbar sein. Dazu werden in der Regel DIP Schalter verwendet. Die eingestellte Adresse erscheint dann im Station Alias Register oder an anderer Stelle innerhalb des Slaves Speichers. Beide Varianten werden vom EtherCAT Master unterstützt. Auch die Programmierung der Station Alias Adresse durch die Applikation über den Master ist möglich.
„Hot Connect“ ist als Feature Pack für den acontis EtherCAT Master ab der Version 2.0 verfügbar. Dabei erledigt der Stack alle Funktionen vollautomatisch im Hintergrund, ohne dass die Applikation eingreifen muss. Das Feature Pack bietet eine einfache Funktion zur Ermittlung der vorhandenen Slaves. Außerdem wird die Applikation durch eine Callback-Funktion (Notification) informiert, sobald ein Slave an- bzw. abgesteckt wird.
Zusätzliche Sicherheit gegen das Anstecken eines Slaves an einen falschen Port bietet die Funktion „Border Close“. Wird diese Funktion aktiviert, werden alle Ports mit Ausnahme der durch die Konfiguration zugelassenen Ports, in den Mode „Loop Closed“ geschaltet. Damit werden Slaves, die an diesen Ports angesteckt werden, einfach ignoriert und das System läuft völlig ungestört weiter.
Weitere Fragen zum Thema „Hot Connect“ beantworten wir gerne.
Feature Pack - Cable Redundancy
Cable redundancy is designed to compensate for the failure of a communication cable section in the EtherCAT system. A ring topology, which normally is operated in both directions, is therefore used. Both branches can nevertheless still be reached if the ring is interrupted at some point.
Description
A second network port is used for ring closure at the EtherCAT master control system. Both cyclic and acyclic frames are sent simultaneously through both ports, and are transported through the system.
In the absence of any fault, all the EtherCAT slaves are reached in the forward direction (so called processing direction) from the primary port. This means that they are processed, since the EtherCAT Slave Controller (ESC) is only passed through in the forward sense.
When there is no fault, all the EtherCAT slaves are reached from the secondary port in the reverse direction - the data in the "redundancy" frame is therefore not changed.
In each case, the EtherCAT frames arrive, possibly modified, at the other port, and are checked by the EtherCAT master. In case of a cable break, both frames are processed - each one on the respective side of the failure. Therefore both frames contain a part of the input data. The master has to combine the data of both frames, and gets one frame with all the input data. The working counters from both frames are added to check for its validity. It is unimportant whether an EtherCAT slave is reached from the primary or redundancy port. The EtherCAT master has to consider that a frame on one side is lost and the other frame returns. To find the matching frame it is useful to mark the frames with an identification or use appropriate mechanism.
The cable redundancy is single-error tolerant, i.e. communication with the slaves can continue if the cable is interrupted in one place. When the communication is restored the original communication direction is restored. If the communication is interrupted in more than one place, all connections have to be restored before another fault may occur.
Functionality
In case of cable break all types of EtherCAT communications (process data and mailbox protocols) are be supported without any restrictions.
Handling of the following use cases:
- Normal operation
- Stay operational in case of cable break between two slaves
- Stay operational in case of cable break between primary port and first slave
- Stay operational in case of cable break between secondary port and last slave
- Stay operational in case of cable fixed
- Start/Stop (State change) in case of cable break
- Adjustment of Auto Increment address in case of cable break
- Frame loss in case of cable break (partner frame was not received)
Feature Pack - Master Redundancy
In order to increase the availability of the EtherCAT system and provide for failure scenarios, a second fully redundant Master system can be added to the network via acontis' Master Redundancy feature. This new feature will create an ACTIVE Master and an INACTIVE Backup Master. In normal operation the INACTIVE Backup Master simply forwards frames through and back onto the network using acontis' optimized Ethernet drivers for fast packet forwarding:
Data Synchronization and Inter-Master Communication
By means of fast packet forwarding the ACTIVE Master still receives all the frames in time for the next cycle.
The INACTIVE Backup Master has access to all Process Data. It parses and modifies received frames and adds frames itself after cyclic slave frames. The ACTIVE and INACTIVE Backup Master can communicate with each other using Ethernet-over-EtherCAT (EoE).
Failover
If the ACTIVE Master fails, the INACTIVE Backup Master can takeover and become ACTIVE. Due to the fact that the INACTIVE Backup Master has been connected to the network the whole time, it can control the bus after getting ACTIVE in the case of a failover:
Cable Redundancy with Master Redundancy
Cable Redundancy can be combined with Master Redundancy. The ACTIVE Master communicates directly to one segment of the EtherCAT slave network and indirectly to the other segment of the EtherCAT slave network through the INACTIVE Backup Master:
Feature Pack - EoE Third Party Tool Support Package
Using the mailbox protocol Ethernet over EtherCAT (EoE) standard Ethernet frames can be tunneled trough an EtherCAT network. Based on this, a communication to slaves with locally running TCP/IP-based applications (e.g. Web Server) can be established. More and more manufacturers of EtherCAT drives are supported this connection in their drive setup and tuning tools.
Acontis is offering all required software modules to enable TCP communication between a third party software on Windows and a EtherCAT slave supporting EoE. On the master controller just the proven RAS-Server has to be enabled. The RAS-Server is included in the EC-Master core license and available on many operating systems.
acontis EoE Gateway Tool for Windows
Many EtherCAT products available on the market today offer support for Ethernet over EtherCAT (EoE). EoE provides a convenient way to setup and configure an EtherCAT device without the need to implement a full EtherCAT network. Many manufacturers of EoE-capable EtherCAT devices offer a software tool for setting up and configuring their products. Some examples include: Bosch Rexroth IndraWorks, Yaskawa SigmaWin+, Elmo Application Studio, and Copley CME2.
For developers and users of acontis’ EtherCAT Master software, EC-Master, the convenience of these manufacturer tools is lost by having to disconnect the master controller running EC-Master from the network in order to connect a Windows computer running the software tool directly to the EtherCAT device. Then after some simple changes via the manufacturer tool, the master controller needs to be reconnected again. To address this issue, acontis has released their EoE Gateway Tool for Windows.
With the EoE Gateway tool, acontis provides a convenient way to keep the master controller connected to the EtherCAT devices, but still utilize the manufacturer’s tool for setup and configuration. This is achieved by tunneling the Ethernet data from the tool through the master controller running EC-Master and onto the EtherCAT network.
This EoE Gateway Tool runs in the Windows System Tray in the background so you can focus on the manufacturer tool like it was directly connected to the EtherCAT device.
Feature Pack - UDP Mailbox Gateway
The Mailbox Gateway functionality within a master device can be used to route the EtherCAT mailbox protocol from an (external) device configuration tool via the Mailbox Gateway to the EtherCAT devices and vice versa. All Mailbox protocols that are defined in the EtherCAT specification can be used in general, i.e. CoE, FoE, VoE, SoE.
There is no error handling specified for the Mailbox Gateway functionality. A request to a non-existing slave device can lead to no response from the master. According to Function Guideline „ ETG.8200 EtherCAT Mailbox Gateway“.