Troubleshooting
Fix the CODESYS duplicate controller IP error in ctrlX PROFINET
Short answer
The message means the controller side has no valid unique address: the Ethernet node is unbound (IP 0.0.0.0) and the drive never received its project address. Give the ctrlX CORE adapter a static, non-overlapping address, bind it at the Ethernet node with Browse, then select the scanned drive and press Auto-IP.
On this page
The status text "Controller's IP address is already used by another device" on a CODESYS PROFINET controller hosted on a ctrlX CORE (ctrlX WORKS 1.20.11, PROFINET Controller 4.3.1.0, PLC App 1.20.7) is a controller-side binding fault, not a fight over the drive's address. What cleared it: a static, non-overlapping address on the ctrlX CORE adapter, the Ethernet node bound to that adapter through the Browse button, then the scanned drive selected in the device list and Auto-IP pressed. Drive address changes, software version swaps and power cycles changed nothing, because none of them touches that binding. A scan that finds no devices at all is a different fault — start with Fix ctrlX CORE PROFINET device not found with XF10 connected.
Why the scan passes while the IP check fails #
The scan and the failing check work at different layers, so both results can be true at once. A PROFINET bus scan speaks DCP, the protocol's Layer 2 discovery and configuration service, and needs no IP address on the controller or the device, which is why the drive appeared and could be added to the project while its controller had no usable address. The duplicate-address check runs at the IP layer against the address of the adapter the Ethernet node is bound to; with the node unbound, the project reported a controller IP of 0.0.0.0 and the check had nothing valid to compare. When the scan itself fails instead of succeeding with a red bus, work through Fix PROFINET device ID read errors in CODESYS scans first.
Where the check fails, hop by hop #
| Hop | Reported state | What it means for the check |
|---|---|---|
| Ethernet node under the PROFINET controller | Controller IP 0.0.0.0 | No usable controller address until the node is bound to a configured adapter. |
| ctrlX CORE adapter XF10 | 192.168.1.1 / 255.255.255.0 | Static address on its own /24; not the PROFINET port in this setup. |
| ctrlX CORE adapter XF50 | No EtherCAT devices attached, tap0 disabled | Outside the PROFINET path. |
| ctrlX CORE adapter XF51 | On DHCP; setting 192.168.0.1 / 255.255.255.0 was refused with an error once the controller was added | Intended PROFINET port; the refused assignment leaves the path without a controller address. |
| Drive PROFINET interface | 192.168.0.2; scanned and added to the project | Layer 2 reachability proven; the drive's own address is not the failing check. |
The published how-to for this sequence names a X7 interface and adds that the label is not relevant; this unit's network settings list XF10, XF50 and XF51 instead. Use the adapter names exactly as your ctrlX CORE network settings show them — the procedure does not depend on the label.
Bind the Ethernet node to the adapter #
- In the ctrlX CORE network settings, give the PROFINET-facing adapter a static address and mask; the reported installation used 192.168.0.1 / 255.255.255.0 on XF51. Do not leave the controller port on DHCP.
- Check the new range against every other adapter, including any DHCP lease, with the arithmetic below; overlapping ranges let IP telegrams leave through the wrong interface.
- In the PLC Devices tree, select the Ethernet node under the PROFINET controller and pick the configured adapter with the Browse button.
- Confirm the node now carries the adapter's address instead of 0.0.0.0.
- Log in and download. The message can still be present here — that is expected until the drive holds its project address.
The overlap check with numbers #
Mask each adapter address down to its network and compare the spans. XF10: 192.168.1.1 AND 255.255.255.0 = 192.168.1.0, so that /24 spans 192.168.1.0 through 192.168.1.255. The new XF51 setting: 192.168.0.1 AND 255.255.255.0 = 192.168.0.0, spanning 192.168.0.0 through 192.168.0.255. The two spans share no address — the third octet is 1 in one and 0 in the other — so the ranges are disjoint and the setting is allowed. The failure mode looks like this: give XF10 a /16 mask instead, and 192.168.1.1 AND 255.255.0.0 = 192.168.0.0, a span of 192.168.0.0 through 192.168.255.255 that contains the whole XF51 range. That is the overlap the settings page rejects and the how-to warns about; a DHCP lease sitting on another adapter occupies its range the same way.
Assign the drive address with Auto-IP #
- Scan the bus from the PROFINET controller node until the drive appears in the device list.
- Click the scanned device's row — this is the step that gets missed.
- Press Auto-IP. The controller writes the project IP address and device name to the selected device over DCP.
- Keep the drive inside the controller's subnet on a different host number: controller 192.168.0.1, drive 192.168.0.2.
- Re-download or restart the application and read the controller status; the bus comes up green at this point.
Before pressing Auto-IP, confirm the highlighted row is the drive you intend: the write goes to whatever is selected, and the device that ends up holding the project name is the one the controller connects to.
What does not clear the error #
- Changing the drive's IP address: the same message after every address, because the failing check sits on the controller side.
- Swapping the ctrlX WORKS, PROFINET controller or PLC app version: no change across the combinations tried.
- Power cycling: a restart clears volatile DCP-assigned device addresses, not a missing adapter binding.
The current PROFINET controller package named at the time was 4.5.2.0. Install it after the network configuration is correct, or when the installed package is older than your ctrlX OS image expects — not as a fix for this message.
Other causes of the same message #
| Symptom alongside the message | Cause to check first |
|---|---|
| Static address refused on the adapter | The range collides with another adapter or a DHCP lease; run the overlap check. |
| Address taken on the CORE itself | Another ctrlX OS app using TCP on that address — databases and communication apps; list running apps and their bindings. |
| An unexpected device answers | A switch between CORE and drive with other devices attached; connect the drive directly to the CORE port and retest. |
| Controller will not start at all | The PROFINET controller license; check its state before anything else on a controller that never runs. |
| Error persists after binding and Auto-IP | An installed controller package older than the image expects; update it and repeat both steps. |
The decision #
Commit to the two-step fix and skip the rest on the first pass: adapter address plus Browse binding, then Auto-IP on the selected scanned device. Both halves are required — in the reported installation the binding alone still raised the message, and Auto-IP pressed with no row selected did nothing. Version swaps, drive address changes and power cycles do not touch either mechanism. Only when both steps have passed and the bus stays red do you walk the table above, in order: occupying app, intervening switch, license, then package version.
Questions asked
Can I leave the controller adapter on DHCP and let it sort itself out?
No. The controller port needs a static address and mask so the project, the adapter and the assigned device addresses stay consistent, and a DHCP lease can change under you. A lease can also occupy a range another adapter needs, which is one way the static assignment gets refused. In the reported installation the intended port sat on DHCP until it was given its static /24.
The adapter refuses the static address with an error. What is clashing?
In the reported case the refusal appeared only after the PROFINET controller was added to the project, which points at the address-range check rather than the adapter. List every adapter with its address and mask in the ctrlX CORE network settings, including any still holding a DHCP lease, and compare each pair with the AND method shown above. Any mask wider than /24 on 192.168 addresses swallows neighboring /24 ranges.
How do I confirm the Browse binding actually took?
Re-open the Ethernet node under the PROFINET controller in the Devices tree and read its address field: it must show the adapter's static address, not 0.0.0.0. If it still reads 0.0.0.0, the node is not bound to a configured adapter — repeat the Browse selection against an adapter that holds a static address, then download the project again.
I pressed Auto-IP and nothing happened. What did I miss?
The button acts on the selected row only. Click the scanned device in the list first, then press Auto-IP; pressing the button with nothing selected, or selecting the row without pressing it, changes nothing. When it works, a fresh scan shows the device answering with its project name and address.
Where does the PROFINET controller license fit in?
Open the ctrlX license manager and read the PROFINET controller license state. A missing license does not raise the duplicate-address text — the controller fails to start at all — so treat it as a separate check for a controller that never runs, taken after the binding and Auto-IP steps have passed.