Editor's Choice


Chip-based EtherCAT optimises field communication

June 2023 Editor's Choice

The heart of EtherCAT is the concept of the EtherCAT slave controller (ESC), which is the chip-based part of an EtherCAT field device. The chip could be an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a microprocessor, or even a microcontroller. An ESC handles the reading and writing of cyclic (process) and acyclic (mailbox) data, and other background tasks necessary for a flexible fieldbus. Many ESC options are available from numerous vendors.

While EtherCAT network controllers do not require special hardware, having the ESC chip at the fieldbus device level can benefit the application. Using an ASIC for EtherCAT in the field device allows processing to be done in the chip. As a result, network performance is independent of the performance of the microcontrollers in the devices and their ability to run complex software stacks. The real-time protocol handling is embedded in the chip, and the field devices don’t have to manage a typical Ethernet connection.

With the EtherCAT functional principle implemented in the ESC, an EtherCAT system can update 1000 distributed input/output (I/O) points every 30 µs to 30 millionths of a second. The ‘data exchange on the fly’ is defined in the ESC and only requires configuring a device to use the inherent mechanism built into the protocol and the specific chip.

No IP stack required for ESC

It is not unusual for a fieldbus to have a chip interface at the field level in a typical IP-based Ethernet network. This is the historical basis for CANopen, DeviceNet, SERCOS and others. In EtherCAT’s case, it saves the field device from having to provide enough processing to deal with IP-based Ethernet communications – a savings in processor cost, footprint, heat and power, not to mention the complexities of working with an IP stack.

EtherCAT uses the physical mechanisms of Ethernet, without the overhead of having to implement a full seven-layer open systems interconnection (OSI) model Ethernet stack at the field level. This simplifies development for the device manufacturer and user of EtherCAT. However, EtherCAT is not an IP-based protocol. EtherCAT is a fieldbus that uses standard IEEE 802.3 Ethernet, without the complexities of having to configure and power a full Ethernet implementation.

Avoiding complexity

All ESCs from all EtherCAT chip vendors behave the same way. As such, device developers and system users benefit from far less programming than is necessary with other Ethernet-based technologies. The functionality of an EtherCAT field device is built in. It only needs to be configured. System performance is predictable, since no software stacks with unknown timing behaviour are involved in the cycle time.

The developer and user leverage EtherCAT devices in similar ways, because the ESC provides a common interface. This also simplifies diagnostics because the same diagnostic techniques can be used for all EtherCAT devices. Because there is only one version of EtherCAT, nothing changes over time in using devices in the field and network configuration. The operation of the EtherCAT protocol and ESCs also allows for the simple addition of new devices without concerns about adverse effects on the existing network.

The ESI, EtherCAT slave information, EtherCAT devices have an .xml file like EDS files in CANopen, DeviceNet and EtherNet/IP or GSD files in Profibus and Profinet. This EtherCAT slave information (ESI) file contains the data necessary to configure and use the device. Every EtherCAT device comes with an accompanying ESI file that describes the features and capabilities of the device. This means users can implement EtherCAT devices without needing to have intimate knowledge of the inner workings of the device or Ethernet.

Implementing an EtherCAT field device is streamlined, without the need to deal with complex mechanisms. The focus is on controlling a machine or process, without configuring and tuning a network. The ESI file defines how the ESC operates with local I/O and with higher level processors. Field device configuration is accomplished with the common ESC behaviour with the ESI file.

Automatic address distribution

The ESC also masters the smart ‘auto-increment’ commands on which the automatic address distribution of EtherCAT is based. Using this feature at boot-up, the controller identifies the devices and their physical locations in the network, compares the actual network configuration with the expected network configuration, and assigns the addresses. This happens in the background and means there is no need to set addresses on each node manually, or ‘baptise’ each node one by one as in other networks. With EtherCAT, users don’t have to handle MAC or IP addresses, configure subnet masks or any other IT-related settings because of ESC features.

Handling Ethernet on the fly, jitter

EtherCAT uses standard, unmodified Ethernet frames in a unique and efficient way. The ESC handles this complexity. The methodology is also the same for all device implementations across the products from more than 3000 EtherCAT device manufacturers.

EtherCAT technology breaks the limits of ordinary Ethernet technologies

Through the ESC and EtherCAT technology, there is no need to send and receive individual frames of Ethernet data, decode the data and then copy the process data to different devices. Instead, an EtherCAT field device reads the data as the frame passes through the device. Output data from the field device also is written to the frame as it passes through the ESC. Because the field devices find the data via their positions in the global process image, no device address needs to be carried in the frame. This means there is no ‘per-node’ overhead in the frame, and process data communication becomes maximally efficient. Also, the same frame, or even the same area in the frame, is used for input and output data, which virtually doubles the bandwidth. The data reading/writing in the ESC is accomplished within several nanoseconds.

With the ESC, EtherCAT uses standard Ethernet full duplex technology and supports different topologies, including line, tree, drop and star. Its physical layer is 100BaseTX twisted-pair wire, 100BASE-FX fibre or low-voltage differential signalling (LVDS).

