IMDTouchKnowledge BaseShop main store

Troubleshooting

Why a WinCC named connection fails when TCP/IP tags work

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

When 3 of 5 named S7 connections work and TCP/IP tags succeed on the 2 that fail, the server, the channel and the network are already proven and the fault sits in configuration identity. Compare the NetPro partner bindings, the server's PC station and each tag's connection assignment against a working connection instead of rebuilding anything.

On this page
  1. Why does a named connection fail while TCP/IP tags still work?
  2. What should you compare before you rebuild anything else?
  3. Is the NetPro connection in the multiproject bound to the right partners?
  4. Does the HMI server's PC station match the engineering project?
  5. Is each failing tag selected onto the rebuilt named connection?
  6. Which diagnostic tells you the connection status at runtime?
  7. In what order should you correct and redeploy?
  8. Questions asked

A named connection fails while TCP/IP tags work because the two are separate objects: the TCP/IP access proves only reachability, while the named connection additionally depends on the NetPro S7 connection, the HMI server's PC station and the connection each tag selects. With 3 of your 5 named connections communicating, the fault is confined to the configuration identity of the 2 that fail, and the fastest route to the fix is a field-by-field comparison against a working connection, not another rebuild.

Why does a named connection fail while TCP/IP tags still work? #

Because a named connection is a separately configured object, not another addressing style: the 3 named connections that already work prove the HMI server, the S7 channel and the network are sound, which confines this fault to the configuration identity of the 2 connections that fail.

Count what your own symptom already tells you on this installation of five CPU416-3 PN/DP controllers with WinCC 7.4+SP1+Upd4 on the OS server, engineered in STEP 7 V5.6+HF1:

  • 3 named connections communicate, so the server runtime, the channel driver and the physical network all pass.
  • 5 minus 3 leaves 2 failing, so the fault scales with individual connections, not with a shared component; a channel or runtime fault would fail all 5.
  • TCP/IP reads and writes succeed on both failing CPUs, so network reachability and the CPUs' communication service pass a second time.

That leaves exactly one layer: the configured identity of the two named connections. A TCP/IP tag access is built from the address you type into the tag, so it proves nothing about the engineered connection. A named connection is the WinCC-side view of an S7 connection you created in NetPro, and it only runs when the NetPro definition, the server's PC station and the tag's connection selection all agree. The decision from this arithmetic: stop deleting and rebuilding, and start comparing.

What should you compare before you rebuild anything else? #

Compare one working controller against each failing one field by field before you change anything; you have already rebuilt the connections, downloaded the entire NetPro to both PLCs and the HMI server, and recompiled the tags with a memory reset, and repeating that sequence without an identified mismatch will produce the same error again.

Use the working connection as your reference and record these fields for both failing ones:

  • The connection name each WinCC tag references, against the S7 connection object it must resolve to in NetPro.
  • The local partner station and the remote partner station of each failing connection, against the working reference.
  • The controller interface the failing connection selects, against the interface the successful TCP/IP access uses.
  • The local and remote connection identifiers, against the working connection's values rather than values copied from another project.
  • The PC station component positions on the HMI server, against the engineering project.
  • The channel and connection selected on one representative read-only tag for each failing controller.
  • The project path the running server loaded, against the project you last compiled.

Save the current engineering and runtime configurations before you edit anything, so you keep a recoverable baseline and a record of the settings that produced the fault.

Is the NetPro connection in the multiproject bound to the right partners? #

Open each failing S7 connection in NetPro and verify both ends: the local partner must be your HMI OS server and the remote partner the intended CPU, with connection identifiers matching the working reference rather than values inherited from another connection.

A multiproject joins separate projects whose network and connection data must resolve to each other across the project boundary, so a connection that displays in NetPro can still reference a partner the neighbouring project does not resolve. Note that an S7 station drawn in orange in NetPro signals that its configuration was changed; compile and download the changed configuration before you judge that connection at all. The failure pattern of a named connection that disconnects in a multiproject has a dedicated walkthrough on troubleshooting a multiproject named-connection disconnect, which pairs well with this comparison when both failing connections sit in the same subproject.

Keep one distinction firm through this check: the connection name carries the engineered relationship between stations, while the address only carries reachability. A correct IP address on the connection cannot compensate for a binding to the wrong station, which is precisely why the TCP/IP path works while the named path does not.

Does the HMI server's PC station match the engineering project? #

Compare the engineered PC station with the local Station Configuration Editor on the HMI server: the WinCC application entry and every communication component must occupy the same positions in both, and a network adapter that carries TCP/IP traffic can still be assigned to the wrong configured interface.

The PC station is the engineering model of the server's communication components, and the local runtime station must represent that same model. Downloading a station configuration to the computer does not by itself prove that the running application is using the intended identity. Check:

  • The engineered station identity against the locally configured station identity, confirming the server corresponds to the station used as the S7 connection's local partner.
  • Component types and positions on both sides, confirming the WinCC application and its communication components sit where the project expects them.
  • Which physical network interface the configured communication component uses; on a server with several adapters this is the classic trap, and a working ping or TCP/IP tag test does not validate this assignment.

Treat this check as fully separate from ordinary IP reachability: the two can pass and fail independently, and that independence is what produces your exact symptom.

Is each failing tag selected onto the rebuilt named connection? #

