IMDHMIControls LibraryShop main store

Troubleshooting

Why a ctrlX CORE PROFINET scan finds an HMC but no data flows

Industrial networks Published 6 min read By IMDHMI controls team

Short answer

A scan finds the HMC because DCP never reads the GSDML; the connect request then carries module and submodule identifiers the firmware does not implement, and no cyclic data flows. The confirmed fix on a ctrlX CORE is HMC firmware 20V24.30 with the 01V01-20180907 GSDML (schema V2.25), added offline from the device repository and verified with a forced output word.

On this page
  1. What a scan proves and what it does not
  2. Where the chain breaks
  3. Check 1: run another PROFINET device first
  4. Check 2: add the HMC offline, never from the scan result
  5. Pairing HMC firmware 20V24.30 with GSDML 01V01-20180907
  6. Check 3: prove the AR, not just the green light
  7. When to stop and escalate
  8. Questions asked

A PROFINET scan that finds your HMC proves exactly one thing: the device answers DCP identification requests. Cyclic data needs a second step, the connect request, which lists the module and submodule identifiers taken from the GSDML you imported. The HMC compares that expected list against what its firmware actually implements and rejects the connection when they differ, so the link, the name and the address can all be healthy while zero process data moves. The fix confirmed on this controller, a ctrlX CORE on firmware VRS 1.20.0, is to pair HMC firmware 20V24.30 with GSDML 01V01-20180907 (schema V2.25), add the device offline instead of from the scan result, and prove the connection with a forced output word.

What a scan proves and what it does not #

PROFINET IO is standardized as IEC 61158 Type 10, with its communication profiles in IEC 61784-2, and it brings up every device in two separate steps. The controller first locates the device over DCP, the discovery and configuration protocol that reads and sets the station name and IP address; DCP never opens the GSDML. Only then does the controller send a connect request for the application relation (AR), and that request lists the expected modules and submodules exactly as the imported GSDML defines them. The device answers with its real identification, the modules its firmware implements, and when the expected list and the real list differ it refuses the connect and reports a configuration fault. That is why the scan, the ping, the name and the address can all succeed while the AR never establishes.

Where the chain breaks #

Work down this list in order; each item names what supplies the value and what a wrong value looks like:

  • GSDML revision in the CORE device repository. A wrong file produces the import warning and, once the device is copied in from the scan result, a device that cannot be deleted from the project.
  • HMC firmware string. When its module identifiers differ from the GSDML's, the connect is rejected and no data exchange starts.
  • Station name. Written by DCP; a mismatch means the controller cannot resolve the device and no AR is established.
  • IP address and subnet. Assigned by DCP; a device off the subnet is visible in the scan but unreachable.
  • Module and submodule list in the project. A parameter endpoint fault appears and the AR drops or never starts.
  • Cyclic task. A stopped task leaves the AR up with frozen input words.

Check 1: run another PROFINET device first #

Before you touch any GSDML file, connect a device known to work, here a ctrlX DRIVE. When it reaches data exchange, the CORE, the CODESYS PROFINET controller, the cabling and the network port are all good, and the fault sits on the HMC side of the pairing. That is exactly what happened on this machine: the drive ran immediately, and that result is what justifies the firmware-and-GSDML hunt below. If the second device fails too, stop hunting files and fix the runtime, the adapter assignment and the physical link. And if the scan finds nothing at all, the fault is the name or the address, not the GSDML; that is the ctrlX CORE device-not-found case, a different checklist.

Check 2: add the HMC offline, never from the scan result #

With the wrong GSDML in the repository, copying the scanned device into the project raised errors and the HMC could not be deleted afterwards. Treat a project in that state as damaged: close it without saving and reopen the last saved version. Keep a saved copy before every import test.

Then change the import path:

  1. Remove the unwanted GSDML from the CORE device repository, or open a clean project, so the old definition cannot shadow the new one; the GSDML install route decides which repository entries exist.
  2. Import the GSDML that belongs to the firmware under test.
  3. Add the HMC offline from the device repository, not by copying the scan result.
  4. Assign the station name and IP with DCP afterwards.

If the offline-added device connects, the scan-import path was the whole problem. If it still refuses the connect, the GSDML and the firmware disagree, and the pairing example below decides which side to change.

Pairing HMC firmware 20V24.30 with GSDML 01V01-20180907 #

