IMDHMIControls LibraryShop main store

How-to

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

Industrial networks Published 7 min read

Short answer

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.

On this page
  1. Versions, hardware and the device description file
  2. Install the device description and add the EtherCAT master
  3. Scan the bus and plug the IO-Link ports
  4. Transfer the configuration and check the live bus
  5. Import the devices into the PLC project
  6. Map the channels and go online
  7. Worked example: decoding the two-byte reading on IO_Link_Port_X02
  8. When the setup does not come up
  9. Questions asked

Cabinet-free IP67 remote I/O talks to a soft PLC over EtherCAT in 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. The walkthrough below follows the documented setup of the WAGO I/O System Field 765 series on a ctrlX CORE soft controller, with the description file WAGO_series765.xml, matched V1.10 tool versions and an 8-port IO-Link master as the worked hardware. The order of operations — repository install, scan, plug, transfer, Data Layer import — carries over to any IP67 EtherCAT I/O range that ships an ESI-style XML; the menu names belong to the ctrlX tools.

Versions, hardware and the device description file #

  • Software baseline: ctrlX CORE V1.10 with the EtherCAT Master App (ctrlX CORE EtherCAT Master App V1.10), plus ctrlX PLC Engineering V1.10 and ctrlX I/O Engineering V1.10 on the engineering PC.
  • Device description: WAGO_series765.xml, obtained from the module vendor by searching the part-number prefix 765 and kept on the local disk the engineering tool reads.
  • Worked hardware: 765-4202/0100-0000, an 8-port IO-Link master, Class B, EtherCAT, 24 V DC / 2.0 A supply; 765-1201/0100-0000, a 16-channel digital input; 765-1706/0200-0000, a 16-channel digital input/output with IO-Link Class B hub function.

Read each module's label against the part number you pulled the description for before wiring anything; a label and an XML that disagree is the most common cause of a clean-looking scan that produces a tree you cannot use. If the controller at the other end is a Siemens PLC rather than this soft controller, the sequence changes: the walkthrough on connecting WAGO remote I/O to a Siemens PLC covers that path.

Install the device description and add the EtherCAT master #

  1. Open the controller's user interface in a browser and go to EtherCAT > Configuration.
  2. Add the EtherCAT master with [+] and confirm with [OK].
  3. Launch the locally installed ctrlX I/O Engineering from that page with [ctrlX I/O Engineering], give the I/O project a name and a folder, and when the Project Synchronization window appears choose [Use project from ctrlX] so the engineering project stays tied to the configuration stored on the controller.
  4. Open Tools > Device Repository…, select WAGO_series765.xml, click [Install], then [Close].

Re-open the repository before scanning and confirm the series 765 entry is listed: an install that did not take shows up as a missing entry here, not at the scan. The install route decides what a repository offers, which the walkthrough on why the GSDML install route decides CODESYS device repository entries demonstrates in another engineering tool.

  1. Wire and power the modules, then right-click ethercatmaster in the device tree and choose Scan for Devices….
  2. Compare every discovered device against its label, click [Insert all newly scanned devices], and close the dialog with [OK]. The tree now mirrors the physical segment in wire order.
  3. The scan finds EtherCAT slaves only. Devices behind the master's IO-Link ports sit one level deeper: select a port with a device connected and choose Plug Device… from its context menu.
  4. In the plug-in dialog, select the data allocation that matches the device on that specific port. The worked configuration plugs an IO-Link device into IO_Link_port_X01 with 2 bytes in the send direction and 2 bytes in the receive direction.
  5. Repeat Plug Device… for every occupied port — the worked set has two — and leave empty ports unplugged.
  6. Before transferring, every occupied port in the tree must show its device and its send/receive sizes; a port that still looks bare is a device the program will never see.

If a plugged device refuses to identify or drops out later, the port-side causes are their own subject: the walkthrough on why an EL6224 IO-Link sensor is not recognized on ctrlX CORE works through them.

Transfer the configuration and check the live bus #

  1. Right-click ethercatmaster and choose Transferring field bus configuration. When the tool asks to change the operating mode to Init, confirm with [Yes].
  2. Save the I/O configuration with File > Save and close ctrlX I/O Engineering.
  3. Back in the controller's web interface, open EtherCAT > Status and read the state it reports instead of assuming a clean transfer; this page is the fieldbus-level verdict that master and devices reached an operating state that exchanges data.
  4. For a first look at live process data, open System > Data Layer and find the port entries under the master instance. In the worked configuration the device on IO_Link_Port_X02 is already sending; the worked example below decodes its reading into the PLC variables.

Import the devices into the PLC project #

  1. Launch ctrlX PLC Engineering with [Start ctrlX PLC Engineering] and create a project with a name and a save folder.
  2. In the Devices window, right-click DataLayer_Realtime and choose Edit > Online from ctrlX CORE….
  3. Select ethercat_master_instances_ethercatmaster and click [Apply changes].
  4. In the same dialog, select all items and apply, then select all IO-Link ports and apply again.
  5. Select all channel items and click [Close]. The Devices tree should now list the imported devices down to channel level; importing the master alone does not pull the channels in, so scroll before you write code.

Map the channels and go online #

  1. Open PLC_PRG (PRG) with a double-click and declare the channel variables in the declaration pane; in the worked configuration these are rawByte0 and rawByte1 as byte inputs.
  2. Assign rawByte0 and rawByte1 to the input channels of IO_Link_Port_X02 on the master module. In the PLC tree that module appears as _750_4202 even though the part number reads 765-4202, so match devices by their position in the scanned topology rather than by expecting the part number to reappear verbatim.
  3. Log on with Online > Login and accept the certificate prompt, which installs the controller's certificate in the local storage.
  4. Confirm the prompt to create the application on the controller with [Yes].
  5. Run the application with Debug > Start: the view switches to online mode and the byte values tick with the field devices. Save the project with File > Save.

