IMDHMIControls LibraryShop main store

Troubleshooting

Fix PROFINET devices lost but still pingable in CODESYS V3

Industrial networks Published 8 min read

Short answer

When both PROFINET devices still answer ping but the CODESYS V3 controller cannot find them in a scan, the fault is on the controller's receive path. The log line 'Ethercat packet receive error: sysethernet' is a runtime Ethernet-driver message, not an EtherCAT device — the device tree has none. Send clock and reduction ratio changes were already tested and ineffective, so keep the cold restart as interim recovery and escalate with correlated logs.

On this page
  1. Why do PROFINET devices still answer ping but vanish from the controller's scan?
  2. Is the 'Ethercat packet receive error: sysethernet' line really about EtherCAT?
  3. Why doesn't raising the send clock and reduction ratio fix this?
  4. What should you record while the devices are down?
  5. Can the CODESYS runtime re-establish PROFINET on its own after this error?
  6. How do you limit production losses until the root cause is found?
  7. What goes into the escalation package for the runtime vendor?
  8. Questions asked

When both PROFINET devices still answer ping but the controller's scan finds nothing, and only a cold restart of the CODESYS V3 runtime brings them back, the fault is on the controller's receive path — not in the field devices and not in the cyclic timing. The log line that confuses everyone, Ethercat packet receive error: sysethernet, is a runtime Ethernet-driver message; this project has no EtherCAT device in its tree. The send clock and the reduction ratio were already raised without effect, and the arithmetic below shows why that could never help at this bus load. Keep the cold restart as the interim recovery, capture the failure state properly, and escalate with correlated evidence.

Why do PROFINET devices still answer ping but vanish from the controller's scan? #

Because the two use different receive paths: ping is handled by the ordinary IP stack, which still works, while PROFINET discovery and cyclic exchange arrive through the runtime's raw-Ethernet path on the network adapter — and that path has stopped delivering frames to the master.

The failure boundary is fixed by three observations. Two electrically independent devices — a 16-input/16-output I/O block and a linear encoder — become unreachable at the same instant. During the outage, both still answer ping, so the cable, the switch, and basic IP forwarding are alive. A cold restart of the controller, touching neither device, restores both.

Two devices failing simultaneously and recovering together is the signature of the shared path: the controller side, specifically its ability to receive the raw-Ethernet frames PROFINET runs on. Ping never exercises that path, so a ping reply tells you nothing about it.

A scan that returns nothing also has commissioning-time causes, such as a device ID the runtime cannot read — Fix PROFINET device ID read errors in CODESYS scans covers those — but those appear at startup, not hours into production, and they do not heal on a restart.

Is the 'Ethercat packet receive error: sysethernet' line really about EtherCAT? #

No — with no EtherCAT device in the device tree, that line is a message from SysEthernet, the runtime component that gives the fieldbus stacks direct access to the network adapter, and its wording is shared code that says "Ethercat" regardless of which master logged it.

Treat the message as what it proves and nothing more. It proves a receive call through that adapter interface failed at that timestamp. It does not tell you which component above the interface broke, which is exactly what the escalation has to answer. Copy the string verbatim with its timestamps; a paraphrased log line is useless to support.

The same component emits a send-side twin, SysEthernet : packet could not be sent, and there are documented cases where the runtime reports the adapter open while a scan finds nothing at all — both keep the adapter and its binding on the suspect list, which is why it appears in the capture checklist below.

CODESYS diagnostics can mislabel in the other direction too: Why CODESYS EtherCAT master xError stays false on cable pull shows an EtherCAT fault flag that stays clean during a real cable fault. Read the label, then trust only the corroborating evidence.

Why doesn't raising the send clock and reduction ratio fix this? #

Because those settings only change the cyclic schedule, and the schedule is nowhere near a limit: two devices at a 1 ms send clock load a 100 Mbit/s link to roughly 1%, so stretching the cycle treats an overload you do not have.

