Skip to main content

EtherCAT - Ethernet fieldbus

EtherCAT (Ethernet for Control Automation Technology) is an industrial Ethernet fieldbus system in which slaves read and write process data directly while a frame passes through them. It supports line, tree and star topologies, is simple to configure, and extends Ethernet down to I/O-level devices.

Introduction​

Background​

Fieldbus technology has become a core component of automation and is widely used in PC-based control systems. Conventional fieldbus systems, however, have progressively become a bottleneck for control system performance:

  • System response time in a conventional system is typically 3-5 times the controller cycle time
  • A layered control architecture consists of several auxiliary cycle-based systems, which adds system complexity

Response time of a conventional fieldbus system

Figure: multi-layer response time structure of a conventional fieldbus system

Ethernet and real-time capability​

Current approaches to real-time Ethernet capability include:

  • Prohibiting CSMA/CD media access and using time slices or polling
  • Controlling time allocation precisely through dedicated switches

These approaches have inherent limitations:

  • When each device uses its own Ethernet frame, the data rate is very low (with the minimum frame of 84 bytes and only 4 bytes of payload, utilization is just 4.8%)
  • The packet must be received and decoded before the process data is copied, which adds latency
Core mechanism

EtherCAT does not send and receive a separate frame for each device: dedicated hardware reads and writes the relevant data directly while the frame passes through. Bandwidth utilization exceeds 90%, and the forwarding delay per slave is in the nanosecond range.

How EtherCAT works​

EtherCAT uses a distinctive processing-on-the-fly mechanism:

Core technology​

  • No packet decoding: slave devices read the relevant data directly while the Ethernet frame passes through
  • Immediate data insertion: input data is inserted as the frame passes, with a delay of only a few nanoseconds
  • Efficient data packing: a single Ethernet frame can carry data for a large number of devices

Process data inserted into the frame

Figure: EtherCAT slaves read and write data directly while the frame passes

Performance benefits​

  • Bandwidth utilization above 90%: payload data is not unpacked and copied at each slave; one frame completes the read and write cycle for all stations
  • Full-duplex links: 100BASE-TX full duplex, with simultaneous transmission and reception at 100 Mbps line rate
  • IEEE 802.3 compliant: each device is accessed without an additional fieldbus

Bandwidth utilization comparison

Figure: bandwidth utilization of EtherCAT compared with conventional approaches

EtherCAT technical characteristics​

Protocol characteristics​

Protocol encapsulation​

  • EtherCAT direct frames: transmitted directly inside an Ethernet frame, for low-latency scenarios
  • EtherCAT UDP: encapsulated as UDP/IP datagrams, so it can cross subnets and communicate through routers
  • Logical addressing: the protocol provides a 32-bit logical address space; for this product, the process image of a single master (inputs + outputs + mailbox status per slave combined) is limited to 64 KB (65536 bytes). Broadcast, multicast and slave-to-slave communication are supported

EtherCAT standard frame

Figure: EtherCAT frame structure compliant with IEEE 802.3

Communication modes​

  • Master/slave communication: real-time process data exchange
  • Master/master communication: data sharing between controllers
  • Slave/slave communication:
    • Topology-dependent communication (within the same cycle)
    • Master-relayed communication (two cycles)

Flexible topologies​

EtherCAT supports several topology types:

  • Line topology: the most economical cabling
  • Tree topology: suited to branched structures
  • Star topology: compatible with conventional Ethernet
  • Mixed topology: any combination

Flexible topologies

Figure: EtherCAT supports line, tree, star and other topologies

Connection characteristics​

  • Cable distance: up to 100 meters between two 100BASE-TX devices
  • Device count: the protocol can address 65535 devices; for this product, the slave table of a single master is limited to 2048 entries (1-based, so at most 2047 slaves). Any excess is not included in the expected WKC, PDO mapping or diagnostics, and the master records one error entry in the log
  • Cabling: enhanced category five Ethernet cable, fiber (PFO), standard connectors

Distributed Clocks (DC)​

Accurate synchronization is the key to distributed control, and EtherCAT uses Distributed Clocks:

  • Synchronization accuracy: typical deviation within a few microseconds (depending on the slave ESC and the DC configuration)
  • Hardware-based: a purely hardware mechanism with high tolerance to communication faults
  • Logical ring structure: delays are calculated precisely using full-duplex Fast Ethernet
  • Timestamp support: high-resolution time information for precise velocity calculation

Synchronization and consistency

Figure: oscilloscope comparison of synchronization in a system with 300 nodes over 120 meters

Performance and capacity limits​

Key figures
  • Cycle time — no product-imposed lower limit: the configured value is applied as given, with no silent clamping. The cycle time actually achievable depends on the CPU, the isolation configuration, the NIC and the slaves; use the jitter and overrun count measured on site as the criterion. 125 µs (8000 Hz) is the recommended starting point, a recommendation rather than a limit; for shorter cycles, measure on the target machine first
  • Slaves per master — at most 2047 slaves (slave table limit 2048)
  • Process image per master — inputs + outputs + mailbox status per slave, combined, limited to 64 KB (65536 bytes, sharing one buffer)
  • DC synchronization accuracy — typical deviation within a few microseconds, depending on the slave ESC and the DC configuration

