Troubleshooting
Why CODESYS PROFINET to SINAMICS S120 reports CF81FD06
Short answer
On this combination CF81FD06 appeared because the CODESYS PROFINET controller was cabled into XF52, a port the hardware reserves for EtherCAT, while the device scan still passed. Moving the drive connection to XF12 restored the cyclic connection. Check each Ethernet port's documented protocol role before chasing station names, GSDML or process data lengths.
On this page
- What CF81FD06 marks on this combination
- Why a passing scan proves almost nothing
- The port check: read the label, then that controller's manual
- Worked case: an S120 that scanned on XF52 and ran on XF12
- The four software checks, in the order the timeout suggests
- Codes that share this diagnosis
- Restarting after the port move
- Questions asked
CF81FD06 on a SINAMICS S120 driven from a CODESYS PROFINET controller came from the cable, not the drive configuration: the cable sat in XF52, a port the controller hardware reserves for EtherCAT, and the code appeared the moment execution started. The device scan had already found the drive, which is what makes this fault misleading. Moving the connection to XF12, the port documented for PROFINET on that hardware, cleared it. When a scan passes and cyclic establishment fails on a multi-port controller, check the documented protocol role of the connector before you touch the station name, the GSDML or the process data lengths.
What CF81FD06 marks on this combination #
In the reported case the S120 raised the code only when the CODESYS PROFINET controller started execution; the scan had finished, and the fault arrived with the cyclic connection. The fault text carries its origin with it: the line names the PROFINET controller as version 4.6.0.0, and that number identifies the CODESYS controller stack, not firmware in the drive.
On the controller side the same failure surfaces as a CMI timeout: the handshake the PROFINET controller sends during establishment did not receive the device's reply in time. Read that as a stage marker, not a verdict. Establishment is the stage where PROFINET, standardized in IEC 61158, builds its cyclic exchange as an application relation the device accepts or refuses, so a failure there leaves four standard suspects: station name, process data lengths, GSDML, and the network path. In this case the network path failed at a connector.
Why a passing scan proves almost nothing #
A scan sends discovery traffic and reads identification back. Establishment is a different stage: the device must accept the configured station name, agree the input and output lengths, and take up the cyclic relationship inside the protocol's timing. Discovery tolerates a loose path; establishment does not.
The misleading part is that discovery traffic reached the drive over that same mis-seated cable in the reported case. Why discovery tolerated the EtherCAT-reserved port is not documented for this hardware, so give the scan exactly the credit it earns: the cable reaches the runtime and a device answers, nothing more. The same stage split shows up elsewhere on this bus, in devices lost but still pingable in CODESYS V3 and in a pingable PROFINET gateway that reports a parameterization error; both are scan-passes, communication-fails patterns.
A link LED cannot arbitrate any of it. An RJ45 port lights its LED on physical-layer activity whatever the frames carry, so a lit LED at both ends is fully consistent with a cable in the wrong port.
The port check: read the label, then that controller's manual #
Multi-port controllers assign each Ethernet port a protocol role. On the hardware in this case, XF52 is reserved for EtherCAT and PROFINET belongs on XF12; the diagnosis also referenced XF50, a third port, when asking what else hung on the controller's internal network. That map belongs to that hardware alone. Do not carry it to another controller and do not take it from the drive manual: find the printed label at the controller end of the cable and read the port assignment in your controller's own documentation.
The order is physical first on any industrial network; a ControlNet cabling guide for a 1769-L35CR controller runs the same sequence on a different network, physical connection before protocol diagnosis. For this fault the check collapses to one line: if the label at the controller end names a port documented for any protocol other than PROFINET, move the cable before touching a single software setting.
Worked case: an S120 that scanned on XF52 and ran on XF12 #
Inputs, all from the case report on this fault:
- Scan: passed; the drive answered discovery.
- Execution start: the S120 reported CF81FD06.
- Reporting software: CODESYS PROFINET controller, version 4.6.0.0.
- Cable: seated in XF52 at the controller end.
- XF52 documented role on that hardware: EtherCAT.
- XF12: free, documented for PROFINET.
Rule, in words: a cyclic PROFINET connection can establish only through a port whose documented role is PROFINET, and a passing scan is not evidence about a port's role.
Elimination, step by step: the timeout leaves four suspects, which are the station name, the process data lengths, the GSDML and the network path. Test the physical discriminator first. XF52's documented role is EtherCAT; EtherCAT is not PROFINET; therefore establishment through that port is out of specification before any software value is read, and one check removes the network branch and predicts the fix. No station name, length or description file can repair a connector dedicated to another protocol.
Result: the cable moved to XF12, execution restarted, and the cyclic connection held without the code returning.
Decision: scan passes, establishment fails on a multi-port controller, so check the port's documented protocol role first. Role anything other than PROFINET: move the cable, restart, done. Role PROFINET: the four software checks earn their hour.
The four software checks, in the order the timeout suggests #
- Station name. PROFINET identifies the device by its station name, and a missing or mismatched name blocks establishment while the scan still shows the device. Read the name stored in the drive, compare it character for character with the project entry, and make one side match the other.
- Process data lengths. The controller's output length must equal the length the drive is configured to receive, and the drive's return length must equal what the controller expects; byte counts that match with fields in the wrong positions still leave a drive that talks and misbehaves. Map every channel before blaming the cable: the walkthrough on mapping physical I/O channels in CODESYS V3.5 shows where the assignment lives.
- GSDML. The description file must match the installed control unit and its configured modules; a discoverable device still refuses an association that requests a layout it does not provide. Confirm which revision the project actually holds, because the GSDML install route decides what the device repository shows.
- Network path. Ping the drive from the controller's own diagnostics, as the case report did. A reply clears addressing; it does not validate the name, the lengths or the cyclic link.
In the reported case all four came back clean. The connector was the fault.
Codes that share this diagnosis #
On the same pairing, a CODESYS PROFINET controller with a SINAMICS S120, CF81FD12 has been reported in place of this code. CF81FD12 aborts the association request on a protocol violation; both codes mark establishment, so the same order applies: port first, then name, lengths and description.
A SINAMICS G120 on a PROFINET bus shows the drive-side face of the same missing cyclic link as fault A08526. That code's timing and fixes are covered in why a PROFINET drive reports A08526 no cyclic connection.
Restarting after the port move #
Change one thing at a time. The port move alone cleared this fault: apply it, restart execution, and leave name, GSDML and lengths untouched unless the code returns. Let the connection hold through a complete stop and start before you call the machine ready.
One safety note: when the cyclic link drops, the S120 executes its configured communication-fault response, so confirm that response is a safe stop before you cycle the drive during these tests, and keep personnel clear of the axis until the link has held through a full cycle.
If the code returns with the cable in the correct port, capture the fault text and a controller system report before the second change, so the remaining causes separate in one pass.
Questions asked
Is CF81FD06 a fault inside the S120?
Treat it as a symptom of failed connection establishment, not a drive defect. In the reported case the drive hardware was never replaced: once the cable moved to the port documented for PROFINET, the same device held its cyclic connection without the code. The drive raises the message because it is the side that never received the established relationship the controller asked for.
Can one CODESYS controller run PROFINET and EtherCAT together?
Yes, on separate ports and separate interfaces as the hardware documents. Both protocols ride standard Ethernet cable, which is why any port lights a link LED, but each physical port serves the protocol role its documentation assigns. The fault in this article is exactly that mistake: a PROFINET cable seated in a port reserved for EtherCAT.
Does a ping reply clear the drive for commissioning?
No. A ping proves only that an IP path exists to whatever answered; it cannot check the station name, the agreed process data lengths or the cyclic connection. In this fault the scan had already passed and the drive still reported the code when execution began. Use a ping to rule out addressing, then test the cyclic link by running execution and watching for the code.
What belongs in the system report for this fault?
Record five items: the exact fault text with its code, the PROFINET controller version named in that text, the printed connector label the drive cable actually uses, the network interface the runtime binds PROFINET to, and the controller's own system report. With those five, a port assignment error separates from a station name mismatch, a length difference or a description file mismatch in one pass.
You moved the cable and the code came back. What comes next?
Then the port was not the whole story and the four software checks take over in order: station name, process data lengths, GSDML match, network path. Compare the name character for character, check each direction's length separately, confirm the description file matches the installed control unit, and ping the drive from the controller's diagnostics. Capture the fault text and a system report before a second change.