AoE - ADS over EtherCAT
What is AoE?
AoE (ADS over EtherCAT) is Beckhoff's ADS protocol implemented over EtherCAT. It provides a routable client/server communication mechanism.
ADS (Automation Device Specification) is a public communication protocol. AoE integrates ADS into EtherCAT and extends communication between devices.
Core characteristics
| Characteristic | Description | Benefit |
|---|---|---|
| Routable | Multi-level routing, communication across subnets | Flexible network topology |
| Client/server | Standard request-response model | Easy to understand and implement |
| Parallel services | Several services can run at the same time | Modular functionality |
| Low overhead | Efficient protocol design | Suited to embedded systems |
ADS protocol basics
ADS address structure
Each ADS device is identified by a unique address:
- NetId — 6-byte network identifier, example: 192.168.1.10.1.1
- Port — 16-bit port number, example: 851 (PLC Runtime)
Index Group and Index Offset
ADS uses Index Group and Index Offset to address data:
- 0xF020 — PLC input image, example: read input status
- 0xF030 — PLC output image, example: write outputs
- 0xF021 — PLC flag area, example: access internal variables
Main use cases
AoE in this SDK is ADS mailbox read and write — not symbolic name access, and not a recipe system, SCADA, or a CANopen/Modbus/IO-Link/PROFIBUS multi-protocol gateway.
Remote diagnostics and monitoring
Capabilities:
- Read device status in real time
- Access the diagnostic buffer
- Adjust parameters remotely
- Read performance counters
Benefits:
- A unified access interface
- Standardized diagnostics across devices
Parameter server
Centralized configuration management:
- Store device configuration parameters
- Distribute parameters in bulk
- Manage configuration templates
- Version control
Use cases:
- Parameter read and write across multiple devices (Index Group + Index Offset)
Distributed services
Service types:
- Data logging — distributed data acquisition, example: multi-point temperature monitoring
- Alarm management — centralized alarm handling, example: fault aggregation and notification
- Time synchronization — if the slave provides the corresponding ADS service
ADS command types
Basic commands
- Read (0x02) — read data, application: get device status
- Write (0x03) — write data, application: set parameters
- Read/Write (0x09) — atomic read-write operation, application: parameter exchange
- Read State (0x04) — read device state, application: health check
- Write Control (0x05) — control command, application: start/stop
- Add Notification (0x06) — add a variable notification, application: event subscription
- Delete Notification (0x07) — delete a notification, application: cancel a subscription
Notifications
Variable change notification:
- The client subscribes to specific variables
- A notification is sent automatically when the value changes
- Dead band and sampling rate are configurable
- Polling overhead is reduced
AoE compared with EoE
AoE vs EoE
- Protocol layer — AoE: application layer (ADS) / EoE: network layer (IP)
- Purpose — AoE: dedicated services / EoE: general networking
- Efficiency — AoE: optimized for automation / EoE: general protocol overhead
- Learning curve — AoE: requires knowledge of ADS / EoE: familiarity with TCP/IP is enough
Typical architecture patterns
Pattern 1: distributed services
Master ↔ AoE ↔ multiple slaves (each providing a service)
- Each slave runs a specific service
- The master acts as a client and accesses the services
- Slaves can communicate with each other through routing
Pattern 2: centralized monitoring
Multiple clients ↔ AoE ↔ EtherCAT network ↔ all devices
- Multiple clients send ADS mailbox requests in parallel (if the slaves support it)
Advantages and limits
Advantages
- High efficiency — optimized for automation applications
Limits
- Ecosystem-specific — mainly used in the ecosystem of devices that support ADS
- Learning curve — requires knowledge of the ADS protocol
- Documentation dependency — depends on the ADS protocol specification
- Interoperability — integration with devices from other vendors needs conversion
Device support
Device types that support AoE
- EtherCAT slaves that support ADS — the device itself implements the ADS service
- Gateway modules — third-party protocol-conversion slaves
- Intelligent slaves — advanced slave controllers (some vendors)
- Third-party devices — implemented through the SDK (development required)
How to confirm device support
- Check for the
<AoE />tag in the ESI file - Read the device technical documentation
- Check whether an ADS service interface is provided
AoE support in the Darra SDK
The Darra SDK provides AoE protocol support:
Core capabilities
- ADS read and write — mailbox read and write by Index Group / Index Offset
Development guidance
Implement an AoE server (slave side)
If you are developing a slave that supports AoE:
-
Implement the basic ADS commands
- Read, Write, Read/Write
- Read State, Write Control
- Correct error code returns
-
Define the Index Group mapping
- Plan the Index Groups for the data areas
- Document the accessible Index Groups / Index Offsets
-
Implement the notification mechanism
- Variable monitoring and dead band detection
- Asynchronous notification delivery
- Manage the subscription list
-
Routing support
- Handle routing-forwarding requests
- Maintain the routing table
- Implement address resolution
Use an AoE client (master side)
If you are developing an application that uses AoE:
-
Address management
- Maintain a NetId and Port mapping table
- Implement a service discovery mechanism
- Handle address changes
-
Error handling
- Timeout and retry mechanisms
- Clear error messages
- Logging
-
Performance tuning
- Batch read and write by Index Group
Real-world use cases
Case 1: distributed temperature monitoring
Requirement: 100 temperature measurement points, monitored and alarmed centrally
Approach:
- 10 temperature acquisition modules (10 channels each)
- Use the AoE notification mechanism:
- Subscribe to all temperature variables
- Set alarm threshold dead bands
- Automatic notification when a temperature exceeds the limit
- Reduces master CPU load (no polling needed)
FAQ
Is AoE limited to Beckhoff devices?
No. Although ADS was developed by Beckhoff, the protocol is public. Any device can implement AoE support, and many third-party gateways and devices already support it.
Can AoE and CoE be used at the same time?
Yes. One device can support several mailbox protocols at the same time. For example, use CoE for basic configuration and AoE to provide advanced services.
Why use AoE instead of EoE?
- AoE is more lightweight and optimized for automation
- EoE is more general and supports all TCP/IP applications
- The choice depends on the specific requirement and the device capability