One hundred servos with 8-byte I/O data each can be updated every 100 µs. At this rate, the system can read the positions and status and send new command values and control data. Distributed clocks technology takes care of precise synchronisation and reduces the jitter – in the case of drives, the cyclic synchronous error – to values lower than 1 µs.

Link loss detection and behaviour if a physical link is missing

Another aspect of the ESC is using mechanisms inherent in Ethernet in a useful way. Ethernet communication is based on a carrier signal, the ‘link’, and the frame check sequence (FCS) in the Ethernet frame is a cyclic redundancy check (CRC) for detecting transmissions errors. EtherCAT and the ESC use this in a very helpful way by exceeding the capabilities of standard Ethernet chips. Every port of an ESC counts link loss and FCS errors. This allows the user to determine and pinpoint occurrences, even if intermittent.

Intermittent errors always have been a difficulty of any fieldbus. Because the ESC can count every occurrence of an issue at every port, this benefits the determination of an issue. No guessing or mindless switching out of components is necessary. By far, most issues are physical: wiring, a connector or something that can be stretched, pulled and often mishandled.

Since all ESCs use the same basic mechanisms, one does not have to worry about which vendor supplies the field device. They all operate the same way; no special software or troubleshooting tools are necessary. One must only understand how EtherCAT and the ESC operate to determine the source of an issue and resolve it. The same tools and techniques can be used for all devices.

Slave stack code implementation

The slave stack code (SSC) implements the application layer above the ESC, which has no influence on the network performance. The ESC requires very little processing power on the device’s processor. The SSC comes with a royalty-free licence and provides ASCI C handling: device state, PDO (cyclic) access, SDO (acyclic) access and interrupts. This simplifies EtherCAT device development. The combination of ESC and SSC is unique within the domains of fieldbus communications, for these reasons, and provides a unique combination of tools.




Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

STEMulator – a gift to the youth of the nation
Editor's Choice News
STEMulator is a groundbreaking virtual platform designed to ignite the spark of curiosity in young minds and stimulate their interest in STEM subjects.

Read more...
Innovate, accelerate, dominate
Festo South Africa Editor's Choice Pneumatics & Hydraulics
Festo’s latest innovations, revealed through the Ramp Up Campaign, offer a blueprint for performance excellence, using the anatomy of a race car as an analogy to simplify and powerfully communicate how their technologies address industry challenges.

Read more...
Case History 198: Cascade control overcomes valve problems.
Editor's Choice Flow Measurement & Control
There are many processes where it is undesirable for the load to suddenly change quickly, for example in the paper industry. Examples of level control have involved reasonably fast tuning. An example of a level loop tuned this way and responding to a step change in setpoint is given.

Read more...
Advanced telemetry solutions
Editor's Choice Industrial Wireless
Namibia is one of the driest countries in sub-Saharan Africa, with an average annual rainfall below 250 mm. To address this challenge, the Namibia Water Corporation has employed one of southern Africa’s most powerful and well-proven telemetry solutions, designed and manufactured by SSE/Interlynx-SA.

Read more...
Navigating the future of intralogistics
LAPP Southern Africa Editor's Choice
In the rapidly evolving landscape of global markets, the demand for agility, efficiency and scalability in intralogistics has never been more critical. At LAPP Southern Africa, we stand at the forefront of this transformation, offering cutting-edge connection solutions tailored to the dynamic needs of intralogistics.

Read more...
Cutting-edge robotics and smart manufacturing solutions
Yaskawa Southern Africa Editor's Choice
Yaskawa Southern Africa made a compelling impact at this year’s Africa Automation and Technology Fair.

Read more...
A cure for measurement headaches in contract manufacturing
VEGA Controls SA Editor's Choice
A contract manufacturing organisation provides support to pharmaceutical and biotechnology companies in the manufacturing of medications, formulations and substances. VEGA’s measurement solutions offer accuracy and reliability for monitoring levels and pressures during the manufacturing process.

Read more...
PC-based control for a food capsule and pod packaging machine
Beckhoff Automation Editor's Choice
For TME, a machine builder specialising in the packaging of powdered foods, Beckhoff’s PC-based control technology offers unlimited opportunities when it comes to performance and innovative capacity in terms of flexibility, scalability and openness.

Read more...
Simple and efficient level measurement in the mining, minerals and metals industries
Endress+Hauser South Africa Editor's Choice Level Measurement & Control
Measuring devices in the mining, minerals and metals industries face the challenge of varying material states and long distances in measurement height. Endress+Hauser’s answer to these challenges is the new Micropilot family.

Read more...
PC-based control for fertiliser
Beckhoff Automation Editor's Choice Fieldbus & Industrial Networking
On a farm in the USA, valuable ammonia is extracted from slurry and processed into ammonium sulphate. NSI Byosis has transformed this complex process into a flexible modular system. This modular approach requires an automation solution with flexible scalability in both hardware and software, which this Dutch company has found in PC-based control from Beckhoff.

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