The PROFINET application layer, standardized within IEC 61158 and IEC 61784, requires cyclic data exchange to run from one shared send clock, with each device receiving that clock divided by its reduction ratio. Those two numbers set the schedule. They cannot repair a receive path that has stopped delivering frames, and the load math says they were never near a limit anyway.

Worked check, with illustrative numbers and stated assumptions. The I/O block carries 16 digital inputs = 2 bytes and 16 outputs = 2 bytes; the encoder position is 4 bytes. Allowing 64 bytes per device per cycle to cover Ethernet and protocol overhead:

  • Traffic per send cycle: 2 devices × 64 B = 128 B
  • Fast setting, 1 ms send clock with reduction ratio 1: 128 B every 1 ms → 128,000 B/s × 8 bit/B = 1,024,000 bit/s ≈ 1.0 Mbit/s, and 1.0 Mbit/s ÷ 100 Mbit/s = 1.0% of the link
  • Slow setting, reduction ratio 32: send interval 1 ms × 32 = 32 ms → 128 B ÷ 32 ms = 4,000 B/s × 8 = 32,000 bit/s ≈ 0.03% of the link

Between 0.03% and 1.0% there is no overload to relieve, so the change was guaranteed to do nothing. Put both settings back to their commissioned values: a stretched cycle only slows control response.

What should you record while the devices are down? #

Five things, captured before the restart: the exact log lines with timestamps, a ping to each device from the controller, the scan result, the adapter the runtime is bound to, and the recovery sequence after the cold restart — together they localize the fault.

  • Copy the failing log lines verbatim with their timestamps, and note whether the send-side twin appears in the same window.
  • Ping each device by its address from the controller itself, not from an office PC, and write down both answers.
  • Run the PROFINET scan from that same runtime and record that both devices are absent while both answer ping.
  • Record which network adapter the runtime configuration selects, and whether any virtual, bridged, or Wi-Fi adapter exists that traffic could be landing on.
  • After the cold restart, note the time from reset to both devices reappearing in the scan and cyclic data resuming.

If the occurrences fall on a fixed time grid, list everything scheduled on that interval — backups, antivirus scans, network maintenance, spanning-tree events on the switch — because clockwork failures come from scheduled collisions, not random hardware noise. And if the fault ever appears at first power-up rather than mid-run, the first check is an address conflict, the failure mode traced in Fix the CODESYS duplicate controller IP error in ctrlX PROFINET.

Can the CODESYS runtime re-establish PROFINET on its own after this error? #

Not in the reported configuration: no runtime parameter of record rebuilds a failed raw-Ethernet receive path, the reconnect behavior that handles ordinary device-side loss never gets the chance to run, and the only demonstrated recovery is restarting the runtime.

A PROFINET controller does reconnect automatically after a normal device loss — device drops, device returns, data resumes. That mechanism presupposes the controller can still receive. Here the controller's own receive calls are failing, which sits above every reconnect timeout you could set. The decision: stop searching for a timeout setting, because this fault is not a timeout. If the runtime vendor later names a supported recovery for your exact build, use that; until then the restart is the fix of record for this symptom.

How do you limit production losses until the root cause is found? #

Detect the failure in logic and trigger the same cold restart deliberately: alarm when both devices miss for a fixed count of cycles, then issue the runtime's reset, which turns an unnoticed outage into a short, announced one and logs every event for the escalation.

Watchdog arithmetic: at a 1 ms send interval, 1000 consecutive missed cycles is 1000 × 1 ms = 1.0 s from failure to detection — longer than any legitimate reconnect, short enough to protect production. Count every automatic restart in a retentive counter; that count is escalation evidence, not just maintenance data.

One safety note: a runtime restart drives outputs to their configured initial state, so confirm the machine's safety functions do not depend on those outputs and that an unattended restart is acceptable under the machine's risk assessment before you automate it.

