IMDHMIControls LibraryShop main store

Troubleshooting

Why a standard NIC driver fails with CODESYS Control RTE fieldbus

Industrial networks Published 6 min read By IMDHMI controls team

Short answer

CODESYS Control RTE does not talk to a fieldbus through the ordinary Windows NIC driver: it needs a CODESYS network driver for a supported chipset, selected by hardware ID, added to CODESYSControl.cfg and followed by a reboot. Control Win instead uses packet capture over any adapter. Ordinary Ethernet working proves nothing about the fieldbus path.

On this page
  1. Which runtime are you actually running
  2. Which chipset the Control RTE driver list covers
  3. Matching a Realtek PCIe GBE adapter to a driver: worked example
  4. The installation steps that people skip
  5. When the driver is right and it still crashes
  6. The decisions, per case
  7. Questions asked

If PROFINET or EtherCAT fails under CODESYS Control RTE while ordinary Ethernet works fine on the same port, the cause is almost always the network-access layer: Control RTE needs a CODESYS network driver for a supported chipset, and the standard Windows NIC driver does not provide it. Control Win, on the other hand, reaches the fieldbus through a packet-capture component on top of any Windows driver. That split explains most of the confusing results during commissioning: a project that runs under Control Win on a virtual adapter can still fail on the physical target, and a runtime that starts and then throws an exception seconds later usually has the driver in place but a different fault underneath.

Which runtime are you actually running #

The fix depends entirely on this. Control Win V3 and Control RTE V3 have different network-access arrangements and different failure modes. Check the running executable and its version before touching any driver. A project validated under Control Win proves nothing about the Control RTE driver path on the same hardware.

  • Control Win: uses the normal Windows adapter driver plus a packet-capture component (WPcap in the versions discussed here). Any manufacturer's adapter works; if the fieldbus does not start, install the packet-capture package required by your runtime release and select the correct adapter in the fieldbus configuration.
  • Control RTE: needs a CODESYS network driver bound directly to the controller, chosen from the supported chipset list, plus an entry in CODESYSControl.cfg, followed by a reboot.

PROFINET real-time traffic and EtherCAT both live below the ordinary IP socket layer — PROFINET exchanges link-layer frames, EtherCAT talks raw Ethernet. Successful ping, web access or file transfer therefore validates nothing about the fieldbus path.

Which chipset the Control RTE driver list covers #

The supported-code set for the CODESYS network drivers groups by chipset, and the driver component name is what you add to the configuration:

  • CmpRTL81x9Mpd — Realtek 8139 and compatible controllers; the 8100 and 8110 are also listed as compatible.
  • CmpRTL8169Mpd — Realtek 8169/810, RTL8111B, RTL8111D.
  • CmpEt1000Drv — Intel EtherExpress PRO/1000 family: 82541, 82547, 82567, 82571, 82573, 82574, 82583V, i210, i217-LM.
  • CmpEt100Drv — Intel EtherExpress PRO/100 family: 82551, 82557, 82559, 82558, 82550.

These drivers serve the EtherCAT master, the PROFINET controller, and the EtherNet/IP scanner and adapter roles under Control RTE. Note the letter suffix rule: an RTL8111E is not the RTL8111B or RTL8111D on the list. A vendor may tell you it "should work", but that is expectation, not a listed match — verify the device ID against the driver package on the real target before you build a machine around it. The designation 8169/810 is reproduced as published; do not expand it into extra models on your own.

Current Control RTE product documentation lists the supported families as Realtek, Intel PRO/1000-compatible, and Intel i210/i225/i226 for 2.5G, so check the list that ships with your runtime version — the set has grown over releases, and what applied to 3.5 SP7 does not bound later ones.

Matching a Realtek PCIe GBE adapter to a driver: worked example #

This is the case that starts most of these threads: a panel PC whose Device Manager shows "Realtek PCIe GBE Family Controller", a name that covers a whole driver family and tells you nothing on its own.

Inputs: the adapter name as displayed (Realtek PCIe GBE Family Controller); the hardware ID from Device Manager, Details tab — for example PCI\VEN_10EC&DEV_8168; the runtime (Control RTE V3); the physical port the fieldbus cable is actually plugged into.

Rule: match the vendor ID and device ID in the hardware ID string to a chipset on the supported list, treating any letter suffix as part of the identity. The vendor ID 10EC is Realtek's PCI vendor ID, so the family is right; the device ID picks the part.

Arithmetic of the match: device 8168 belongs to the RTL8111 family, not the RTL8139 family, so CmpRTL81x9Mpd is out and CmpRTL8169Mpd is the candidate. But the list names RTL8111B and RTL8111D explicitly; a bare DEV_8168 without a revision-specific suffix is the generic RTL8111 entry, so you have a candidate, not yet a confirmed match. Cross-check the full hardware ID string, including any SUBSYS and REV portions, against the devices the driver package itself declares as supported.

Result: if the full ID matches a listed part, install CmpRTL8169Mpd over the Windows driver in Device Manager, add the component to CODESYSControl.cfg, reboot, and select that adapter in the fieldbus configuration. If the ID resolves to an unlisted part such as RTL8111E, the candidate is unproven: test it on the actual target with your runtime version, and if it fails, add a PCIe card with a listed chipset rather than gambling the project on an expectation.

