Explainer
When a gateway bridges an EtherCAT master to a PROFINET device
Short answer
Yes, a gateway can put a PROFINET device behind a ctrlX CORE EtherCAT master, but only one role pair works: the gateway is an EtherCAT slave on the CORE side and a PROFINET controller on the device side. A gateway whose PROFINET side is a device cannot control the target, and a scan in ctrlX-IO Eng proves identity and link, never the target's module configuration or process data. For deterministic PROFINET I/O, run the CORE's own PROFINET controller beside its EtherCAT master instead.

On this page
- The one role pair that works
- What the ctrlX-IO Eng scan proves
- Two description files, two tools
- Commissioning the PROFINET side
- Mapping bytes across the gateway
- Worked example: sending a setpoint of 20000 across the gateway
- Timing and the path that avoids the gateway
- The decision, case by case
- Questions asked
A bridge between a ctrlX CORE EtherCAT master and a PROFINET device can work, and it fails for one predictable reason: most conversion gateways offered for this pairing carry the wrong role on the PROFINET side. The gateway must be an EtherCAT slave on the CORE side and a PROFINET controller on the device side. A unit whose PROFINET interface is a device role sits under another system's controller and cannot run your target, whatever its product name suggests. And a scan that finds the gateway in ctrlX-IO Eng proves link and identity, never the target's module configuration or its process data. This article names the role pair to buy, the two description files the job needs, the commissioning order, and the byte test that proves values really cross.
The one role pair that works #
The gateway terminates two independent fieldbus relationships; it never forwards frames from one wire to the other. Because the CORE is the EtherCAT master, the gateway must join that network as an EtherCAT slave. Because the target is a PROFINET device, the gateway must face it as a PROFINET controller — the role that assigns names, builds the module configuration, and cycles I/O. Three role pairs exist in practice, and only one fits:
| Gateway role pair | Under the CORE's EtherCAT master | Driving the PROFINET target | Verdict for this path |
|---|---|---|---|
| EtherCAT slave + PROFINET controller | Joins correctly | Correct role | The only pair that works |
| EtherCAT slave + PROFINET device | Joins correctly | Needs a separate controller | Built for the reverse arrangement |
| EtherCAT master + PROFINET device | Two masters cannot share one EtherCAT network | Needs a separate controller | Wrong at both ends |
The middle row is the trap, because it is the commonest product. A gateway sold under a name like EtherCAT Slave - PROFINET-IRT Device exists so that a PROFINET controller in some other system can exchange data with EtherCAT slaves; its PROFINET side is a device, so it cannot control yours. The failure behind that row is exactly the subject of why a PROFINET IO-device gateway cannot be a controller. The decision: buy nothing for this path unless the datasheet names the controller role on the PROFINET side.
What the ctrlX-IO Eng scan proves #
An ordinary EtherCAT slave — an I/O terminal, a compact block — is by design process data plus the identity its description declares, so the scan reads the identity, offers the process-data layout, and inclusion in the configuration is quick. For a gateway the same scan proves three things only: the physical link, the identity codes, and the process-data options the EtherCAT side offers. It proves nothing about the other network: no target device name, no module configuration, no cyclic exchange with the PROFINET device. Detection and integration are different milestones.
Plan for that gap. A gateway carries startup parameters, a process-data layout on two networks, and a second protocol stack to configure; expect it to need its full device description imported and its startup settings applied before the configuration is complete, and expect scan-and-run to fail. Before you buy, check the gateway model against the controller vendor's published list of supported EtherCAT devices, and treat an absent model as an integration project, not a plug-in module. A complex EtherCAT device done properly looks like routing an IO-Link master to a ctrlX CORE over EtherCAT: description imported, layout selected, data proven end to end.
Two description files, two tools #
The job needs two files, and they never meet. The gateway's ESI file, its EtherCAT device description, goes into the ctrlX engineering tool, which uses it to represent the EtherCAT slave the CORE sees. The target's GSDML file goes into whatever tool configures the gateway's PROFINET controller side; the GSDML specification is the PROFINET device description format, a manufacturer ships one file per device and revision, and after import the engineering tool builds the module configuration from it. If the gateway's PROFINET side is configured from the same ctrlX engineering environment, both imports land in one tool; otherwise the GSDML lands in the gateway's own configuration software. Match each file to the firmware revision actually installed, and take both from the device manufacturer or its distributor.
Commissioning the PROFINET side #
The EtherCAT scan cannot assign the target's identity or build its configuration, so the PROFINET side is commissioned deliberately, in this order:
- Import the target's GSDML into the tool that configures the gateway's controller side.
- Put the engineering station on the PROFINET subnet itself, because discovery behaves differently across subnets and between tools — the cross-subnet discovery differences between two major PROFINET engineering tools are a documented trap — and scan from the same subnet the target sits on.
- Assign the project device name to the connected target.
- Set the target's IP address from the network plan and check for duplicates.
- Build the module configuration from the GSDML so slots, submodules, and input and output lengths match the physical device.
- Apply the configuration and open the gateway's PROFINET diagnostics.
The accept criterion is in the last step, not in a ping: a reply to a ping proves IP reachability only. The side counts as commissioned when the gateway's diagnostics report established cyclic exchange with the target and valid I/O status on its inputs.
Mapping bytes across the gateway #
Name every signal from the CORE's perspective. Outputs the CORE writes leave the EtherCAT master as output data, cross the gateway's internal transfer buffer, and emerge as PROFINET outputs to the target; target feedback travels the reverse way and lands in the EtherCAT inputs. The gateway copies bytes at the offsets you configure; it does not rescale, reorder, or interpret them. Build a mapping table with source, destination, byte offset, length, data type, and byte order for every signal, and keep gateway status and validity flags in separate bytes away from payload.
One safety note: a gateway can keep the local process image looking alive while the far network has already stopped, so configure the loss-of-network behavior — what the target drives when the EtherCAT side stops updating, what the CORE receives when the PROFINET side stops — in both devices, setting their watchdogs and fail-safe output states as their manuals define them before the machine runs.
Worked example: sending a setpoint of 20000 across the gateway #
The case: the program writes a setpoint of 20000 as a 16-bit integer at the first output word of the CORE's EtherCAT outputs; the target reads its first input word as a 16-bit integer and, per its module configuration, assembles words most significant byte first. The value is chosen for the test because its two bytes differ, so any mix-up shows immediately.
Rule in words: the gateway moves the two bytes at their configured offsets and never reorders them, so the value survives the trip only if both ends assemble the bytes in the same order.
Arithmetic: 20000 = 0x4E20, since 0x4E20 is 4×4096 + 14×256 + 2×16 + 0 = 16384 + 3584 + 32 = 20000. Most significant byte first, the gateway must deliver 0x4E (decimal 78) then 0x20 (decimal 32). If the mapping delivers them in the opposite order, the target assembles 0x204E = 2×4096 + 0×256 + 4×16 + 14 = 8192 + 64 + 14 = 8270.
Result: link, identity, and byte counts all read healthy at every diagnostic, and the target still holds 8270 where the program sent 20000.
Decision and threshold: before the first real run, force the test value from the CORE and read the target's raw two bytes. Pass means the raw word reads 20000 — bytes 78 then 32. If it reads 8270, the byte order is flipped: reverse the word assembly in the program or in the mapping, and repeat until the raw value passes. Run the same forced-value test on one feedback signal in the return direction, then release the real setpoint.
Timing and the path that avoids the gateway #
The EtherCAT network cycles on its own schedule, the PROFINET network on another, and the gateway's transfer buffer adds a third stage between them; matching nominal cycle settings does not make the path synchronous. Read the update and transfer behavior from the gateway documentation, and if the loop cares about latency, measure a step change at the machine rather than trust a cycle number. Decision: for I/O that needs tight, deterministic coupling — coordinated drive setpoints, fast interlocks — do not bridge the protocols, and note that a standard data gateway has no safety channel, so safety functions belong on native networks regardless. Run the PROFINET controller role natively beside the EtherCAT master on the CORE instead, which running a PROFINET controller beside an EtherCAT master on ctrlX CORE covers end to end. The gateway earns its keep in the remaining cases: the controller variant has no PROFINET controller available, or the target sits on a distant network and the data you need from it is slow and non-deterministic — remote I/O diagnostics, meter readings, status blocks.
The decision, case by case #
- You need real PROFINET device I/O under a ctrlX CORE: skip the gateway and run the native PROFINET controller beside the EtherCAT master.
- You must bridge — no PROFINET controller on the variant, or the target lives on a separate network and slow data is acceptable: buy only a unit documented as EtherCAT slave plus PROFINET controller, check it against the controller vendor's supported-device list, and budget a commissioning session for the two description files, the startup parameters, and the PROFINET-side steps above.
- The datasheet says EtherCAT slave plus PROFINET device: it cannot run this path; it serves the reverse arrangement and belongs under a PROFINET controller elsewhere.
- Whichever path you choose: pass the known-value byte test in both directions and set the loss-of-network behavior before the machine runs.
Questions asked
Can one gateway serve several PROFINET devices behind the EtherCAT master?
Only if its PROFINET side is a controller documented to address more than one device. Conversion gateways state how many PROFINET devices their controller side addresses, and many address exactly one. Read that number from the gateway documentation before planning a multi-device drop; when it is not stated, plan one device per gateway and add another gateway for the next device.
Do I configure the gateway's PROFINET side from the ctrlX tool or from the gateway vendor's software?
That depends on the gateway, and its documentation settles it: some units are configured entirely from the controller engineering environment once the description files are imported, others need the manufacturer's own tool for the PROFINET side and the startup parameters. Whichever arrangement applies, the target's GSDML always goes into the tool that actually builds the target's module configuration.
The gateway is documented as EtherCAT slave to PROFINET device. Why can it not control my device?
That unit is built for the reverse arrangement: its PROFINET side is a device role, so it must sit under a PROFINET controller in another system, fronting EtherCAT slaves there. It carries no controller function on the PROFINET side, so it cannot assign a device name, build a module configuration, or cycle I/O to your target. For the path described here you need the other role pair.
Do I need to reassign the PROFINET device name after a power cycle?
No. A PROFINET device keeps its assigned name in nonvolatile memory, so the gateway's controller finds the same target again after a restart. The name changes only when a naming function writes it. The exception is a replaced device: a new unit carries a different name, so assign the project name to the replacement before expecting cyclic data.
The raw bytes match at both ends but the engineering value is still wrong. Is the gateway at fault?
No. The gateway moves bytes and knows nothing about your scaling: integer ranges, decimal points, units, and signedness live in the controller program and in the target's own parameterization. When the raw bytes are identical on both sides, fix the scaling in the program or the drive parameters; the mapping is proven and should be left alone.


