EtherCAT

On this page 8

EtherCAT (Ethernet for Control Automation Technology) is a real-time industrial Ethernet fieldbus in which a single master sends one frame through a chain of slave devices that read and write their data on the fly, so that hundreds of inputs and outputs are refreshed in a cycle of tens of microseconds to a few milliseconds. In robotics and in control systems more broadly, it is the network that connects the motion controller to joint drives, encoders, force-torque sensors and I/O modules, and it is the medium through which a feedback loop actually reaches the hardware.

The protocol was introduced by Beckhoff in 2003, is maintained by the EtherCAT Technology Group, and is standardized in IEC 61158 and IEC 61784-2. It uses standard Ethernet physical layers and cables, but its processing model differs fundamentally from office Ethernet, which is why it achieves deterministic timing with jitter well below one microsecond when configured correctly.

How EtherCAT processes frames on the fly

EtherCAT works by passing one Ethernet frame through every slave in sequence, with each device extracting its outputs and inserting its inputs while the frame is still moving. The master, usually a standard PC network interface running real-time software, transmits a frame with EtherType 0x88A4. Each slave contains an EtherCAT slave controller (ESC), a dedicated chip or FPGA core that handles this processing in hardware with a delay of only a few hundred nanoseconds per node.

The frame travels to the last device in the line, which loops it back automatically through the return path of the full-duplex cable. The master therefore receives a single frame containing all fresh input data. Because the slaves never buffer and re-send complete packets, the bandwidth utilization exceeds 90 percent of the 100 Mbit/s link, which is far higher than protocols that send one packet per device.

Data is addressed through a logical process image of up to 4 GB. During startup, the master configures fieldbus memory management units (FMMUs) in each ESC that map logical addresses to local memory, so one datagram can serve many devices. Sync managers protect consistency between the bus and the local application processor of the slave.

The following table summarizes the main building blocks of an EtherCAT network and their role.

ComponentLocationFunction
EtherCAT masterController PC or PLCSends cyclic frames, configures the network, runs the control loop
Slave controller (ESC)Every slave deviceReads and writes process data in hardware as the frame passes
FMMUInside the ESCMaps logical process image addresses to local memory
Sync managerInside the ESCKeeps mailbox and process data consistent
Distributed clocks unitInside the ESCHolds a local time synchronized to the reference clock
ESI fileEngineering toolXML description of device capabilities and objects
Core components of an EtherCAT network

Distributed clocks and synchronized motion

The distributed clocks (DC) mechanism gives every slave a local clock synchronized to a reference, typically the first DC-capable slave, with accuracy well below 1 microsecond. The master measures the propagation delay to each node during startup and then compensates continuously for drift, so all devices share a common notion of time.

Synchronized time matters because a multi-axis robot needs every joint to latch encoder positions and apply new setpoints at the same instant. Without it, a 1 kHz control loop on a six-axis arm would sample joints at slightly different moments, which introduces phase errors in computed torque control or impedance control and degrades path accuracy. With DC, drives trigger on a common SYNC0 event, independently of when the frame itself arrives.

Device profiles and communication channels

EtherCAT carries cyclic process data and acyclic mailbox data in parallel, and the mailbox supports several application protocols. The most important one for robotics is CANopen over EtherCAT (CoE), which brings the familiar CANopen object dictionary and the CiA 402 drive profile used by most servo amplifiers.

The table below lists the mailbox protocols that engineers encounter most often and what each one is used for.

ProtocolFull nameTypical use
CoECANopen over EtherCATDrive parameters, CiA 402 servo control
SoEServo drive profile over EtherCATDrives based on the IEC 61800-7 SERCOS profile
FoEFile access over EtherCATFirmware updates and file transfer
EoEEthernet over EtherCATTunneling TCP/IP traffic to devices
FSoEFail Safe over EtherCATSafety functions up to SIL 3 on the same cable
Common EtherCAT mailbox protocols

CiA 402 defines operating modes such as cyclic synchronous position (CSP), cyclic synchronous velocity (CSV) and cyclic synchronous torque (CST). In CSP mode, the drive closes the current, velocity and position loops internally; in CST mode, the central controller computes torque commands, which suits whole-body control and model-based approaches.

