Troubleshooting
Why a ctrlX PROFINET scan reports RPC Aborted 0x16C9A049
Short answer
RPC Aborted 0x16C9A049 on a scan that still detects the device means two IP adapters on the controller share a subnet. The scan's name lookup still works at Layer 2, but the RPC connection setup that follows is misdirected. Give every port its own disjoint IP range, then scan again.

On this page
An RPC Aborted 0x16C9A049 result on a PROFINET scan that still lists the device points at overlapping IP ranges: two network adapters on the controller hold addresses inside one subnet, the telegrams of the connection setup are misdirected, and the stack aborts the RPC connect. The scan's name lookup needs no IP, which is why the device still appears. In the reported ctrlX case the scan aborted through one port and connected through another, and the diagnosis was an IP range shared by two adapters on the unit. The fix comes before any other setting: compare every adapter's address against its mask, require zero shared addresses between adapters, and give the PROFINET port a range of its own.
What the RPC abort means #
Bringing up a PROFINET IO connection under the CODESYS PROFINET Controller SL stack, the stack the ctrlX PLC app loads, runs in three phases:
- DCP identify first: the controller asks on Layer 2 for the station name, so this phase needs no IP at all and succeeds even when the IP side is broken. That is why the scan still detects the device.
- RPC connect second: an acyclic exchange through the IP stack confirms the IP parameters of both ends and opens the application relation. This is the phase the abort belongs to.
- Cyclic data last: real-time frames carry no IP header, so they never touch the routing decision that is broken.
With two adapters inside one range, the unit's own IP configuration gives two valid answers for the same destination, so the connect can leave through the wrong adapter or never reach the device; the stack tears the attempt down and reports RPC Aborted 0x16C9A049. Comparing the two PROFINET ports against each other shows nothing, as in the report, because the conflicting pair is a port against a different adapter: the diagnosis there named XF10 and AX11.
The rule every adapter must satisfy #
The diagnosis states the rule plainly: the IP ranges of a controller's network adapters must not overlap, because overlapping ranges misdirect IP telegrams. Overlap is defined on ranges, not single addresses: two adapters conflict when address AND mask produces the same network for both, even with different addresses, and even when one of them carries no traffic, because the routing decision reads the configuration rather than the traffic. It applies to every adapter the unit holds: the Ethernet ports in use, further ports such as AX11 in the report, and any USB or virtual adapter that has been given an address.
CODESYS reports a loud sibling of this fault as a duplicate controller IP; the scan abort is the quiet version. The fix for both is the same disjoint-range check, and Fix the CODESYS duplicate controller IP error in ctrlX PROFINET walks the loud one end to end.
Check every adapter's range before anything else #
- Open the controller's web interface, go to Settings, then Connectivity, and open each connection in turn to read its IPv4 address and mask; in the documented ctrlX setup the mask is added as /24 after the address.
- For each adapter, write down its network as address AND mask. With a /24 mask, the network is the first three octets of the address.
- Compare the networks in pairs. Any two adapters that share a network overlap, and that pairing is the fault.
- Include the adapters that carry no traffic and any address held by a USB or virtual adapter.
- Fix it by readdressing only; cabling, GSDML files and station names are not the fault here.
- Save the addresses, then rescan with Scan Devices.
Worked example: a PROFINET port on 192.168.2.12 beside an adapter on 192.168.1.1 #
Inputs, each with its source:
- PROFINET port, the one labeled XF11 in the reported case and shown as eth1 in the documented setup's connectivity settings: 192.168.2.12 with mask /24.
- Second adapter on the same unit: 192.168.1.1 with mask /24, the web-interface address the documented setup keeps for engineering.
- PROFINET device: 192.168.2.13 with mask /24, the documented device address.
- Fault being explained: a second adapter, AX11 in the report, shared a range with a port, and scans through the colliding port aborted.
The rule in words: two adapters overlap when address AND mask gives the same network for both, and PROFINET needs zero overlap between a controller's own adapters.
The arithmetic:
- Web adapter: 192.168.1.1 AND 255.255.255.0 = 192.168.1.0, so its range runs 192.168.1.0 to 192.168.1.255, 256 addresses.
- PROFINET port: 192.168.2.12 AND 255.255.255.0 = 192.168.2.0, so its range runs 192.168.2.0 to 192.168.2.255, 256 addresses.
- Shared addresses: none. The third octets differ, 1 against 2, so the intersection is empty: 0 addresses overlap.
- Device check: 192.168.2.13 AND 255.255.255.0 = 192.168.2.0, which lands inside the controller's PROFINET range, as a device must.
- The failing pattern: a second adapter with a /24 mask whose address also begins 192.168.1 produces the first range again, so the two adapters share all 256 addresses and the whole span can misdirect.
Result: the documented addressing passes with 0 shared addresses on the controller, and the device sits inside its controller's range; a same-range pairing fails with 256 shared addresses.
Decision: the threshold is zero. Any pairwise overlap above 0 addresses means readdress before scanning again — keep the PROFINET port as the only adapter in its /24 and leave the first range to the engineering adapter. One shared address is enough to misdirect the connect, and the pairwise check takes a minute.
After readdressing, confirm these four #
- Bind the port in the project. Add the Ethernet adapter, browse, and select eth1; the configured address appears there. A browse that shows 0.0.0.0 means the address was never set on the unit, so type it into the node fields instead of hunting for a driver fault.
- Match the station names. The name travels by DCP and must agree character for character on both ends; PN_Device-plus_X3 is the documented one. A mismatch empties the scan instead of aborting it, so it produces a different symptom than the one in this article.
- Set the task priorities. Give Profinet_communicationTask priority 37 and Profinet_IOTask priority 30, the recommended values, in the controller project and again in the device project.
- Download, log in, and right-click PN_Controller, then run Scan Devices. If the scan still finds nothing, reset the device's PLC program cold and scan again. If the connection opens but values stay frozen, set the mapped channels to update always in the bus cycle task, the Enabled 2 option, log in again and recheck.
Separating the ranges leaves the engineering PC on one subnet and PROFINET on another, and reaching the controller across that boundary is its own small task; resolving PLC communication across the 192.168.1.x and 192.168.2.x subnets covers it with the same two ranges this fault produces.
Faults that look like this one #
- The scan finds no device at all, with no RPC abort: that is the naming and driver side, not an overlap, and Fix ctrlX CORE PROFINET device not found with XF10 connected covers that symptom.
- Ping answers but the scan comes back empty: the IP path is fine and the PROFINET identity is not, and why ping succeeds but the PROFINET device is not found separates the two layers.
- The abort returns on a different port after a cable or project move: re-run the pairwise range check, because the collision follows the adapter configuration, not the port label, and readdressing the colliding pair removes it instead of relocating it.
Questions asked
Why does the scan still find the device before the abort?
The scan opens with a DCP name lookup that runs at Layer 2 and needs no IP address, so the device answers even with colliding ranges. One proof: a device whose address was never set still answers, and the port browse then shows 0.0.0.0. The abort arrives one phase later, at the RPC connection setup, which is the first step that sends IP-addressed telegrams.
Does the device need a static address in its own web interface?
No. The controller project carries the device's IP parameters, so filling them into the Ethernet node works even when the browse there shows 0.0.0.0; the address then exists only while the project runs. A static address on the unit is optional, but it keeps the address visible in the connectivity overview while the PLC program is stopped, which makes later diagnosis faster.
Which priorities should the two PROFINET tasks use?
Set Profinet_communicationTask to 37 and Profinet_IOTask to 30, the values recommended for the CODESYS PROFINET controller stack. Both task objects appear in the project tree as soon as the controller is added. Make the same change in the device-side project, because the device stack schedules its own copies of the two tasks.
Can the fault come back after moving the cable to another port?
Yes. The collision lives in the address configuration, not in the port hardware, so a move to a port whose range is clear connects today and the same overlap misdirects the next change. After any such move, run the pairwise range check on all adapters and readdress the colliding pair; that removes the fault instead of relocating it.