Inputs:

  • Allocation: 2 bytes receive on IO_Link_Port_X02, chosen in the Plug Device… dialog in step 8.
  • Live reading: 2.053 in the device's engineering units, which System > Data Layer shows packed into two bytes.
  • Scaling: 1000, the factor this example device applies to its 16-bit transfer value; read it from the device documentation before you reuse the arithmetic.

Rule in words: an unsigned 16-bit process value carries the engineering value multiplied by the scaling factor, so the PLC reconstructs by dividing the raw word by the factor.

Arithmetic: 2.053 × 1000 = 2053, comfortably inside the 0 to 65535 range of a 16-bit word. 2053 in hexadecimal is 0x0805 (8 × 256 + 5), and EtherCAT carries process data little-endian, so the low byte 0x05 lands in the first byte position and the high byte 0x08 in the second.

The reconstruction in structured text, with rawByte0 and rawByte1 as the channel variables from the documented procedure and rawWord and value as illustrative:

VAR
    rawByte0 : BYTE; // channel variable from the documented procedure
    rawByte1 : BYTE; // channel variable from the documented procedure
    rawWord  : WORD; // illustrative
    value    : REAL; // illustrative
END_VAR

rawWord := SHL(BYTE_TO_WORD(rawByte1), 8) OR BYTE_TO_WORD(rawByte0);
value   := WORD_TO_INT(rawWord) / 1000.0;

All four variables sit at 0 until the first EtherCAT cycle writes them.

Test: hold the device at the known reading and watch the online view — rawWord shows 2053 and value shows 2.053, which proves allocation and byte order together. With the bytes swapped, rawWord would read 0x0508 = 1288 and value 1.288: a plausible-looking wrong number, which is exactly why the test runs against a known reading.

Decision: a raw word near the engineering value × 1000 means the 2-byte allocation is correct — scale in the PLC and move on. A single byte holding a small number while the other stays 0 means the allocation does not match the device's real output length: reopen Plug Device… on that port, take the size from the device's own documentation, and re-run Transferring field bus configuration.

When the setup does not come up #

  • Repository lists no series 765 entry after the install: the XML did not take — repeat Tools > Device Repository… and [Install] with the exact file obtained from the vendor.
  • Scan returns nothing: check the link from the master port to the first device, the field supply, and that the scan targets the right master instance. The tree fills in wire order, so one dead or unpowered module hides everything behind it.
  • Status stays short of data exchange after the transfer: re-run the scan and Transferring field bus configuration; a configuration transferred before a topology change is the usual culprit.
  • Reading looks wrong in the PLC: work the decision in the worked example above — in practice the Plug Device… allocation is wrong far more often than the program.
  • Ports or channels missing after import: the online import is hierarchical, so steps 18 and 19 each need their own apply, and the Devices tree must show channel level before you code against it.

Questions asked

Why doesn't the bus scan show my IO-Link sensors?

The bus scan only discovers EtherCAT devices, meaning the couplers and masters on the wire. Sensors and hubs behind the IO-Link ports sit one level deeper and appear only after you plug each occupied port with its device and data allocation. An empty port list after a clean bus scan is the normal state, not a fault; plug the ports and the devices appear in the tree.

Can IP67 remote I/O really mount outside the cabinet?

That is the design intent: the modules mount directly on the machine next to sensors and actuators, and the IP67 rating covers dust ingress and short immersion in fresh water. Mounting still has to respect the connector system, cable strain relief and ambient limits in the module documentation, and high-pressure or chemical washdown exceeds plain IP67, so match the module's documented ingress rating against the washdown specification before mounting it there.

What do the outputs do when the EtherCAT link drops?

Whatever the PLC program drives them to, plus whatever fallback the slave module itself documents, because the two layers are separate. Program the controller to detect the lost bus from the master state and move outputs to a defined state, and treat the slave's built-in behavior as backup only. A reaction that protects people or the machine is a safety function: it needs its own validated safety architecture, never a fieldbus timeout.

Keep reading

  • Explainer

    What an EtherNet/IP IO-Link master exposes to your PLC

    Full access to every port is decided by three documented items: the mode each port is configured in, the master's EtherNet/IP data map, and your PLC's client functions. Process data travels on the cyclic I/O connection; parameters need explicit CIP requests, and at 100 devices polled every 10 ms you would need 10,000 transactions per second, so bulk data belongs on the assembly connection.

    Industrial networks

  • How-to

    How to connect PROFINET IO to a CompactLogix through a gateway

    A CompactLogix cannot act as a PROFINET IO controller, so an EtherNet/IP-to-PROFINET gateway does the job: it is an EtherNet/IP adapter to the controller's scanner and the PROFINET IO controller to the field devices. The one reported gotcha on a 1769-L18ER-BB1B with a PLX82-EIP-PNC was byte swapping on both the input and output maps, fixed in the gateway rather than in ladder.

    Industrial networks

  • How-to

    Read EtherNet/IP module register data with explicit messaging

    The iR-ETN remote I/O adapter exposes each analog module's error code through its Module Register CIP object: class 112, instance set to the module's slot number, attribute 16. A Studio 5000 MSG explicit message reads it in 2 bytes; the cyclic I/O connection never carries this register.

    Industrial networks