IMDHMIControls LibraryShop main store

Troubleshooting

Why AoE IO-Link configuration writes run at one per two seconds

Industrial networks Published 6 min read By IMDHMI controls team

Short answer

One AoE write every 2 s is mailbox queueing or PLC pacing, not EtherCAT speed: at a 10 ms bus cycle the network gets about 200 mailbox-servicing opportunities inside that gap. Timestamp the active write against the idle gap, keep EoE and CoE traffic out of the download window, and launch each write on completion, and the job drops from over an hour to minutes.

On this page
  1. One mailbox, three protocols, one queue
  2. Transaction latency or launch rate
  3. The state machine around IL_ECATAoeWrite
  4. Working the case: 200 IO-Link devices, ten writes each, one write every 2 s
  5. If you change the access method anyway
  6. The decision for each case
  7. Questions asked

Your writes are not slow because of AoE. At the 10 ms bus cycle you reported, the network gets roughly 200 mailbox-servicing opportunities inside the gap between two writes, and an unqueued parameter write needs only a few of them. The interval comes from one of two places: the EtherCAT mailbox queue, where your EoE, CoE and AoE traffic line up in front of each other, or the PLC sequence that arms one IL_ECATAoeWrite and then spends scans waiting before the next launch. Both are measurable in an afternoon and fixable without changing protocol. The call itself is the one covered in reading IO-Link parameters over EtherCAT AoE from a ctrlX PLC; this article is about why it leaves so late.

One mailbox, three protocols, one queue #

EtherCAT carries process data cyclically and everything else through a mailbox on each slave, serviced alongside the cyclic frames. EoE, CoE, AoE and SoE all use that one acyclic channel per slave: they get no separate timing per protocol, they simply queue. So an engineering laptop talking EoE to a slave and background CoE parameter polling both stand between your write and its turn. EoE tunnels whole Ethernet frames through the same mailboxes, the mechanism behind reaching a safety PLC over EtherCAT EoE from a Windows PC, and every tunneled frame is one more item ahead of an AoE request to that slave.

Transaction latency or launch rate #

The reported rate describes two different faults. Either each transaction occupies the whole spacing, or transactions finish fast and something spaces the launches. Timestamps separate them. For one configuration pass, capture:

  • the scan that arms the call and the scan that sees the done flag: the active transaction time
  • the done flag to the next arm: the idle gap
  • the task period actually configured, since your application runs between 10 ms and 200 ms
  • the slave state and the IO-Link port status during the write, so a retrying port is not blamed on the network

A few cycles active with a long gap convicts the queue or the sequence; an active time that fills the spacing points at the master-to-device leg.

What you see Where the time is What proves it
Every write takes the same long spacing, cyclic data healthy Queue or sequence Active time versus gap, per write
Latency grows while engineering access is busy The mailbox queue Repeat the write with that traffic stopped
Only some ports or indices are slow The device or its port The identical write on a neighboring port
The write completes quickly, the next one leaves late The PLC sequence Done flag to next arm

When you stop traffic for the comparison, stop engineering access and background polling only, never a channel that carries process data or a required safety function.

The state machine around IL_ECATAoeWrite #

A sequence that arms the call in one scan, waits for the done flag, evaluates the result, resets the request and advances the device index spends at least five scans per write. At the slow end of your task range, 200 ms per scan, that is 5 x 200 ms = 1 s per write with no delay timer anywhere; one wait stage or a slow supervisory task on top reaches the full spacing. A staged machine on a slow task reproduces your symptom with nothing wrong on the wire. Look for delay timers between writes, retry backoff, and an index that advances only when an unrelated condition comes true. The fix: launch the next write in the scan that sees the previous done flag, and keep one request in flight per master. Nothing in AoE asks you to wait between requests.

Inputs, all from your own project:

Input Value Where it comes from
IO-Link devices to configure 200, on 30 masters your project scope
Configuration writes per device 10 your parameter list
Observed launch spacing one write every 2 s your measurement
Bus cycle, PLC task 10 ms, task 10 ms to 200 ms your settings

The rule in words: total download time is devices times writes per device times the spacing per write, and the mailbox opportunities per write are the spacing divided by the bus cycle.

The arithmetic:

  • 200 devices x 10 writes per device = 2,000 writes
  • 2,000 writes x 2 s per write = 4,000 s, about 67 minutes
  • 2 s / 10 ms per cycle = 200 cycles of mailbox opportunity per write

Result: at the observed spacing the download runs 4,000 s while the bus could have serviced each write two hundred times over.