Inputs, with their source:

  • Controller: ctrlX CORE, firmware VRS 1.20.0, CODESYS PROFINET controller, from the machine under test.
  • Failing HMC firmware: FWA-HYDRV*-HDM-20V18-D5-1-SRV-ML, read from the HMC itself.
  • Failing GSDML: GSDML-V2.4-Bosch_Rexroth_AG-011F-HydraulicDrive_03V00-20210608.xml, the file imported into the CORE.
  • Working HMC firmware: FWA-HYDRV*-20V24.30-D5-1-SRV-ML, from the same HMC after the firmware change.
  • Working GSDML: GSDML-V2.25-Bosch Rexroth AG-011F-HydraulicDrive_01V01-20180907.xml, schema V2.25.
  • Control: the same CORE, cable and port ran a ctrlX DRIVE with data exchange.

The rule: change one variable at a time and keep the project, the cable and the port fixed. The connect succeeds only when the module and submodule identifiers in the GSDML equal the real identification the HMC firmware reports.

The tests, written out:

  • Test 1: firmware 20V18 plus GSDML 03V00-20210608 gives scan success, import warning, refused connect, no data exchange.
  • Test 2: firmware 20V24.30 plus GSDML 01V01-20180907 gives an established AR and running data exchange.

Further combinations were tried during troubleshooting but not recorded; the two documented endpoints are enough for the decision.

Result: the working pair delivers data exchange on this controller.

Decision, with its threshold: if the offline-added HMC shows connected in the controller diagnostics with no module or submodule fault flag, and your forced output word appears in the HMC diagnostics, the pair is confirmed; record both strings in the machine documentation and stop. If that same pair still refuses the connect on your unit, the pairing is not the fault; stop swapping files and escalate with the data in the last section. Do not carry this pair over to other HMC variants: the supported firmware-and-GSDML combinations for your unit come from the HMC manufacturer's documentation for that firmware generation.

Check 3: prove the AR, not just the green light #

Read the device status in the CODESYS PROFINET controller view: it must show connected with no module or submodule fault flags. Then force a known value on an output word and read it back in the HMC diagnostics, and change a value in the HMC and watch the input word in the CODESYS watch window. Finally pull the cable and reconnect it: the device must recover without a download. If it returns only after a download, the station name is not stored persistently in the HMC; write it with DCP so it survives a power cycle. A green device with frozen inputs means the cyclic task that updates the process image is stopped or starved; see CODESYS PROFINET task priorities on a ctrlX CORE.

When to stop and escalate #

Stop once two things are confirmed: another PROFINET device exchanges data on the same controller, and the offline-added HMC with the documented pair still refuses the connect. Collect the HMC firmware string, the GSDML file name, the CORE firmware version and the complete diagnostic text from the failed import. The supported pairing for your HMC firmware has to come from its manufacturer; hand over those four items plus the two confirmations and you get an answer instead of a request for more tests.

Questions asked

The scan does not find the HMC at all. Is this the same fault?

No. This fault needs the scan to succeed first: the device answers DCP but refuses the connect. A device that answers neither name nor identification requests has a cabling, station-name or address problem, and no GSDML change will bring it back. Set the name and IP with DCP and check the physical link before you touch the device repository.

Can the newest GSDML replace an older one for older firmware?

Not reliably. The failing file here is dated 20210608 and the working one 20180907, so the newer file lost against the older one. Module and submodule definitions follow the HMC firmware generation, not the file date: pick the GSDML published for the firmware generation you run, then prove the pair with a forced output word.

The device shows green but the input words are frozen. What is wrong?

The application relation is up but the process image is not updating. Either the cyclic task that calls the PROFINET update is stopped or starved by a higher-priority task, or the configured module list does not match what the HMC delivers. Confirm the task is running and calls the bus update every cycle before you suspect the GSDML.

Why must the HMC recover after a cable pull without a project download?

Because the station name has to be stored in the HMC itself. A device that returns only after a download was holding its name from the controller session, and it will disappear again after a power cycle. Write the name to the HMC with DCP, power-cycle it and scan again; the device must come back on its own.

Keep reading

  • Troubleshooting

    Fix PROFINET devices lost but still pingable in CODESYS V3

    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.

    Industrial networks

  • How-to

    Run a PROFINET controller beside an EtherCAT master on ctrlX CORE

    Yes. The CODESYS Fieldbus Communication add-on is hardware independent, so the PROFINET controller runs on any standard Ethernet port other than the one bound to the EtherCAT master. Install and license the controller role, import the camera's GSDML, and put controller interface and camera on one subnet; no hardware change is needed.

    Industrial networks

  • Explainer

    Why an S7-1200 firmware 2.2 cannot act as a PROFINET I-device

    An S7-1200 CPU on firmware 2.2 supports only the PROFINET IO controller role; the I-device role arrived with firmware V4.0, so the pair cannot be configured as controller and device. Exchange data now with GET and PUT, update both CPUs for the I-device test, and read the oscilloscope result as end-to-end application response time, with scan times dominating and wire time negligible.

    Industrial networks