IMDHMIControls LibraryShop main store

Troubleshooting

Why FSoE plugs stop the EtherCAT bus reaching OP mode

Industrial networks Published 6 min read By IMDHMI controls team

Short answer

Adding an FSoE plug beneath a ctrlX DRIVE changes the output process image the CODESYS EtherCAT master writes into SyncManager 2, and the drive rejects the new telegram: the bus stays out of OP, the master logs Invalid Output Mapping, and the drive flashes C0104. Put the plug directly under each drive, match the safety-enabled layout in expert mode, write S-0-0924 from the slave startup list, and carry the safe data in both directions.

On this page
  1. What C0104 reports
  2. Why the plug changes the mapping
  3. The physical chain and the baseline image
  4. Plug placement and the expert layout
  5. The S-0-0924 startup write
  6. Bidirectional FSoE channels
  7. The decision for each case
  8. Questions asked

Adding an FSoE plug beneath a ctrlX DRIVE changes the output process image that the CODESYS EtherCAT master writes into the drive's SyncManager 2. When the new layout is not a telegram the drive supports, the drive refuses the configuration on its way to OP: the CODESYS log shows Invalid Output Mapping or Invalid Output Data, the drive flashes C0104, and the bus never reaches OP. Remove the plugs and the reduced image goes straight to OP, which is why the fault tracks the plug. The repair has four parts: the plug sits directly under each drive, the safety-enabled layout is matched in the expert process-data view, the safe data moves in both directions, and the slave startup list writes S-0-0924.

What C0104 reports #

The drive documentation lists C0104 as Config. IDNs for MDT not configurable. For EtherCAT the stated cause is an incorrect SyncManager 2 configuration, and the documentation says the fault can only be corrected by the master device. SyncManager 2 is the output window, the process data the master writes into the drive every cycle, and the MDT is the master data telegram carried in it. The flashing code is the drive stating that the output telegram it was handed does not match any configuration it can accept.

That matches the master side of the reported case: with the plugs added, the log showed Invalid Output Mapping on both drives, and Invalid Output Data while the drives flashed C0104. Record both messages exactly as displayed; they name different checks, and neither names the offending entry. The decision for this code: stop editing drive parameters. The item to fix is the master's output mapping.

Why the plug changes the mapping #

Without the plug each drive exchanges its ordinary motion telegram, and in the reported case that reduced configuration reached OP on the master bound to XF12. The FSoE plug adds safety channels to the same slave: safe outputs sent to the drive and safe inputs returned. The output side is exactly what SyncManager 2 configures, so a plug that is present but wrongly laid out turns a working mapping into a rejected one between one download and the next.

FSoE data has a fixed structure: safe data sections of at most 16 bits, each followed by a 16-bit CRC, and a safe value wider than 16 bits is split into several sections. That structure tells you the bytes the plug must add.

Illustrative example. Give each drive one 16-bit safe output and one 16-bit safe input. Output direction per drive: 16 bits of data plus 16 bits of CRC = 32 bits = 4 bytes. For the case's two drives that is 2 × 4 = 8 bytes added to the master's output image, and the same arithmetic adds 8 bytes to the input image. A 32-bit safe output doubles its own share: two sections, 2 × (16 + 16) bits = 64 bits = 8 bytes in that direction alone. Hold these counts against the expert-mode list: an entry twice the defined size, or the right bytes in the wrong order, is what the drive refuses.

A worked configuration of this exact pairing is walked through in a configuration walk-through for the CODESYS EtherCAT master with SAFEX and drive FSoE plugs.

The physical chain and the baseline image #

Clear the layer below the mapping before touching safety data: a missing slave, a wrong physical order or an unstable link blocks OP on its own.

  • Compare the connected slave order with the CODESYS device tree, with XF12 confirmed as the selected master interface.
  • Check link state and that every slave is visible to the master.
  • Save the configuration that reaches OP with the drive plugs removed; it is the diagnostic baseline.
  • Restore the plugs and record which slave rejects first and at which state transition.

The check for this layer is repeatable OP on the reduced image. The baseline proves the chain moves the smaller telegram and nothing more: the drives carry no safe data in it, so it is a diagnostic state, never a configuration to run the machine on.

Plug placement and the expert layout #

  • Add the safe-data plug directly beneath each drive in the device tree, in the position the device description requires; a plug placed elsewhere adds channels the drive never sees.
  • Read each drive's online identity and compare it with the installed EtherCAT Slave Information (ESI) file, using the compatibility details in the documentation rather than a similar name.
  • Open the expert process-data view (the CODESYS help page is titled EtherCAT Slave – Expert Mode Process Data) and inspect the PDO assignment and mapping the plug produced.
  • Compare channel count, direction, byte length and order with the working ctrlX EtherCAT configuration for the same drives; the screens differ between masters, so compare data, not tree pictures.
  • Confirm that receive and transmit safety data are both present on every drive.

