How-to
How to install and run CODESYS fieldbus add-ons in ctrlX
Short answer
Install the fieldbus package from Tools → Add-on Installer, add the Ethernet adapter while online to the ctrlX OS target, then set the generated IO task to priority 30 and the service task to 39 before login. Keep PROFINET off eth0, and protect the engineering interface by configuring a second IP address on the controller.
On this page
- Package, license and project are three separate steps
- Install the add-on package
- Confirm the installation and the runtime license
- Add the Ethernet adapter while online
- Which adapter to select, and what to leave alone
- Set the generated task priorities before login
- Log in and configure the IO data
- Commissioning checklist
- Questions asked
Installing a CODESYS fieldbus add-on on a ctrlX CORE is five jobs in sequence: install the package in ctrlX PLC Engineering, install the runtime license on the target, add the Ethernet adapter while online, correct the two generated task priorities, then log in and configure IO. The two numbers to write down before you start: IO task priority 30, service task priority 39, set before login. The two traps that stop most attempts: pressing Browse without an online connection returns a communication error, and enabling Adjust operating system settings on XF10 rewrites the controller's network configuration at login. The steps below are documented for ctrlX PLC Engineering 2.6.
Package, license and project are three separate steps #
The driver ZIP that Bosch Rexroth distributes for each fieldbus contains all the add-on packages needed to run that fieldbus driver, but three things stay separate through the whole commissioning:
- The add-on package installs engineering components on the engineering PC. It does not configure the controller and it does not license anything.
- The runtime license is an app license from the CODESYS – Fieldbus Communication area of the ctrlX Store, purchased and installed like any other ctrlX app license.
- The PLC project still needs the Ethernet adapter, the fieldbus driver, corrected task priorities and the IO configuration.
The PLC app license that sizes your runtime is a separate license again, and its headroom matters once fieldbus traffic lands on the cores: how the ctrlX PLC license calculates I/O data and core use shows where that budget goes.
Install the add-on package #
- Get the driver ZIP for your fieldbus, for example EtherNet/IP or PROFINET, from Bosch Rexroth's official download distribution, and extract it on the engineering PC.
- Start ctrlX PLC Engineering and open Tools → Add-on Installer.
- Close ctrlX PLC Engineering when the installer asks; it will not install with the tool open.
- Press Install Files(s), navigate to the extracted package, and open it with a double-click or the Open button.
- Confirm the package-information dialog with OK.
- Read the licensing conditions, tick the acceptance box, and click Continue.
- Wait for the installation to complete and acknowledge the message with OK.
In ctrlX PLC Engineering 1.20 these dialogs are available in German only. That is a display difference; it does not change which package you select for your fieldbus.
Confirm the installation and the runtime license #
Reopen ctrlX PLC Engineering and check two places: the package must be listed in the Installed column of the Add-on Installer, and it must appear in the Package Manager dialogue under Tools → Package Manager. The same verification applies when you work the other way round and install .package add-ons in the Package Manager instead of starting from a driver ZIP.
Then handle the target: install the fieldbus runtime license through ctrlX app licensing before commissioning. If runtime diagnostics later point at licensing, resolve it in that workflow; reinstalling the engineering package fixes nothing on the controller.
Add the Ethernet adapter while online #
- In the Devices view, right-click the controller node, shown as Device (ctrlX CORE), and choose Add Device….
- Under Fieldbuses → Ethernet Adapter, select Ethernet and press Add Device.
- Double-click the new Ethernet node and open its General tab.
- Establish the online connection to the ctrlX OS target, then press Browse. The adapter list is read from the target, not from the engineering PC, so browsing offline always ends in a communication error.
- Select the adapter that reaches the fieldbus network and confirm with OK.
- Right-click the Ethernet node, choose Add Device… again, select the fieldbus driver for your network, and confirm.
The driver hangs under the Ethernet adapter, so step 5 is the decision that fixes which physical port the fieldbus uses.
Which adapter to select, and what to leave alone #
Two documented cautions decide the selection:
- Selecting XF10 with the checkbox Adjust operating system settings enabled reconfigures the network adapter on the controller at login, which changes the general device communication settings. The documented way around it is to create multiple IP addresses on the ctrlX CORE directly and refer to them, instead of letting the driver rewrite the interface.
- A PROFINET device must not be configured on eth0, because the connected PROFINET controller may change that interface's IP address.
An adapter reconfiguration at login interrupts every communication on that interface, so treat it as a change to a running machine and make it only when the machine can stop.
Worked example, illustrative addresses: the engineering PC reaches the controller at 192.168.1.10 on XF10, and the IO network is 192.168.10.0/24. A /24 mask leaves 8 host bits, so 2^8 − 2 = 254 usable addresses per subnet, and the two subnets differ in the third octet, 1 against 10, so no address 192.168.1.x can fall inside 192.168.10.0/24. The decision this forces: give the controller a second address, 192.168.10.10/24, configured in ctrlX OS itself, point the adapter selection at the interface that carries it, and leave Adjust operating system settings cleared so login cannot rewrite 192.168.1.10.
Set the generated task priorities before login #
Each CODESYS fieldbus driver is implemented as two automatically generated IEC tasks: one handles the cyclic IO data exchange, the other the acyclic communication, called services. The task names state their function. ctrlX OS uses different priority ranges than a native CODESYS system, so the generated defaults must be adapted manually, and in ctrlX OS the smaller number is the higher priority.
Set the IO task to 30 and the service task to 39 before you log in. Cyclic IO has a deadline every cycle and the services do not, so the IO task always carries the smaller number, whatever values you end up using.
| Generated task | Carries | Priority |
|---|---|---|
| IO task | Cyclic IO data exchange | 30 |
| Service task | Acyclic communication, services | 39 |
Log in and configure the IO data #
Log in to the ctrlX device. Login is what identifies the available network adapters to the driver and enables the scan mechanisms where the fieldbus supports them. With the driver running, right-click the fieldbus device node and use Add Device… to add the IO modules, then map their data into the application. Adding devices under the driver node is the same step as routing an IO-Link master to a ctrlX CORE over EtherCAT, which walks one concrete network from master to mapped data.
Commissioning checklist #
- Physical link present on the fieldbus interface before any scan.
- Package listed in the Installed column and in the Package Manager.
- Fieldbus runtime license installed on the target.
- Adapter selected online and pointing at the fieldbus interface, not the engineering interface.
- PROFINET device role off eth0.
- IO task at 30 and service task at 39, both set before login.
- After login, IO data refreshing in the mapping. If EtherNet/IP I/O to a Rockwell scanner faults at this point, the connection path is the next check: fixing EtherNet/IP I/O between a ctrlX adapter and a Rockwell scanner covers that path end to end.
Questions asked
Why does Browse fail with a communication error?
The Ethernet node reads the adapter list from the connected ctrlX OS target, never from the engineering PC, so browsing without an online connection cannot work. Connect online to the intended controller first, then press Browse. A working management connection proves you can reach the target; it does not prove the adapter you pick reaches the IO network, so confirm cabling and port labels before you confirm the selection.
How do I tell the two generated tasks apart?
Each driver creates one task for cyclic IO data exchange and one for acyclic services, and the task name states its function, so read the name before changing anything. Give the IO task the smaller number, 30 against 39 for the service task, because the smaller number is the higher priority in ctrlX OS. The generated defaults come from a native CODESYS system's priority ranges and must be adapted manually.
Does accepting the installer's license terms license the driver?
No. The checkbox in the Add-on Installer only allows the engineering package to install on the PC. Running the driver on the controller needs a runtime license from the CODESYS – Fieldbus Communication area of the ctrlX Store, installed through the same workflow as other ctrlX app licenses. If diagnostics at runtime point at licensing, resolve it there rather than reinstalling the package.
Which versions of ctrlX PLC Engineering does this cover?
The installation workflow is documented for ctrlX PLC Engineering 2.6, and in version 1.20 the same dialogs are available in German only. That language difference does not change which fieldbus package you select. Whatever the version, finish by verifying the package in the Installed column and in the Package Manager before you add the driver to a project.