What goes into the escalation package for the runtime vendor? #

The correlated evidence plus the configuration: exact log text with timestamps and recurrence pattern, runtime version and build number, the panel PC's network adapter and driver, the adapter selected in the runtime configuration, and the two devices' description files and firmware.

  • The verbatim log lines and how often they repeat, including any fixed grid they fall on.
  • The runtime's version and build number, and the panel PC's network adapter model and driver version.
  • The device description files and firmware versions of the I/O block and the encoder.
  • The capture record from the checklist above: ping answers, failed scan, restart-to-recovery time.
  • If a managed switch is available, a mirror-port capture taken during a failure — frames reaching the switch while the runtime reports nothing received is the cleanest proof of a receive-path fault.

Ask two direct questions: which component in that runtime build emits the message, and whether a supported recovery shorter than a full runtime restart exists for it.

Decisions, case by case:

  • Field devices: leave both in the cabinet — the evidence does not accuse them.
  • Send clock and reduction ratio: back to commissioned values; load is under 1.0% either way.
  • Recovery: a supervised cold restart under a missed-cycle watchdog, until support names a shorter one.
  • Root cause: with the runtime vendor, using the package above.

Questions asked

Does a device answering ping prove the cable and switch port are healthy?

Only partly. A reply proves an IP frame made the round trip at that moment; it says nothing about receive errors or discarded frames on the port, and nothing about how multicast and broadcast traffic is handled. Check the switch's port counters for errors and discards before you clear the network entirely.

Should the I/O block or the encoder be replaced first?

Neither. Two electrically independent devices failing at the same instant and returning together after a controller restart is not how single-device hardware fails. Leave both in place, record the evidence, and spend the downtime on the controller side — swapping field devices here delays the escalation without testing anything.

Does it matter that the fault always happens around the same time?

Yes — recurrence on a fixed grid points at a scheduled event colliding with the receive path, not at random hardware noise. List everything that runs on that interval: backups, antivirus scans, network maintenance, spanning-tree events, anything time-triggered on the PC. Disable or move one at a time until the grid breaks.

Is an automated cold restart a permanent fix?

No. It caps the outage at a known, short duration, but the receive-path fault remains and will keep firing. Track the restart count and treat every rise in it as the reminder that the escalation is still open; the permanent fix is whatever the runtime vendor identifies from your log package.

What if only one of the two devices drops out next time?

Then the shared-path conclusion weakens and the search narrows. A single device that still answers ping while its PROFINET data dies points at that device's protocol stack, its switch port, or its addressing rather than the controller's receive path — capture the same evidence for that one device and compare it with the earlier double failure.

Keep reading

  • Troubleshooting

    Fix CODESYS PROFINET IP-change error on an S7-1200 link

    The station shows in the scan because DCP discovery answers, but the connection fails because the CODESYS runtime refuses the IP address the controller assigns. Enable the IP-address update for the bound Ethernet interface in the runtime's .cfg configuration and restart the runtime; the error names the fix itself. If you would rather not enable it, set matching fixed addresses on both sides.

    Industrial networks

  • Troubleshooting

    Fix PROFINET device ID read errors in CODESYS scans

    A device that answers DCP discovery can still fail the later RPC-based identity read, so the scan reports it cannot read the ID number. Capture one failed scan with the controller diagnostic log and let the trace pick the fix: adapter binding, a filter on the path, a rule for the returning process, or a runtime mismatch.

    Industrial networks

  • Troubleshooting

    Fix a Raspberry Pi PROFINET device not reachable in TIA Portal

    Discovery in TIA Portal's name-assignment dialog proves only that the Pi's link is visible. Reachability arrives when the CODESYS runtime lets the S7-1200 write the adapter address: set Adapter.0.EnableSetIpAndMask=1 under [SysSocket] in /etc/CODESYSControl_User.cfg, restart the runtime, and retry name assignment on a current runtime.

    Industrial networks