The check for this layer: the online identity, the selected description and the channels the plug created agree, and the FSoE entries match the working configuration byte for byte.

The S-0-0924 startup write #

The drive-side correction in the reported case was a required write of S-0-0924 during startup: the drives came up once the master wrote it. The startup list of an EtherCAT slave in CODESYS holds the CoE writes the master executes while bringing the slave up, and that is where the entry belongs.

  • Look for an entry targeting S-0-0924 in each drive's startup list.
  • Take the required value and write conditions from the drive documentation or the working master's configuration; the identifier alone does not make a valid entry, because the data representation, the state the write is allowed in and the value all matter.
  • Add or correct the entry using the drive's supported parameter access.
  • Restart the EtherCAT master and confirm the slave accepted the write; a configured entry is not proof. Read the parameter back where the drive supports it and check that initialization passes the earlier failure point.

The standard MDT parameter set for position control does not replace this write: a valid motion data list proves the telegram contents, not that every startup action ran.

Bidirectional FSoE channels #

The safe data must move both ways between the SAFEX and each drive. The ctrlX master builds that exchange with its slave-to-slave dialog; on the CODESYS master you configure the equivalent cross-mapping or move the data through PLC variables, and the channel-to-variable assignment is what Map physical I/O channels in CODESYS V3.5 covers. A bus that holds OP with the connection still down is a different fault layer: continue with why an FSoE connection is not established on a safety PLC.

The decision for each case #

Observation Decision
OP with the drive plugs removed, Invalid Output Mapping with them added Keep the plugs in place. Match the expert layout to the ESI and the working configuration, then add the S-0-0924 write. Do not strip the plugs to run.
Invalid Output Data while both drives flash C0104 A SyncManager 2 mismatch. Correct the master's output mapping; no drive-side edit clears it.
Layout matched and the write accepted, still no OP Re-read the drive's online identity against the installed ESI file; a mismatched description rebuilds the wrong mapping.
OP reached, FSoE connection down Move to the connection layer: both-direction channels and the SAFEX-side diagnostics.

In the case this article follows, the sequence that worked was: chain verified, baseline saved, plugs placed under each drive with the expert layout matched to the working ctrlX configuration, S-0-0924 added to each drive's startup list, and the safe data cross-mapped in both directions. The drives then accepted the safety-enabled image, and the bus reached OP with the plugs in place.

Questions asked

Is the C0104 on the drive display the same fault as compiler error C0104?

No. On PLC builds the same number is a compiler error: more data memory is in use than is available, or the memory is too fragmented after incremental builds. A drive flashing the code during EtherCAT startup is showing the output-telegram fault instead. Where the code appears decides which documentation page applies, so a search on the bare number alone will land you on the wrong page.

What cycle time can the master run with these drives?

ctrlX DRIVE documents a minimum EtherCAT cycle time of 250 µs and supports the DC Mode Sync0 scheme, where the slave application synchronizes to the Sync0 signal. Keep the master task at or above that floor, for example 1 ms. The mapping rejection is not a timing fault: a slower cycle will not clear the drive fault, and a faster one below the floor is not supported.

Can you set S-0-0924 by hand instead of in the startup list?

Setting it once through the drive's parameter interface proves the value, but it is not the fix. The startup-list entry runs every time the master brings the slave up, so initialization stays reproducible after a power cycle or a master restart. A manual value gets one boot through and masks the incomplete startup list until the next cold start, when the fault returns with it.

Keep reading

  • Troubleshooting

    Why ctrlX I/O Engineering shows bits instead of byte mapping nodes

    The mapping tree follows the installed ESI descriptions. With only the Balluff BNI ECT-508-105-Z015's own ESI present, ctrlX I/O Engineering and native CODESYS both show bits; the byte nodes came from mixing other Balluff ESI files, a defect reported fixed in release 1.20. Map the bits now and update the tool.

    Industrial networks

  • Troubleshooting

    Why EtherCAT analog I/O fails after an ESI update

    An ESI file only describes a module to the engineering tool; it never updates the EtherCAT Master runtime, so mixing description versions cannot fix a coupler that fails its state transition. Enable Slaves have to reach master state, read the first failing slave in Bus Diagnosis, then update the whole software set: the reported installation, running ctrlX Works 1.12.10 with EtherCAT Master App 1.12.3 and ESI 1.12.0, operated only after the update to release 1.20.

    Industrial networks

  • Troubleshooting

    Fix a GT1-DA04 analog output over a 1756-DNB scanner

    Set the DRT1-COM polled connection to 14 input bytes and 10 output bytes, put the channel word at the right byte pair — analog output channel 0 is output bytes 2–3, word 1 of five — and scale 0–6000 counts across 4–20 mA, 375 counts per mA. When the DINT image shows the value and the terminal still reads 0 mA, the fault is the DIP range or module power, not the mapping.

    Industrial networks