Troubleshooting
Why ping succeeds but the PROFINET device is not found
Short answer
A successful ping tests IP reachability only. The controller identifies a PROFINET device by the device name stored in it, matched over PN-DCP, so an adapter with a valid IP but an empty or mismatched name stays "not found". Read the stored name, assign the configured name, verify the subnet and slot layout, then compile and download again.
On this page
A green ping and a red "device not found" are not a contradiction. Ping tests one thing: whether an IP address answers. A PROFINET controller identifies an IO device by the device name stored inside it, matched over PN-DCP discovery. Set a valid IP on the adapter and the ping replies; leave the PROFINET device name empty or different from the project and the controller never attaches, no matter how healthy the IP layer looks. The fix is to read the stored name, assign the configured name with the engineering tool's name-assignment function, then verify the subnet and the slot layout before you compile and download again.
What ping proves and what the controller actually matches #
PN-DCP is the discovery protocol PROFINET uses to find devices and read basic identity: device name, vendor ID and IP configuration. LLDP complements it for neighbor discovery on the port. When your controller starts cyclic exchange, it sends out the configured device name and waits for the physical device that carries exactly that name to answer. Ping does none of this: an ICMP reply comes back from any reachable address, named or not.
That is why the symptom in front of you — the controller reports the device as not found while a ping from the engineering computer succeeds — points at identity, not at wiring. It also explains why setting the IP address alone never closes the gap: an address can be reachable while the controller still rejects the device identity or the IO arrangement. The same reachability-versus-identity split is what makes an HMI connection fail while ping succeeds, as described in the page on resolving TIA Portal HMI connection failures when ping succeeds.
The check order #
Work the list top to bottom; each step either clears the fault or moves you to the next one.
- Open the controller's online diagnostics and read the device-related diagnostic text. A device-identification fault means the name check below; a module-configuration fault means the slot check further down.
- Refresh the accessible-devices scan on the network interface of your engineering computer, and identify the adapter by its MAC address, not by IP alone.
- If the scan finds the adapter, compare its stored PROFINET device name against the name configured in the project. Assign the configured name if they differ or the stored name is empty.
- If the scan does not find the adapter, check the selected engineering interface, the cabling and switch path, and the adapter's network status LEDs first.
- Compare the controller's actual IP and subnet mask, the adapter's actual values and the project values; the worked example below shows the arithmetic.
- Compare the configured slot layout against what the installed GSD offers, including the input and output data lengths.
- Compile the hardware configuration, download it to the CPU, and read the diagnostics again.
Subnet arithmetic with the netmask #
For a local PROFINET IO connection, the controller and its IO devices sit on one subnet. Check this with the mask, not by eyeballing the addresses. Take a labeled example: the S7-1200 is at 192.168.0.1 and the 20-750-PNET adapter was set to 192.168.1.50, both with mask 255.255.255.0.
- 192.168.0.1 AND 255.255.255.0 = 192.168.0.0
- 192.168.1.50 AND 255.255.255.0 = 192.168.1.0
The two network portions differ, so the devices are in different subnets and the controller cannot attach the adapter as a local IO device even if a router happens to carry the ping. The decision from this example: change the adapter to an unused address inside the controller's subnet, such as 192.168.0.50, and correct the project entry to match before any download. An engineering computer on a third subnet can still ping both devices, which is exactly why the ping result tells you nothing about this check.
Assign the configured device name #
Open the project's network view in the "Devices & networks" editor, right-click the IO device and select "Assign device name" to open the "Assign PROFINET device name" dialog. The dialog shows the discovered devices; pick the target by MAC address or a supported identification function — blink or flash the device — so you write the name to the physical unit in front of you and not to a neighbor. Write the name, then refresh the accessible-devices scan and read the name back over DCP before you continue.
Two traps cost people time here. First, the display label in the project tree is not the assigned PROFINET name; read the network identity field and the device's stored identity separately. Second, every device on the segment needs a unique name — a duplicate makes the match ambiguous and can leave the controller attaching to nothing or to the wrong unit. If identification now succeeds but the controller still reports a fault, stop reassigning the name and move to the slot check; the fault has moved.
Check the GSD slot layout before the re-download #
Installing the GSD makes the 20-750-PNET available in the hardware catalog; it does not complete the IO configuration. Open the device overview, inspect the slots and subslots the GSD offers, and configure the input and output modules the adapter actually supports. Arbitrary buffer sizes are not a substitute for the adapter's documented layout. Read the resulting data lengths and PLC addresses from the device overview.
As a labeled example of what a mismatch looks like: suppose the catalog entry offers an 8-byte input module in a slot and the project has a 4-byte module there. The controller then expects 4 bytes of cyclic input per update while the adapter produces 8 — a 4-byte difference that holds the device out of cyclic exchange until both sides match. The real module sizes and supported arrangements for the 20-750-PNET come from its own documentation and the GSD; check them there rather than assuming any size.
| Case | What it proves | Next check |
|---|---|---|
| Ping OK, scan finds the adapter | Basic reachability from the engineering station | Stored device name versus configured name |
| Ping OK, scan finds nothing | IP reachability only; discovery path is broken | Engineering interface, cabling, switch, adapter LEDs |
| Name matches, module fault remains | Identity resolved; IO arrangement differs | GSD selection and slot layout |
| IO healthy, drive does not respond | Network commissioning is done | Control source and mapped drive data |
Compile, download, and read the diagnosis again #
Place the machine in its approved commissioning state before you transfer anything — a download to the CPU changes the active configuration a running drive depends on. Confirm the adapter is assigned to the intended PROFINET IO system in the network view, compile the hardware configuration, and clear every configuration error before downloading to the CPU. Confirm the download target through its online identity and address. Editing the offline project changes nothing on the controller until that download completes; the name assignment, the compilation and the CPU transfer are three separate actions, each needing its own confirmation.
Then read the diagnostics again. If the identification fault persists, compare the actual adapter name with the downloaded configuration once more. If the fault changed to a module mismatch, return to the slot layout and correct the project. If the download instead reports a connect or parameter error, the S7-1200 connect-error page walks that distinct fault down. And if several devices drop while remaining pingable, the same identity-versus-reachability pattern in CODESYS networks is covered in the article on PROFINET devices lost but still pingable in CODESYS V3.
The decision for each case, stated plainly: valid IP, no stored name — assign the configured name; stored name differs — assign and read back; name matches but a module fault remains — fix the slot layout against the GSD; layout matches and the download is clean — the network is done and any remaining issue sits in the drive's control source and mapped data, not in PROFINET discovery.
Questions asked
Does installing the GSD file assign the PROFINET device name?
No. Installing a GSD file only adds the device to the hardware catalog so you can place it in the project. The name that the controller matches against is stored in the physical device and written with the Assign device name function in the Devices & networks editor. Installing the GSD and assigning the name are two separate steps, and skipping the second one produces exactly the ping-works-but-not-found symptom.
Can two PROFINET devices on one network share the same device name?
No. PN-DCP matches by name, so a duplicate name is ambiguous: the controller can attach to the wrong physical device or refuse both. Before you cable a second unit in, give it a unique name while it is the only new device on the segment, then read the name back over DCP to confirm which physical unit holds it.
A replacement adapter has the old IP set. Why does the controller still not find it?
The IP address is only half of the identity. A new or replacement adapter usually has no PROFINET device name stored in it, and the controller matches by name, not by address. Assign the configured name to the replacement, confirm the target by MAC address before writing, then read the name back. The slot layout comparison from the original commissioning applies again too.