Process image capacity (two figures)​

  • For this product, a single process image (inputs + outputs + mailbox status per slave combined) is limited to 64 KB
  • The underlying buffer reserves 64 KB per direction (double buffering; these are reserved amounts, not usable capacity)
  • The LRW process data limit per frame is 1486 bytes; a single group larger than about 1.5 KB loses the zero-copy fast path and is forwarded in multiple frames (up to 16 frames per group per cycle, in rotation) — when planning a system, follow "single group ≤ 1.4 KB"
  • Slave count: the slave table per master is limited to 2048 entries (1-based, so at most 2047 slaves)
  • The crossover between the two limits depends on average size per slave: at ≤ 32 B per slave the slave table limit (2048) is reached first; only above 32 B is the 64 KB limit reached first

EtherCAT performance

Figure: EtherCAT performance (the cycle time and number of axes actually achievable depend on the master CPU, the slave response time and the process image size)

Technical advantages​

  • Protocol in hardware: independent of the real-time system, CPU performance and software implementation
  • Direct memory access: the master uses DMA
  • No bottleneck: the fieldbus no longer constrains the control concept
  • Scalability: extends to 1000 Mbps Ethernet

Diagnostics​

Commissioning diagnostics​

  • Configuration match: node configuration and topology are checked automatically
  • Topology detection: the network configuration is read automatically

Runtime diagnostics​

  • Bit error detection: 32-bit CRC (Hamming distance 4)
  • Cable break detection and localization
  • Segment quality monitoring: each segment is monitored independently
  • Error source localization: pinpoints electromagnetic interference, damaged connectors and damaged cables

High reliability​

Redundancy mechanisms​

  • Cable redundancy: in a ring topology, traffic can use the redundant port; during normal operation the main and redundant ports send frames at the same time (dual transmission, not switchover after a fault), and the receiving side merges the frames that actually arrive around the ring. Zero-frame-loss switchover is not guaranteed; the WKC may fluctuate at the moment of a cable break. A purely linear topology has no return path, so the redundant port reaches no slave and does not provide a protection path
  • Automatic recovery: the slave controller chip returns the data frame automatically
  • Branch protection: drag-chain devices can be configured in a branch topology

Cable redundancy

Figure: a low-cost cable redundancy scheme using standard slaves

Functional safety​

The EtherCAT safety protocol (Safety over EtherCAT):

  • Single channel: safety and non-safety data can share one channel
  • Black channel model: the protocol uses a black channel (see ETG / IEC 61784-3)
  • Certification: FSoE is not a PLC capability, and this product does not claim SIL3 / PLe / TÜV certification
  • Flexible deployment: the position of the safety components is determined by the on-site safety circuit; this page does not claim a certification level

EtherCAT safety architecture

Figure: EtherCAT safety communication architecture based on the black channel

EtherCAT safety system

Figure: example application of an EtherCAT safety system

Safety characteristics​

  • The communication system does not take part in safety processing
  • Where intelligent safety terminals are present, the logic resides on the safety slave side and is not a PLC capability of this product

EtherCAT replaces PCI​

As PCs become smaller, EtherCAT opens up new possibilities:

  • Distributed interfaces: conventional IPC interfaces become EtherCAT terminals
  • Unified communication: one Ethernet interface serves all peripheral devices
  • Simplified design: significantly smaller and cheaper controllers

Distributed fieldbus interfaces

Figure: distributed interfaces with EtherCAT

Smaller IPC

Figure: EtherCAT significantly reduces controller size

Device profiles​

EtherCAT supports several established device protocols, which makes migration from conventional fieldbuses easier. Different device protocols can coexist on the same EtherCAT network:

Device profiles coexisting

Figure: multiple device profiles coexisting in an EtherCAT system

Main protocols​

  • CoE (CANopen over EtherCAT): the most widely used protocol; supports I/O, drives, encoders and more
  • SoE (Servo Drive Profile): high-performance motion control based on SERCOS
  • EoE (Ethernet over EtherCAT): transparent tunneling of Ethernet frames
  • FoE (File Access): firmware updates and file transfer
  • AoE (ADS over EtherCAT): ADS mailbox communication (not symbolic access, not a recipe/SCADA/multi-protocol gateway)
  • FSoE (Safety over EtherCAT): functional safety protocol (described here as an EtherCAT protocol; not a PLC capability, and no SIL3/PLe certification is claimed)
  • VoE: vendor-specific protocol

Core advantages​

Cyclic communication is handled in the kernel: the master assembles, sends and receives PDO frames and extracts the WKC in the kernel, while user mode handles only the control plane (configuration, diagnostics, acyclic access). User mode is not on the hot path and does not consume the cycle time budget.

  • Performance and capacity: no product-imposed lower limit on the PDO cycle (125 µs is the recommended starting point, a recommendation rather than a limit; the actual value is measured on site); up to 2047 slaves per master, and a process image (inputs + outputs + mailbox status per slave combined) limited to 64 KB
  • Simple topology: a line structure replaces expensive star topologies, with no dedicated switches required
  • Low cost: a standard Ethernet NIC is enough for the master, and slave chips are inexpensive
  • High bandwidth utilization: more than 90% payload data rate
  • Accurate synchronization: typical DC deviation within a few microseconds, depending on the slave ESC and configuration
  • Functional safety: an optional FSoE protocol channel; SIL3/PLe certification is not claimed, and it is not a PLC capability

Diverse network structures

Figure: flexible, varied network structures with EtherCAT

Application value​

EtherCAT extends internet technology down to the I/O level, achieving:

  • Optimized vertical integration (from sensor to cloud)
  • Removal of control system bottlenecks
  • Maximum use of Ethernet bandwidth
  • Hardware cost control while meeting real-time requirements