S7-1200 PLC Partner Not Found Error: TIA Portal Topology Fix

David Krause11 min read
S7-1200SiemensTroubleshooting
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

S7-1200 CPU 1214C "Partner Not Found" Error After Ethernet Disconnect: TIA Portal Topology Resolution

Field Symptom: A Siemens SIMATIC S7-1200 CPU 1214C connected to an HMI PC station (WinCC Runtime Advanced) on a single direct PROFINET cable returns a persistent "Error: Partner not found" diagnostic every time the programming cable is unplugged. The error survives a memory reset and a full project reload. The root cause is an unintended port-to-port Topology View interlink in TIA Portal that does not match the physical cabling.

1. Problem Statement and Field Symptoms

Engineers commissioning a single-pair PROFINET installation — one S7-1200 CPU 1214C and one HMI PC station — frequently encounter a diagnostic alarm on the CPU the first time the Ethernet patch cable is removed for laptop access. The reported symptoms are:

  • CPU diagnostic buffer (or HMI tag logging) shows "Error: Partner not found" or "Partner not found (IO device failure)".
  • The error reappears every time the laptop-to-CPU programming cable is unplugged, even though no logical S7 connection was defined between the laptop and the CPU.
  • Re-loading the TIA Portal project and performing an MRES do not clear the alarm.
  • Reconnecting the cable to the HMI PC station does not auto-clear the alarm until the next power cycle of the CPU.
  • The HMI runtime reports communication faults on its connection status indicator even though runtime data is being exchanged.

The error is non-fatal (the program keeps executing and the HMI exchange usually continues), but it floods the diagnostic buffer and obscures real faults, which is why it is considered a serious nuisance in 24/7 operations.

2. Affected Hardware and Software Stack

This issue is documented primarily on the following configuration:

Component Identified Part / Version Notes
CPU SIMATIC S7-1200 CPU 1214C DC/DC/DC 6ES7214-1AG40-0XB0 (FW V4.x) Also reproduced on 1212C and 1215C variants and FW V2.x / V3.x
HMI SIMATIC Panel PC / WinCC Runtime Advanced (TIA V13 SP1) Acts as PROFINET IO Device on the same subnet
Engineering STEP 7 / TIA Portal V13 SP1 Update 9 (or later up to V19) Topology view present from V12 onward
Connection medium Cat 5e / Cat 6 RJ45 patch, direct (no switch) CPU 1214C has two PROFINET ports (X1 P1, X1 P2)
Project tooling Devices & Networks → Topology tab Diagnostic triggers off topology-defined port partners

The CPU 1214C ships with two integrated PROFINET interfaces on a single X1 socket (port 1 and port 2). Both ports support PROFINET IO Controller and IO Device roles, switching, and the topology/port-interconnection model that drives this fault.

3. Root Cause: Topology View Port Interconnection

Inside the TIA Portal project, the engineer typically performs two distinct network definitions:

  1. Network View — A logical view. It defines which devices belong to which PROFINET subnet (PN/IE_1, for example) and which S7/HMI connections exist. The Network View does not specify which physical port is used.
  2. Topology View — A physical view. It defines port-to-port cabling: e.g., CPU 1214C Port 1 ↔ HMI PC Port 1. The Topology View is required for advanced PROFINET features: device replacement without programming device (neighborhood detection), IRT (Isochronous Real-Time), and MRP / MRPD redundancy rings.

If the Topology View contains a port interconnection between the CPU and the HMI PC, the CPU expects a PROFINET link partner on that exact port at all times. When the cable is unplugged and routed to a laptop, the CPU's link partner at that port disappears. The PROFINET stack raises the diagnostic alarm "Partner not found" (PROFINET channel-error / maintenance alarm class) and writes it to the diagnostic buffer and to the HMI tag if one is mapped.

Because the alarm is generated by the PROFINET layer (not by the user program), a memory reset, a STOP→RUN transition, or a project reload will not clear it. The alarm self-clears only when the originally defined partner reappears on the same port — which never happens after a cable swap.

4. Network View vs Topology View — Functional Comparison

Property Network View Topology View
What it models Logical subnets and connections Physical port-to-port cabling
Mandatory for plain PROFINET RT Yes No (optional)
Mandatory for IRT Yes Yes
Mandatory for MRP ring Yes Yes
Mandatory for device replacement without PG No Yes
Generates "Partner not found" alarm on cable removal No Yes (if a defined partner is unreachable)
Configurable per port No Yes (each port has neighbours list)
Verifies against real cable plant No Yes (via LLDP / neighbourhood discovery)

For a small cabinet with one PLC and one HMI that uses only PROFINET RT and does not require device replacement without a PG, the Topology View should normally be left empty. The Network View is sufficient.

5. Diagnostic Buffer and PROFINET Alarm Codes

