PROFINET Diagnostics and Topology: What's Really Going On

PROFINET diagnostics sit in the strongest tier among mainstream industrial fieldbuses, because they can locate down to port level: with the LLDP neighbour-discovery protocol, the controller knows who is connected to every port of every device. Comparing the actual topology with the configured topology, a broken cable, a wrong port or a neighbour mismatch can be pointed to directly. But this capability has a premise — topology configuration must be done. On a PROFINET network without topology, diagnostics fall back to the coarse grain of "a station has dropped". This article covers the 199PROFINET series; for configuration basics see PROFINET Basics: IRT and Device Name Assignment.

PROFINET diagnostics and topology: what is really going on
PROFINET diagnostics and topology: what is really going on

Topology configuration: the basis of diagnostics and replacement without programming

Topology configuration is drawing, in the engineering software, "which port connects to which port". Once done, three things follow:

  • Port-level fault location: the alarm will state directly that "the link between port 2 of device A and port 1 of device B is interrupted", rather than a generic station fault.
  • Device replacement without programming: after a new device is connected, the controller judges from its neighbour relationships which unit it ought to be, writes the device name automatically and downloads parameters. Replacing a sensor in the field does not require an engineering laptop — a high-value capability in production-equipment maintenance.
  • Wiring errors are exposed early: plugging a cable into the wrong port makes the controller report a neighbour mismatch immediately, rather than waiting for odd behaviour in operation.

The cost is that the topology is frozen: any cable change must be accompanied by a configuration change and a download. In IRT mode the topology lock is stricter still, because time-slot scheduling depends on a determined transmission path. This trade-off should be decided at the design stage; see the choice between RT and IRT.

Three layers of diagnostic information

LayerTypical informationHow it is obtainedPoints to
Network layerLink interrupted, neighbour mismatch, port error statisticsLLDP + topology comparisonA specific cable, port or connector
Station layerStation fault, device-name mismatch, AR connection failed to establishController diagnostic bufferDevice identity or configuration consistency
Module layerChannel diagnostics, parameter errors, vendor-defined faultsDiagnostic alarms reported by the deviceInternal device state

The recommended troubleshooting order is from the bottom up: first see whether the network layer has a link problem, then whether the station layer can establish a connection normally, and only then look at module-layer internal diagnostics. Starting the other way round with device fault codes often finds that the root cause was only a cable.

Frequent faults and how to handle them

SymptomCommon causeAction
Device never comes onlineDevice name not assigned / inconsistent with configuration / naming non-compliantScan with DCP, find the device by MAC, rewrite the device name
Connected but data is wrongDuplicate device name; connected to another device of the same nameConfirm by powering units down one at a time; standardise naming and keep records
Neighbour mismatch reportedCable in the wrong port / cable change not reflected in the configurationRestore wiring to the configured topology, or update the configuration in step
Intermittent station faults, watchdog timeoutUpdate cycle too short; network crowded by non-real-time trafficRelax the update cycle; isolate the control network from the office network
Port error count keeps risingPoor cable quality, oxidised RJ45, over-long runReplace that cable segment and connectors; use industrial-grade cable
No automatic recovery after device swapTopology not configured, or replacement without programming not enabledAdd topology configuration and enable the corresponding option
Position reading scaled wronglyResolution step conversion errorCheck the step (1/2/5/10/20/50/100 μm) and the conversion formula

A common mistaken question about terminating resistors

Engineers often ask: "Do both ends of a PROFINET segment need 120 Ω terminating resistors?" The answer is no. Terminating resistors are a requirement of bus-type physical layers such as CAN and RS-485 — several nodes hang on the same differential pair, so both ends must be impedance-matched to absorb reflections. PROFINET and EtherCAT are based on standard Ethernet and use a point-to-point link + switching/forwarding structure; each cable segment connects only two ports, impedance matching is provided by the PHY transformers and the cable specification, and there is no bus-reflection problem.

The direct consequence of mixing up the concepts is: putting resistors in series on an Ethernet port, or omitting termination on a CAN segment. For the differing matching requirements of the two physical layers see Terminating Resistors and Bus Length: Why It Has to Be 120 Ω. What really has to be controlled on the Ethernet side is single-segment cable length, cable category and shield treatment; over-long runs should switch to fibre or add a switch as a repeater.

For systematic troubleshooting of shield earthing and interference see Troubleshooting Fieldbus Interference: Grounding, Shielding, Topology; for general sensor-side fault criteria see Troubleshooting Magnetostrictive Displacement Sensors: Inaccurate Readings, Jumps, No Output; for product parameters see Series 199 PROFINET Explained; for a cross-protocol comparison see Comparing the Whole Fieldbus Range.

Practical tips for engineers

  • The Series 19 analog programming tool can be used to set the zero and end values anywhere within the nominal factory stroke range.
  • The Series 19 Profibus simulator can check the sensor functions, read magnet positions and diagnostic data, and change the slave address.

Frequently Asked Questions

Q: What is PROFINET topology configuration for?

With topology configured you gain three capabilities: alarms locate to a specific port and link rather than a generic station fault; when a device is replaced the controller writes the device name automatically from neighbour relationships, so the swap needs no programming; and a cable in the wrong port reports a neighbour mismatch immediately rather than producing odd behaviour in operation.

Q: Does PROFINET need 120 Ω terminating resistors?

No. Terminating resistors are a requirement of bus-type physical layers such as CAN and RS-485, where several nodes share one differential pair. PROFINET and EtherCAT use point-to-point links plus switching/forwarding; impedance matching is provided by the PHY transformers and the cable specification.

Q: How do I check a PROFINET device that is connected but the data is wrong?

Suspect a duplicate device name first: the controller may have connected to another device of the same name, in which case the communication status is entirely healthy but the data source is wrong. Confirm by powering units down one at a time, and establish a naming convention with drawings on file.

Q: What does a steadily rising port error count mean?

Usually poor cable quality on that segment, an oxidised RJ45, or an over-long run. On industrial sites use industrial-grade shielded cable and connectors; if a port's count keeps rising, replace that cable rather than repeatedly resetting the device.

Q: In what order should PROFINET diagnostics be read?

From the bottom up: first the network layer (link interrupted, neighbour mismatch), then the station layer (connection establishment and device-name consistency), and only then module-layer internal diagnostics. Starting the other way round with device fault codes often finds that the root cause was only a cable.

← Back to News