A PROFINET Device Not Reachable After an IP Change: DCP, the Name, and What the Controller Looks For

A PROFINET Device Not Reachable After an IP Change: DCP, the Name, and What the Controller Looks For

The ET 200SP went from 192.168.0.12 to 10.20.4.52 in Devices & networks, the project compiled clean, the hardware downloaded, and the device view still reads Not reachable while the CPU answers happily on its own new address. The address you changed is not the address the controller uses to find that station.

A PROFINET IO controller finds its devices by device name, not by IP. It calls the name over DCP, the device that holds that name answers, and only then does the controller write the configured IP address into it. So an IP change in the project is not something the device has to be told about; it will be handed the new address at the next startup. A name change is something the device has to be told about, and if the name in the project no longer matches the name burned into the interface module, nothing on the segment answers the call and the address never gets as far as being assigned.

That is the whole mechanism, and everything below is how to prove which half of it broke.

The controller calling for the device name over DCP, getting no answer, and the two steps after it never happening

Drawn from the startup sequence, not from a capture. The IP assignment is step two; it is never reached because step one found nobody.

Written against STEP 7 Professional V18 and V19 with an S7-1200 CPU 1214C DC/DC/DC and an IM 155-6 PN ST. The dialog names move a little between TIA Portal versions, so read them as the shape of the thing.

The thing everybody does first, and it is almost never it

Online & diagnostics on the station, Functions, Assign IP address, type 10.20.4.52, press the button. It reports success. The device view still says Not reachable.

It reports success because the assignment genuinely happened. It changes nothing because the controller assigns the address itself at every startup, from the name, and will overwrite whatever you typed within seconds of finding the station. The function manual is plain about where the address comes from in normal operation: the controller assigns the configured name and the configured addressing to the device once it has identified it.

An IP you set by hand on an IO device lasts until the next startup and not one minute longer.

The same reflex has a second shape, which is rebooting the interface module twice and then suspecting the hardware. A module that answers DCP at all is alive enough to have its name read, and reading its name takes ten seconds.

Why the name matters more than the address

The device name is the identity because PROFINET chose names over addresses deliberately, and the function manual says so in as many words: the method was selected because it is simpler to work with names than with complex IP addresses. In delivery state an IO device has no device name, and it cannot be addressed by a controller until it has one. STEP 7 generates the name for you when you configure the station, derived from the name of the CPU or the interface module, so a device on an S7-1200 project commonly ends up as something like io-device_1 or plc_1.profinet-interface_2. You can restructure those names using DNS conventions, and the manual points at Internationalizing Domain Names in Applications for the rules, which is why device names are written in lower case and why a dot in the name is a hierarchy separator rather than decoration. Give a station a name that is not DNS-compliant and STEP 7 will quietly convert it, producing the sort of name nobody recognises later: plcxb1.profinet-schnittstellexb2022c

Advertisement
.

Rename the station in the project and the real interface module does not hear about it.

There is a second identifier that catches people out. STEP 7 also assigns a device number, starting at 1, visible in the Ethernet addresses area of the PROFINET interface properties. It is what LOG2GEO uses to identify a device from the program. It plays no part at all in finding the station on the wire.

The Ethernet addresses fields with the project name and the online name disagreeing

Our own drawing of the fields and their values, not a screenshot of the dialog. Two rows are highlighted because those two rows are the fault.

Why the list is empty when the CPU is online

This is the part that sends people looking for a broken module, and it is a property of the protocol rather than a fault.

Going online with the CPU runs over IP, and IP routes. Accessible devices and Assign PROFINET device name run over DCP, which sits directly on Ethernet with no IP header and no port number at all, addressed to a multicast MAC. A router does not forward it. A VLAN you are not a member of does not carry it to you. A wireless bridge may or may not, depending on what it does with multicast, and the honest answer for most plant wifi is that it does not.

So a laptop that reaches the CPU perfectly well over the plant network can see an empty Accessible devices list and there is nothing wrong anywhere.

Plug into the same switch as the interface module before you conclude anything from that list. If you have met this from the other side — a brand new CPU that does not appear at all — the empty Accessible devices list has its own page, because the first cause there is the PG/PC interface dropdown rather than the network.

Six checks, in the order that eliminates the most

Do them at the station, on a cable, in this order. The first three are one look at the same list.

  1. Compare the two names. Update accessible devices and read what the interface module calls itself. If that is not the name in the project, you have found it, and the fix is Online & diagnostics on the station, Functions, Assign PROFINET device name. The address follows on its own once the names agree.
  2. Check the list is not empty for the reason above. Empty plus a CPU you can reach means DCP is being stopped between you and the station, not that the station is dead.
  3. Count the entries. One name appearing twice is two interface modules answering the same call, which happens the day two identical machines get joined to one switch. Both controllers fault, and renaming from the project does not work because the project cannot tell them apart.
  4. Look at who is supposed to assign the address. In the PROFINET interface properties, IP address is set directly at the device means the controller assigns nothing and the station keeps whatever it was given by other means. Set that on a station and then change the IP in the project and the project number is fiction. The manual flags the matching trap on memory cards: save a configuration with that option and you have to assign the address by some other method after the card goes in.
  5. Check whether the controller is allowed to write names. There is an option named Permit overwriting of PROFINET device names of all assigned IO devices, supported from CPU 1215C DC/DC/DC firmware V4.0 upwards. With it enabled, the controller overwrites the device name on its assigned devices, checking first that the device type matches the configured type. With it cleared — the state most projects are in — you must assign the name at the device by hand whenever it changes in the configuration or a module is replaced. That single checkbox is the difference between a rename that needs a trip to the panel and one that does not.
  6. Read the diagnostic buffer, last. Not because it is useless but because it is slow, and because after a successful fix it often still shows the old failure as the newest entry, with the ERROR LED still flashing at you. Reading a diagnostics buffer entry properly is worth doing once on a quiet machine rather than for the first time on a stopped line.

A comparison table of what Accessible devices shows against the cause each symptom names

The left column is what is in front of you. Four of the six rows are settled without opening the diagnostic buffer at all.

What the option on the checkbox costs you

Enabling the overwrite option is the right answer for series machines and for device replacement, and the manual is careful about when it is not. Only select it when every configured IO device is present, every device is wired in accordance with the configured topology, and no device is jumpered out. Partial commissioning with the option on is how a station ends up carrying the name of the station next to it, and the manual carries a safety warning on exactly that point: an incorrectly connected device can be given a name from the configuration, and what is then wired to its outputs is not what the program thinks it is.

If names get assigned wrongly during a partial commissioning, correcting the wiring is not enough. They have to be deleted by hand afterwards.

There is a related mechanism that removes the trip to the panel entirely, and it is worth knowing before the next module fails. Device replacement without exchangeable medium lets the controller give a nameless device its name from the configured topology, by comparing the neighbour relationships it can see over LLDP against the ones drawn in the topology view. The replacement module has to be in delivery state or reset to factory settings for it to work, and the topology has to be drawn. Draw the topology once at commissioning and a spare interface module out of the stores becomes a plug-in part.

Advertisement

Next

Before you leave the panel, write down four things for the station you just fixed: the device name, the MAC address, the IP address, and whether the overwrite option is set in the project. Those four answer most of what the next person will ask.

Then draw the topology in the project if it is not there, because it is what turns a rename into a download and a module swap into a plug-in. If the network between the CPU and the station has grown switches since it was commissioned, what those switches do to PROFINET traffic is the next thing worth an hour, and a CPU whose device name never matched the project in the first place usually traces back to the order number and firmware picked when the project was created.