The CPU records the alarm in the diagnostic buffer. Typical entries look like:

Event 1:  Connection aborted, partner not found
  Incoming event
  OB:           OB 82 (IO device fault / I/O access error)
  Port:         X1 P1
  Partner:      HMI_PC_1 / Port X1 P1
  Diagnostic ID: 0x0002  (Channel diagnosis - "Partner not found")

Useful diagnostic data points:

Alarm Source What to Check
CPU diagnostic buffer Online → Diagnostics → Diagnostic buffer. Filter for "Partner" or for channel error OB 82.
CPU Web server https://<CPU-IP>/— → Module information → PROFINET diagnostics → Port statistics
CPU LEDs LINK (green) on the affected port must be solid when a partner is connected, off when unplugged. RX/TX flashing indicates traffic.
HMI diagnostics WinCC tag @ConnectionState or @ForceConnectionState
PRONETA / TIA Topology Editor Discovered LLDP neighbours — compare with project topology.
Engineering Note: The PROFINET alarm "Partner not found" is a channel diagnostic with severity "Maintenance required" by default. It does not stop the CPU, but it counts against the diagnostic buffer history and may trigger HMI-level reconnection attempts.

6. Step-by-Step Resolution Procedure

The verified fix is to remove the unintended port interconnection from the Topology View, recompile, and download. The procedure is reproduced below for both TIA V13 SP1 and current TIA versions (V16/V17/V18/V19).