Decision: stop the other acyclic traffic and repeat one write. If it completes within about ten bus cycles, 100 ms at your setting, the transaction is healthy and the spacing is queueing or pacing; after the fix the same 2,000 writes at ten cycles each take 2,000 x 0.1 s = 200 s. If the quiet-network write still fills most of the spacing, the time sits between the AL1333 and the IO-Link device: capture the trace and the system report and take them to the master's supplier, because that is not an AoE property.

If you change the access method anyway #

CoE SDO is the alternative that reaches the same IO-Link parameter data: the ADS layer and its per-call overhead disappear, and the PLC code gets less simple. It is not a faster lane. SDO traffic rides the same mailbox queue, so a congested queue delays it exactly like AoE, which is why reports of SDO parameter access running without speed problems on this same master are really reports of a clean queue and a tight sequence. When the SDO access goes through the controller's Data Layer instead of PLC code, mismatched data types are the usual failure, and the diagnosis is collected in troubleshooting CoE SDO type errors in the Data Layer. On EoE for the master: whether the service appears depends on the master's firmware and on the ESI file your engineering tool has loaded, so update both before concluding the hardware lacks it, and note it would share the queue anyway.

The decision for each case #

  • A few cycles active and a long gap: fix the sequence. Launch on the done flag, one request in flight per master, rotating across all 30 masters; thirty parallel transactions put the job in tens of seconds, not the hour.
  • Latency falls when EoE and CoE traffic stops: keep engineering access and acyclic polling out of the download window, then restore them.
  • Only certain ports or indices slow: the device or its port. Run the identical write on a neighboring port and read the returned result before touching the network.
  • The quiet-network write still fills the spacing: the time is between master and device. Trace, system report, supplier. Do not rebuild the protocol over it.

For calibration: your own results on other networks, 1,500 sensors in 5 s and 12,000 configurations in under 20 s, are the class of number a clean queue and a pipelined sequence produce. Treat them as the target, not as an EtherCAT acceptance limit.

Questions asked

Can I send writes to several masters at once, or only one at a time?

Several at once. The mailbox queue is per slave, so a request to one AL1333 never waits behind a request to another; your one-at-a-time pattern is a PLC choice, not a bus limit. Keep one request in flight per master and rotate through all thirty, and the aggregate rate is roughly thirty times a single-master sequence. Within one master, stacked requests queue, so pipelining several at the same slave buys nothing.

Why did a week of protocol counters show nothing wrong?

Counters report totals: telegrams, errors and retries accumulated over the whole week. They cannot show that a write waited behind EoE frames during one download. What shows it is a short trace covering a slow configuration pass, with PLC timestamps on the arm and the done flag, so the wait lands inside a visible window instead of a cumulative number.

Will a faster EtherCAT cycle speed the writes up?

No. Your bus cycle already gives each write hundreds of mailbox service opportunities; shortening it multiplies a number that is not the constraint. A pacing timer ignores cycle time, and a congested queue stays congested. Shorten the cycle only when the cyclic process data needs it, and put the effort into the sequence and the traffic instead.

Is ADS over EtherCAT the wrong technology for sensor configuration?

No. AoE is a sound path for commissioning downloads of a few thousand writes, and the evidence in this case points at the queue and the sequence, not the service. CoE SDO reaches the same parameter data with less per-call overhead and clumsier PLC code, and it shares the same mailbox queue, so choose it for code reasons, not for speed.

Keep reading

  • How-to

    Read IO-Link parameters over EtherCAT AoE from a ctrlX PLC

    Call IL_ECATAoEGetConfigInfo with the IO-Link master's EtherCAT address to resolve its Network ID, then pass that Network ID to IL_ECATAoERead with target port 16#1000 plus the IO-Link port number and index group 16#F302. The index offset packs the parameter index and subindex, and the destination buffer must match the parameter's documented length or the read ends with an error.

    Industrial networks

  • How-to

    Setting up IP67 EtherCAT remote I/O modules on a soft PLC

    Setting up IP67 EtherCAT remote I/O on a soft PLC is four moves: install the vendor's device description XML in the fieldbus configurator's device repository, scan the bus and insert the scanned devices, plug every occupied IO-Link port with its send and receive data allocation, then import the master, ports and channels into the PLC project through the controller's Data Layer and map the raw bytes in the program.

    Industrial networks

  • Troubleshooting

    Why IO-Link hub outputs stay off despite a valid process image

    Setting output bits in the master's I/O mapping commands a hub point, but it cannot turn an input-configured point into an output. Configurable hubs ship with points defaulting to inputs, documented for the Balluff BNI004L and BNI007Z families, and the direction is assigned through the IO-Link parameter path at ISDU index 41h on those hubs. A vendor function block or the master's parameter tool writes it; after that write the same cyclic bits energize the points.

    Industrial networks