Decision threshold: a full hardware-ID match to a listed device means proceed with the driver swap; a family match only means the driver is worth one test, never a deployment decision.

The installation steps that people skip #

The documented Control RTE path is: replace the adapter's Windows driver with the matching CODESYS driver in Device Manager, add the component to CODESYSControl.cfg, then reboot. All three matter — adding the component without the driver swap, or swapping the driver without the configuration entry, leaves the runtime without access. If the runtime then fails to load the fieldbus stack at all, the symptom looks different from a chipset mismatch; the errors around component loading and configuration entries are covered in fixing CODESYS RTE unresolved reference errors on EtherCAT download, and an adapter that cannot be opened at all is treated in fixing the CODESYS EtherCAT master adapter open error.

Before changing anything, confirm the selected CODESYS interface maps to the cable-connected physical port — trace the cable, check link LEDs at both ends, and compare with the adapter named in the fieldbus configuration. A virtual machine muddies this: the Intel PRO/1000 adapter visible inside VMware does not identify the physical controller in the target industrial PC.

When the driver is right and it still crashes #

In one documented case, the same PC ran the project under Control Win with both the default driver and the CODESYS CmpRTL8169Mpd driver, but Control RTE threw an exception 1 to 10 seconds after start. The NIC was fine — the fault was a runtime defect, fixed in a patch release (3.5 SP8 Patch 1 in that case). The decision rule: once the hardware ID matches, the driver is installed, CODESYSControl.cfg carries the component, and the machine has rebooted, a crash seconds after start points at the runtime release. Update to the latest patch of your version through the vendor's distribution channel before re-testing the hardware. For the same class of load-time failure on a different path, see why Control RTE reports unresolved references on login. Chipset-based NIC selection is a general real-time pattern, not a CODESYS quirk — the same logic drives PCI NIC selection by chipset support in LabVIEW real-time systems.

One safety note: swapping the network driver on the adapter that a running safety or production system depends on takes that link down. Do the swap during a planned stop with the machine in a safe state.

The decisions, per case #

  • Fieldbus fails under Control Win: install the packet-capture component for your runtime release, select the correct adapter, done. No driver swap needed.
  • Fieldbus fails under Control RTE, ordinary Ethernet works: identify the controller by hardware ID, match it to the supported list, install the matching CODESYS driver, add the component to CODESYSControl.cfg, reboot.
  • Controller is not on the list: fit an adapter with a listed chipset (a Realtek 8139-family part, an RTL8111B/D, an Intel PRO/1000-family part, or on current releases an i210/i225/i226) rather than running an unlisted part in production.
  • Everything correct, exception seconds after start under RTE: treat it as a runtime defect; update the runtime patch level before touching hardware again.

Questions asked

Does the letter suffix in a Realtek controller name matter for the CODESYS driver?

Treat it as part of the hardware identity. The Control RTE compatibility list names specific parts, for example RTL8111B and RTL8111D for the CmpRTL8169Mpd driver. An RTL8111E is a different device ID, so it is not covered by that listing; verify it against the driver package on the actual target before you commit it to a machine.

Why did Control Win work on the same PC when Control RTE crashed?

They reach the wire differently. Control Win sends frames through a packet-capture layer on top of the normal Windows driver, so almost any adapter works. Control RTE binds a CODESYS network driver directly to the controller, so a chipset mismatch or an incomplete driver swap shows up there first. A runtime exception seconds after start, once the driver and configuration are correct, points at the runtime release rather than the NIC; such defects have been fixed in patch releases.

Can one adapter carry fieldbus traffic and my office network at the same time?

Keep them separate when you can. Swapping the adapter's driver to the CODESYS one takes that port out of normal Windows networking until the driver is changed back, so management access such as remote desktop or a web server on that port drops with it. Put the fieldbus on its own port and keep a second adapter on the office network.

Where do I find the CODESYS network driver to install?

It ships with the Control RTE installation package, not through Windows Update. Use the driver from your installed runtime release, obtained from the vendor or an authorized distributor, and follow the Control RTE manual's installation steps in Device Manager. Do not pull a driver of uncertain origin for it; a wrong driver binary on a production PC is worse than a missing one.

Keep reading

  • Selection guide

    How to select a CODESYS fieldbus master for industrial Ethernet

    Select the master around the device, not the connector: the 750-340 is a PROFINET IO coupler, and a PROFIBUS station needs a different coupler. Confirm three matches — device protocol, runtime master package, supported network adapter — then size the bus cycle from the process budget; the worked example clears a 10 ms sensor-to-actuator budget at a 2 ms cycle and fails it at 4 ms. Bench-test a laptop NIC only if the runtime documents it.

    Industrial networks

  • How-to

    Configure ControlLogix MSG reads and writes to a PLC-5

    DH+ is peer-to-peer token passing, so there is no master or slave to configure: make the ControlLogix the single initiator with one MSG instruction per direction, each on its own MESSAGE control tag, configured as a PLC-5 typed read or typed write with the route browsed on the Communication tab. Verify the transferred value at the destination address, not the online session.

    Industrial networks

  • How-to

    Exporting the GSDML for a CODESYS PROFINET device

    Export the installed PROFINET device entry from the CODESYS Device Repository: the export writes a ZIP archive whose XML is the GSDML to install in the controller's engineering tool. Then reproduce the module arrangement there and match the device name and subnet before downloading.

    Industrial networks