EtherCAT compared with other robot fieldbuses

EtherCAT is one of several real-time Ethernet options, and the choice depends on timing needs, vendor ecosystem and cost. Its main strengths are low hardware cost on the master side, short cycle times and flexible topology, while competing protocols often integrate more easily with existing plant networks.

The comparison below shows how EtherCAT relates to fieldbuses frequently used around robots.

NetworkTypical cycle timeMaster hardwareTypical role
EtherCAT50 µs to 1 msStandard Ethernet portMulti-axis motion, robot joints
PROFINET IRT250 µs to 1 msSpecial switches or ASICsFactory automation with Siemens PLCs
EtherNet/IP1 ms to 10 msStandard Ethernet portCell-level I/O and PLC integration
CAN and CANopen1 ms to 10 msCAN controllerLow-cost actuators, mobile robots
TSN EthernetBelow 1 ms possibleTSN-capable switchesConverged IT and control traffic
EtherCAT and related industrial networks

In research robotics, EtherCAT has become a de facto standard for humanoids and legged robots, often with open-source masters such as IgH EtherLab or SOEM connected to ROS 2 control frameworks running on a real-time Linux kernel.

Designing and commissioning an EtherCAT network

A working EtherCAT design starts with the required control loop rate and works backward to topology, payload size and master performance. Each slave adds roughly 0.5 to 1 µs of forwarding delay, and each byte of process data adds about 80 ns on the wire, so a line of 30 drives with 20 bytes each still fits comfortably inside a 250 µs cycle.

  • Choose a line, tree or star topology using junction slaves; a ring topology with cable redundancy keeps the network running after a single cable break.
  • Use the ESI files from each vendor and verify the network state machine transitions from INIT through PRE-OP and SAFE-OP to OP.
  • Run the master on a real-time operating system or a PREEMPT_RT kernel and isolate its CPU core to limit cycle jitter.
  • Enable distributed clocks for all drives that take part in coordinated motion.

Limitations and common failure modes

Most EtherCAT problems in practice come from the master side rather than the bus. A non-real-time operating system, power management features or a shared network card can cause missed frames, which drives detect through a watchdog timeout and answer with a fault or controlled stop.

The table below pairs frequent symptoms with their usual cause and remedy.

SymptomLikely causeRemedy
Drives drop out of OP stateMaster cycle jitter or missed framesUse a real-time kernel and dedicated NIC
Rising CRC error countersDamaged cable or poor shieldingReplace cable, check grounding near motors
Axes move slightly out of phaseDistributed clocks not enabledActivate DC and SYNC0 on all drives
Network stops after one device failsLine topology without redundancyAdd cable redundancy or hot connect groups
Typical EtherCAT faults and fixes

EtherCAT also has a structural limit: it is a single-master network, so integrating it with plant IT requires gateways or EoE tunneling. Standard switches cannot be placed inside the segment, because they would break the on-the-fly processing chain.

The idea in brief

Imagine a train that passes every station without stopping. At each station, a worker grabs the parcels addressed to that stop and throws new parcels on board as the train rolls by. When the train returns to the depot, it carries every reply at once. EtherCAT works like that train, carrying commands to the motors of a robot and bringing back sensor readings in one quick trip.

Because every device also keeps a shared, very precise clock, all the motors act at exactly the same moment. The key point is speed with perfect timing, which lets a robot move smoothly and accurately.

A practical scenario

A team building a quadruped robot with twelve joints connects each joint drive to an onboard computer through one EtherCAT line. The computer runs a PREEMPT_RT Linux kernel, an open-source EtherCAT master and a model predictive controller that outputs torque commands. The drives run in cyclic synchronous torque mode at a cycle of 1 kHz, and distributed clocks align all twelve joints to within a fraction of a microsecond.

During early tests, the robot stumbled whenever the onboard camera software was busy. Diagnostics showed occasional missed EtherCAT frames caused by CPU contention. After isolating one CPU core for the master and moving the network to a dedicated interface, the jitter dropped below 20 µs, the watchdog faults disappeared and the robot walked stably on uneven ground.