Troubleshooting
Why OPC UA cannot expand EtherCAT I/O channel nodes on ctrlX CORE
Short answer
When an OPC UA client connects to ctrlX CORE but cannot expand the child nodes under an EtherCAT instance, the session itself is fine: the earlier EtherCAT and OPC UA Server apps do not resolve channel nodes below instances. From system image version 2.04 with the updated apps the I/O channels are exposed for reads and permitted writes; otherwise bridge the values through PLC real-time variables, which adds one PLC cycle of delay.

On this page
- Why does the OPC UA client connect but fail to expand the EtherCAT channel nodes?
- Is the failed browse a session problem or an EtherCAT problem?
- Are the coupler's input values valid inside the controller?
- Which controller software exposes EtherCAT I/O channels to an OPC UA client?
- How do you expose the channels through PLC real-time variables?
- How much delay does the PLC variable bridge add?
- Why can a channel read succeed while a write fails?
- Which fix applies to your case?
- Questions asked
Your OPC UA test client opens a session on the controller, browses the top of the address space, and then fails to expand the nodes under an EtherCAT instance, so the S20 bus coupler's AI-4-I channels never appear. That is not a network, certificate or wiring fault: in the earlier app versions the resolving of the EtherCAT Data Layer nodes stops at the instance, so the channel sub-nodes are never built and no browse can return them. Two branches fix it: the updated EtherCAT and OPC UA Server apps with system image version 2.04, which expose the I/O channels directly, or a PLC bridge that copies the channel values into real-time variables at a cost of one PLC cycle.
Why does the OPC UA client connect but fail to expand the EtherCAT channel nodes? #
Because the node resolving between the EtherCAT master and the Data Layer does not, in the earlier apps, cover sub-nodes under an instance: the server returns the instance but never builds its channel nodes, so no browse reaches them.
The OPC UA specification (IEC 62541) defines browsing as a service over nodes the server has instantiated; it gives a client no way to enumerate data the server never exposed. Your client is showing the server's real address space. The request path runs client to OPC UA server to Data Layer to the EtherCAT master's data, and the break sits at the last resolving step. Changing the endpoint address, the port, the certificate or the client program cannot add node resolutions the installed apps do not perform.
Is the failed browse a session problem or an EtherCAT problem? #
Separate three things — Ethernet reachability, OPC UA session state and EtherCAT operation — because a browse request travels only to the OPC UA server and never out to the coupler.
Take the endpoint address and port from the actual OPC UA Server configuration, not from a remembered default, then record what the client reports:
| Reading | Meaning | Next check |
|---|---|---|
| Endpoint address and port match the server configuration | The client targets the intended service | Open the session and browse |
| Session opens and unrelated controller nodes browse | The client-to-server path works | Try the EtherCAT instance children |
| EtherCAT diagnostics show invalid or interrupted process data | The acquisition path is broken | Repair it before touching OPC UA |
| Channel data valid locally but the instance children will not expand | Exposure limit in the installed apps | Update path or PLC bridge |
A working session proves nothing about the coupler's process data, so read the EtherCAT master and coupler diagnostics independently. A Data Layer client gives a second opinion on the address space, the approach covered in reading ctrlX CORE variables without an OPC UA server: if it also cannot browse below the instance, the limit sits in the EtherCAT-to-Data-Layer resolving, not in the OPC UA server.
Are the coupler's input values valid inside the controller? #
Read the AI-4-I channel values locally before touching anything on the OPC UA side, because OPC UA can only serve data the controller already holds.
Drive the connected signal and watch the channel in the controller's engineering environment, reading channel status together with the number; a retained or frozen value is not acquisition. If the value does not follow the input, repair the physical path first:
- signal wiring at the module terminal;
- coupler supply and the state of the EtherCAT links;
- the slave state in the master's diagnostics;
- the configured module arrangement and the process-data mapping.
Only when the local value follows the input and the client still cannot reach the node are you in the software exposure branch. No field change fixes an address-space limit, and no app update fixes dead wiring.
Which controller software exposes EtherCAT I/O channels to an OPC UA client? #
The updated EtherCAT and OPC UA Server apps together with system image version 2.04 expose the EtherCAT I/O channels to OPC UA clients for reads and permitted writes; check all three components, not the image number alone.
Record the installed app versions and the image version before changing anything, and confirm the supported combination in the product documentation. Carry the controller configuration and the PLC project through the update, then reconnect the client and browse again so its tree reflects the current address space.
| Installed software | Channel access from OPC UA | Action |
|---|---|---|
| Earlier EtherCAT and OPC UA Server apps | Child nodes under EtherCAT instances are not resolved | PLC real-time variable bridge, or update |
| Updated apps with the matching system image | Channels browsable, readable, writable where access rights allow | Browse the channels and inspect each node's access rights |
How do you expose the channels through PLC real-time variables? #
When the controller must stay on the installed software, let the PLC copy each channel into a new real-time variable that it publishes to the Data Layer, which the OPC UA server resolves without the missing instance sub-nodes.
ctrlX PLC Engineering documents this exchange between the PLC and the Data Layer; the bridge uses it in five steps:
- Add the real-time information of the AI channels to the PLC project so the cyclic task can read them.
- Declare destination variables with matching data types and expose them as real-time variables in the Data Layer using the declaration pragma; take the exact pragma syntax from the installed PLC documentation, not from memory.
- Copy each acquired channel value to its destination variable in the cyclic task.
- Build and activate the project, then compare source and destination values online.
- Browse and read the new variables from the OPC UA client.
How much delay does the PLC variable bridge add? #
The bridge adds one PLC cycle: the copied value is at most one task cycle old, so with a 4 ms cyclic task the exposed variable lags the process image by 4 ms.
That copy is only one term in the budget. Worked example with illustrative inputs — a 4 ms cyclic task, a client-requested sampling interval of 100 ms and a publishing interval of 200 ms, which the server may revise:
- copy in the PLC task: up to 4 ms;
- sampling of the exposed variable: up to 100 ms;
- publishing to the client: up to 200 ms;
- worst-case age at the client: 4 + 100 + 200 = 304 ms.
The typical age sits near half the subscription intervals, about 150 ms, still with the copy on top; read the revised intervals from the live subscription before deciding. The decision: the bridge is right for trending, dashboards and slow supervision, and wrong for anything that must act inside about 300 ms — that logic belongs in the PLC task, where the values are already fresh every cycle.
Why can a channel read succeed while a write fails? #
Because browsing, reading and writing are separate services with separate permissions: a node can be visible and readable while its access rights forbid writes, and a measured input is never an output.
Read the node's data type, its access attribute and the returned service status before changing anything. An AI-4-I channel supplies measured input data; a write to it cannot drive the field signal, and permitted writes go to output channels, configuration values or PLC variables. A client write into a bridge destination variable is replaced by the next cyclic copy, so a control path needs its own writable target and PLC logic that validates the command — for why that matters on a drive, see why an OPC UA write alone cannot command an EtherCAT drive.
Which fix applies to your case? #
Decide on three facts — the local channel data, the installed app versions and whether you may update — then commit to one branch instead of mixing them.
| Your case | Decision |
|---|---|
| Channel data invalid locally, or EtherCAT diagnostics show an interruption | Repair the acquisition path first: wiring, coupler power, slave state, module arrangement. No OPC UA change will help. |
| Data valid, earlier apps, controller must stay as installed | Add the PLC real-time variable bridge and accept one PLC cycle of added delay. |
| Data valid, update permitted | Install the updated EtherCAT and OPC UA Server apps with the matching system image, then browse the channels directly; keep a bridge only if another consumer needs the mirrored variables. |
Questions asked
Does restarting the OPC UA Server app restore the missing child nodes?
No. A restart rebuilds the same address space from the same installed apps, so the sub-nodes under EtherCAT instances stay unresolved. Only the updated EtherCAT and OPC UA Server apps change what resolves, and only the PLC bridge changes what the client can reach without an update. A restart is still worth doing after an update, so the client's tree reflects the new address space.
Where do you read the installed app versions and the system image version?
In the controller's web-based management interface, which lists the installed apps with their versions beside the system image version. Record all of them before any change: the update path depends on the combination of EtherCAT app, OPC UA Server app and image, and a documentation or support check needs exactly those numbers, not the ones from a different controller.
Is a flat buffer variable an alternative to the real-time variable bridge?
The PLC documentation also describes non-real-time data exchange with the Data Layer through flat buffers. That path suits configuration and slower non-cyclic data, not a per-cycle copy of measured channels: a real-time variable belongs to the cyclic task and stays consistent with it, which is what a channel mirror needs. Use flat buffers when the data does not have to move every cycle.
Does the same limit apply to other EtherCAT I/O on the controller?
Yes. The gap is in resolving child nodes under EtherCAT instances in general, not in one coupler family, so any modules that appear as instances with channel sub-nodes behave the same way on the earlier apps. The updated apps close it for the I/O channels across the EtherCAT configuration, and the PLC bridge works for any value the cyclic task can read.