Check the connection assignment on the failing tags themselves, because a tag uses whatever connection its channel settings select, and compiling or reimporting tags never moves a tag off a connection it still references.

Open the channel settings of one read-only tag for each failing controller and compare three things against a working controller's equivalent tag: the channel, the list of available connections, and the connection actually selected. Select the intended configured connection from the list the project offers; typing a plausible connection name by hand is not a binding, it is a second fault waiting to happen. While you are there, confirm that the server is running the project you last compiled and transferred, not an older copy from another path, and watch connection status and tag quality together: the working reference should show valid communication with good quality, and each failing connection should show a distinct status you can carry into the diagnostics.

Which diagnostic tells you the connection status at runtime? #

Run the S7 connection diagnostics on the HMI server and capture the exact status text for one working and both failing connections; a reproducible status difference localizes the fault to the connection definition rather than to the runtime environment.

Read the captured statuses against the layer you just compared. A connection that never establishes points at the partner binding or the connection identifiers in NetPro. A connection whose status changes only after a runtime restart points at the PC station the server loaded. A connection that establishes and then drops points at multiproject resolution or at an unstable local station configuration. No diagnostic text was recorded for this installation beyond the symptom, so select the next correction from the actual status string in front of you, and keep the saved diagnostics from before and after each change so the comparison stays honest.

In what order should you correct and redeploy? #

Apply the correction at the layer where the comparison found the mismatch, then redeploy in dependency order and verify the running server actually uses the corrected project before you judge the result.

  1. Correct the mismatched field on the NetPro connection, compile the network configuration and download it to both partners of that connection.
  2. If the comparison flagged the server, correct the Station Configuration Editor entries and download the PC station.
  3. Reselect the intended connection on every affected tag and recompile the tags.
  4. Transfer the compiled HMI project to the server, using the transfer dialog instead of a NetPro connection for the HMI download, then restart WinCC runtime.
  5. Re-run the S7 connection diagnostics and confirm the 2 repaired connections now show the same status as the 3 that always worked.
Field the comparison flags Decision
Partner station or connection identifier mismatch in NetPro Correct the connection in NetPro, compile, download to both partners
PC station component position or interface assignment Fix the local station editor entries, download the station, restart runtime
Tag still referencing another connection Reselect the configured connection on each affected tag, recompile, transfer

One safety note: downloading a changed connection configuration to a running CPU re-establishes configured communication, so HMI communication with that station can drop briefly; make each download when that interruption is safe for the process. If every compared field matches the working reference and the status text still refuses the connection, put the two failing connections' diagnostics side by side: the field where those two differ from each other, and from the working reference, is where the fault lives.

Questions asked

Can I keep the tags on the TCP/IP connection instead of fixing the named connection?

It works as a short-term measure, since reads and writes already succeed that way, but each direct connection consumes connection resources on the CPU and you lose the single engineered connection that all tags on one CPU can share. Fix the named connection before you add more stations or clients, and treat the working TCP/IP access as your test instrument, not the solution.

Does downloading a changed NetPro connection table stop the running PLC?

The CPU stays in RUN, but downloading the changed connection configuration re-establishes configured communication, so HMI communication with that station can drop briefly while the new connection settings take effect. Schedule the download during a window where losing visualization on that station for a short time is safe, and tell the operators before you start.

Why do two identical CPUs behave differently under the same project?

The CPUs are identical; the difference lives in the per-connection configuration data downloaded to each station and in the partner bindings held on the HMI server side. That is exactly why a field-by-field comparison against the working connection finds the fault, while replacing or rebuilding CPU hardware and firmware never will.

Where can I see the live status of each configured connection in WinCC?

Besides the S7 connection diagnostics on the HMI server, open the channel diagnostics entry under the Siemens Automation program group in the Windows Start menu. It shows which channel and which configured connection each tag is using while runtime is active, so you can catch a tag still riding a TCP/IP connection after you believed you moved it onto the named connection.

Keep reading

  • Explainer

    Why WinCC to an S7-1500R/H needs no S7-REDCONNECT

    WinCC connects to an S7-1500R/H redundant system through its system-wide system IP address, which the current Primary CPU always serves, so S7-REDCONNECT does not apply. If a communication-path failure on the X2 or X3 interface must not interrupt the HMI, use WinCC V7.5 script-based switching between the two CPU device IP addresses instead.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Runtime Advanced shows no data through a CP343-1 Lean

    STEP 7 goes online through the CP343-1 Lean, but WinCC Runtime Advanced opens with no tag update and no error banner, because the S7 connection was given the CP's slot number. The CP cannot service an HMI read; the CPU-side endpoint lives in the CPU. Enter the CP's IP address with rack 0 and slot 2 — the CPU 316-2 DP's slot in a standard S7-300 central rack — and no FC5 or FC6 call is needed in the PLC program.

    HMI and touchscreens

  • Troubleshooting

    Comfort panel redundant H system connection over Ethernet

    A TP1900 Comfort panel cannot be configured in WinCC flexible, so the redundant connection to a 412-H station is engineered in the WinCC environment of TIA Portal: the panel talks to the active CPU over Ethernet, and a PROFINET media redundancy ring in client role protects the cable path. Accept the result with two separate tests: a controlled CPU changeover and a single-cable removal.

    HMI and touchscreens

Why a VB ActiveX DLL Does Not Work From WinCC C-Scripts