6.1 Prerequisites

  • Full offline project backup (.zap13 / .zap19 archive).
  • Online connection to the CPU (PG/PC interface set to the CPU's PROFINET subnet).
  • Know the CPU's IP address and PROFINET device name.

6.2 Delete Topology Interconnections

  1. Open the TIA Portal project.
  2. Navigate to Devices & Networks → select the network editor.
  3. Click the Topology tab at the bottom of the network editor (next to Network view and Device view).
  4. Inspect the topology canvas. Look for any line that connects a port of the CPU to a port of the HMI PC or another station.
  5. Click each such interconnection line and press Delete (or right-click → Delete).
  6. Confirm that the topology view now shows the stations without inter-port connections. The Network view should still show the original subnet/connection assignments.
  7. Save the project (Ctrl+S).

6.3 Recompile and Download

  1. Right-click the CPU → Compile → Hardware (rebuild all).
  2. Select the CPU in the project tree and choose Download to device.
  3. In the download dialog, tick "Consistent download" and "All blocks" to overwrite runtime data.
  4. Confirm the download and let the CPU restart into RUN.

6.4 Clear Residual Diagnostics

  1. Online → Diagnostics → Diagnostic buffer → Clear.
  2. Power-cycle the CPU (optional but recommended) so any latched LLDP neighbour tables are purged.

6.5 Verification

  1. Disconnect the Ethernet patch cable from the HMI and plug it into the programming laptop.
  2. Watch the diagnostic buffer — no new "Partner not found" entries should appear.
  3. Reconnect the HMI and confirm continuous data exchange.
  4. Repeat unplug/replug several times to confirm the alarm does not recur.

7. Alternative Engineering Solutions

Removing the topology view works but assumes the engineer never needs IRT, MRP, or PG-less device replacement. When those features are needed, the cleaner long-term solutions are:

7.1 Add a Managed or Unmanaged PROFINET Switch

Inserting a Siemens SCALANCE XB005 (or any unmanaged PROFINET switch) between the CPU and the HMI means the laptop can be plugged into any spare switch port without disturbing the CPU ↔ HMI topology. This is the recommended pattern in any installation with more than two PROFINET nodes. The CPU's port-to-port topology remains intact regardless of which device the laptop talks to.

7.2 Define Topology for All Real Connections

If the cabinet uses IRT or MRP, every physical cable must be modelled in the Topology view. Leaving even one connection unmodelled causes the same alarm class during unplanned topology changes. Use the TIA Topology Editor's "Compare with real topology" function to detect any mismatch after commissioning.

7.3 Disable LLDP on the Affected Port (Last Resort)

LLDP is the mechanism by which a PROFINET device discovers neighbours and validates topology. Disabling LLDP on a port suppresses the alarm but is generally not recommended because it also disables device replacement without a PG. Use only on isolated programming ports.

7.4 Use a Dedicated PG Port on the CPU

The CPU 1214C exposes two ports. If port 1 is reserved for the HMI and port 2 is reserved for engineering access, the topology view can model only port 1's connection to the HMI, leaving port 2 free for the laptop. This is a clean architectural answer when the cabinet layout permits it.

8. Verification Test Plan

Test Procedure Pass Criterion
Cable-swap stress Unplug HMI, plug laptop, unplug laptop, plug HMI. Repeat 20×. Zero "Partner not found" entries in diagnostic buffer.
LLDP neighbour inspection Use PRONETA to read neighbours from the CPU. Neighbour list matches the project topology after each cycle.
HMI runtime Watch WinCC tag @ConnectionState during cable swap. Tag stays = 1 (connected) throughout.
CPU restart STOP→RUN, observe buffer. No residual partner alarms.
Web server diagnostics Browse to CPU web page and inspect port statistics. Discard counters advance normally; no "link down" events outside of actual unplug moments.

9. Preventive Configuration Best Practices

  • Use the Topology View only when at least one of the following PROFINET features is required: device replacement without PG, IRT, or MRP/MRPD. Otherwise leave it empty.
  • Document each topology edge with a cable label that matches the project (e.g., "C-PLC/HMI-01"). This dramatically simplifies field troubleshooting.
  • After every project change, run Project → Compile → Hardware (rebuild all) and download the entire station, not just the changed blocks.
  • For cabinets larger than two PROFINET nodes, install a PROFINET switch (SCALANCE XB-005 or XC-100/XC-200) rather than daisy-chaining on the CPU ports.
  • Lock the CPU's port assignment in the device configuration to prevent an engineer from accidentally re-linking the wrong port to the topology.
  • Maintain a project archive after every commissioning change so that the topology decision is reversible.

10. Related PROFINET Diagnostics and Cross-References

The "Partner not found" alarm is one of a family of channel-diagnostic alarms that the S7-1200 can emit. Engineers encountering this issue should also review:

  • "Station failure" — Raised when an entire PROFINET IO Device drops off. Often co-occurs with "Partner not found" when the HMI is the dropped station.
  • "Link down" — Pure layer-1 alarm. No link pulse on the RJ45. Check cabling, SFP, or port damage before suspecting topology.
  • "Name assignment error" — PROFINET device name does not match what the controller expects. Common after CPU replacement.
  • "Device replacement without PG failed" — Only fires when Topology view is defined and a replacement device cannot be located by serial number / neighbourhood.

The diagnostic mechanism is documented in the Siemens SIMATIC PROFINET with STEP 7 V13 function manual and the S7-1200 programmable controller system manual, available from the Siemens Industry Online Support portal (entry ID 109751826 and 91696622). Always cross-check with the firmware-specific manual because the diagnostic buffer format has evolved across FW V2, V3, and V4 generations of the S7-1200.

11. Troubleshooting Matrix

Symptom Likely Cause First Action
"Partner not found" appears the moment a cable is unplugged Topology view has a port interconnection for that partner Open Devices & Networks → Topology tab and delete the line
"Partner not found" appears on power-up with all cables connected Wrong port wired (Topology says P1, real is P2) or swapped patch cables Compare LLDP neighbours in PRONETA with the topology view
"Partner not found" reappears after firmware update Topology view was migrated but port numbering changed Re-validate topology after FW upgrade, re-download hardware config
"Partner not found" only when laptop is plugged into port 2 of CPU Laptop is treated as PROFINET neighbour and LLDP mismatch is reported Disable LLDP transmission on the laptop NIC or move laptop to the switch
Alarm persists after deleting topology and recompiling Download was incremental, not full hardware Force "Download to device → Hardware and software (complete)"

12. Frequently Asked Questions

What does the PROFINET alarm "Partner not found" actually mean on an S7-1200?

It is a channel-diagnostic alarm emitted by the PROFINET stack when a port's expected link partner (defined in the project's Topology view) is unreachable. It does not mean the cable is broken; it means the partner on the other end is not the device the CPU was configured to expect on that port.

Do I have to delete the entire Topology view, or can I keep some edges?

You can keep any edge that matches a real, permanent cable. Delete only the edges that you draw to satisfy the wizard when adding a new station and that do not reflect the physical plant. Always run Topology → Compare with real topology after editing.

Will a memory reset (MRES) clear the alarm?

No. The alarm lives in the PROFINET link-layer state machine, not in the user program. MRES clears the user program but not the LLDP neighbour tables or the topology-derived expectations. A power cycle plus a fresh topology-consistent download is required.

Does this issue affect S7-1500 CPUs the same way?

Yes — the topology-view port-interconnection model is identical in TIA Portal V13 SP1 and later for both S7-1200 and S7-1500. The same fix (delete the topology line, recompile, full download) applies. The ET 200SP / ET 200MP stations can also generate the same alarm class.

Is it better to add a switch or to leave the topology view empty for a small PLC + HMI system?

For non-redundant PROFINET RT installations with only two nodes, leaving the topology view empty is acceptable. For any installation with three or more PROFINET nodes, a SCALANCE switch is the cleaner answer because it also gives you spare ports for engineering access and future expansion without disturbing the topology.

Back to blog