Troubleshooting
Why WinCC Unified PC Runtime fails to open its PLC connection
Short answer
When one WinCC Unified PC runtime station opens its project but never establishes the PLC session, the runtime trace tells you which side failed. On the failing station the trace shows the open for CONN%HMI_Connection_2 rejected with AccessDenied, specific error -270 and reason 4102 before any S7Plus session exists, which places the fault on that station's connection binding. Set the connection entry point to exactly S7ONLINE, rebuild, redeploy and confirm the fix in a fresh trace.
On this page
- Why does the same project connect on Panel 1 but not on Panel 2?
- What does the Panel 2 trace show before the failure?
- Is the PLC short of sessions, or is this the HMI PC?
- Which connection parameter must read S7ONLINE?
- How do you correct the entry point and redeploy to Panel 2?
- How do you prove the rebuilt project is the one running?
- Why did the version 19 to version 21 upgrade set this off?
- Questions asked
When one WinCC Unified PC runtime station loads its project but never establishes the PLC connection, while the same project runs on the other PC, read the failing station's runtime trace before touching cables or settings. An attempt that names the project connection CONN%HMI_Connection_2, entry point S7ONLINE and remote station 192.168.113.2, then fails with AccessDenied, specific error -270 and reason 4102, Cannot start connect, is an HMI-side open failure: the connection organizer on that PC rejected the open before any S7Plus session existed. The fix sits in the failing station's project, not in the PLC: set the connection entry point to exactly S7ONLINE, rebuild, redeploy to that station and confirm the correction in a fresh trace. The steps below walk a two-PC installation after an upgrade from version 19 to version 21.
Why does the same project connect on Panel 1 but not on Panel 2? #
Because the failure is host-specific: the same project file, one PLC destination and separate panel IP addresses clear the project and the network, and the trace shows the open being rejected inside the failing station's own connection organizer before any PLC session exists.
Loading the Panel 2 project on Panel 1 proves two things: the project carries a usable PLC destination, and at least one of the two PCs can run it to a working session. It proves nothing about the runtime installation, the communication settings or the deployed project instance on the machine that fails. Two independent runtime projects with different addresses are a valid architecture for two operator stations, so the setup itself is not the fault; what stays in scope is the local connection binding on the machine that will not connect.
| Observation | What it clears | What stays in scope |
|---|---|---|
| Panel 1 reaches the PLC and holds a session | The controller is reachable and the project destination is usable | The failing station's host configuration |
| The failing project runs on the healthy PC | The connection definition and address stored in the project | The deployed instance and local binding on Panel 2 |
| The two PCs use different addresses | A duplicate-address explanation | Adapter selection and entry-point resolution on Panel 2 |
| No session-failure entry on the controller | No established session ever failed | The open failure visible in the runtime trace |
What does the Panel 2 trace show before the failure? #
The failing station's trace shows an attempt for CONN%HMI_Connection_2 with entry point S7ONLINE toward remote station 192.168.113.2, followed by AccessDenied with specific error -270 and reason 4102, Cannot start connect, raised by ConnectionOrganizerCLSI::Connect before any S7Plus session was established.
Read the attempt as a sequence of stages; each stage that appears tells you how far the open progressed:
- Connection request,
Trying to open HMIConnection: the station is asking for its connection, so the request path works. - Project connection,
CONN%HMI_Connection_2: runtime resolved the named connection from the deployed project. - Entry point,
S7ONLINE: the connection intends to use the configured S7 access point. - Remote station, 192.168.113.2: the project resolved the PLC destination address.
- Organizer failure,
ConnectionOrganizerCLSI::Connect: the HMI communication subsystem could not complete the local open. - General error,
AccessDenied: the open was rejected outright rather than timing out against the controller. - Specific error -270: keep this value for correlating the trace with vendor diagnostics.
- Reason 4102, Cannot start connect: runtime could not start the configured connection at all.
The message Connection lost on HMI side and the open failing at session 0 put the first diagnostic boundary on Panel 2, and they explain why the PLC diagnostic buffer can stay empty: from the controller's point of view, Panel 2 never got far enough to open a session.
Is the PLC short of sessions, or is this the HMI PC? #
It is the HMI PC: the rejection comes from the connection organizer at session 0, so the controller never registers an attempt from the failing station, and an empty PLC diagnostic buffer here is the expected picture rather than evidence of a healthy HMI side.
That has a practical consequence for the 6ES7 512-1DK01-0AB0 CPU. Do not spend commissioning time on its session limits or firmware: the healthy station already holds a working session to that controller, and the failing station never contends for one because its open is refused locally. Repair the HMI-side binding first and revisit controller connection capacity only if a later, genuinely connected station is refused. The discipline is the same one behind Separating PLC scan time from real HMI communication faults: identify which side owns the fault before changing settings on either side.
Which connection parameter must read S7ONLINE? #
The connection's entry point: the parameter that names the local access point used to open the PLC connection must contain exactly S7ONLINE, and a stored value such as S7Online1 or any other spelling is the mismatch behind this rejection.
Two layers sit between a running HMI and the controller, and they are easy to confuse. A ping or a successful project transfer proves that some network path reaches the PLC. WinCC Unified still opens the session through the access point named in the project, and that name has to match the predefined S7ONLINE access point on the runtime PC, where it is assigned to a specific network adapter. When the stored name is S7Online1 or anything else, the open fails at the connection organizer with exactly the signature above, whatever the IP settings look like.
Read the entry point from an attempt line in a trace captured on the failing station, not from memory of the engineering screen. The same token does different duty in classic WinCC; its access-point setup there is covered in Connecting WinCC to PLCSIM Through the S7Online Access Point, and that procedure does not transfer to a Unified PC station.
How do you correct the entry point and redeploy to Panel 2? #
Open the failing project's connection parameters, set the entry point of HMI_Connection_2 to exactly S7ONLINE, rebuild the project and load that rebuilt project onto Panel 2 itself, because a corrected engineering setting changes nothing until the failing station runs the new build.
Work the correction in this order:
- Open the Panel 2 project and double-click Connections in the project window of the HMI device to reach the connection parameters.
- Select HMI_Connection_2 and read its entry point or access-point parameter.
- If it reads
S7Online1or any other name, set it to exactlyS7ONLINE, all capitals with no suffix. - Save and rebuild so the deployable project carries the corrected connection definition.
- Stop the Panel 2 runtime, load the rebuilt project through the normal project-loading workflow and start it again; plan the restart, because the operator station is blind to the machine while its project reloads.
- Start a fresh trace so earlier failures cannot be mistaken for current results.
Changing a similarly named setting on the PC without rebuilding and redeploying the project leaves the deployed connection definition untouched, which is why the fix ends with a load to Panel 2 and not with an edit on the healthy machine.
How do you prove the rebuilt project is the one running? #
Read the first connection attempt of the fresh trace: it must name the object HMI_RT_2::HMI_Connection_2 and show CONN%HMI_Connection_2, entry point S7ONLINE and remote station 192.168.113.2 in a single attempt, with no AccessDenied, -270 or 4102 line behind it.
The two identifiers do different jobs. CONN%HMI_Connection_2 is the internal connection name the project resolves at open time; HMI_RT_2::HMI_Connection_2 ties the attempt to the intended runtime instance, confirming the station executes Panel 2's own project rather than a leftover build. Keep the acceptance test on the failing machine: a pass on the healthy PC validated that PC's installation, and the fault stays host-specific until Panel 2 itself completes a connection without the rejection signature. If any attempt line still references S7Online1 or another unintended entry point, the deployed project is not the rebuilt one, so reload and repeat the check.
Why did the version 19 to version 21 upgrade set this off? #
Treat the upgrade as the trigger, not the cause: version 19 connected, so the destination and the physical path are sound, and the move to version 21 rebuilt and redeployed both projects, which is when a stored entry-point name that does not match the access point defined on the runtime PC starts to bite.
Siemens documents that an integrated HMI connection created by dragging the Runtime entry onto the PLC is assigned the S7ONLINE1 access point by default, so a project that has been re-created, migrated or rebuilt can carry an access-point name that was never assigned on the station that must run it. The upgrade boundary is the moment such a latent mismatch surfaces, not the reason the open fails. The decisive evidence stays version-independent: after any migration or rebuild, read the attempt line in the trace, confirm the stored entry point, and check each station's communication settings separately, because running the project on the healthy PC validated that PC's settings only.
Questions asked
Does the CPU need a license or setting change to serve a second Unified PC runtime station?
Not for this fault. The failed open was refused on the HMI side before the controller saw a session attempt, so no PLC-side setting or license is involved in fixing it, and the healthy station already holds a working session to the same CPU with its own project. If you add more runtime stations later, verify the CPU's documented HMI connection capacity for the exact order number before commissioning, because that limit is model specific.
Where do I bind the S7ONLINE access point to a network adapter on the runtime PC?
In the communication settings of the runtime computer. Open the access points list there, select the predefined S7 communication access point named S7ONLINE, and assign it the specific TCP/IP network adapter that sits on the PLC's subnet. Do this on each runtime PC separately, because the assignment is local to the machine, and a correct assignment still requires the project's entry point to name that same access point.
Why does a project sometimes store the name S7Online1 instead?
Because of how the connection was created. Siemens documents that an integrated HMI connection made by dragging the Runtime entry onto the PLC in the project tree is assigned the predefined S7ONLINE1 access point by default, which is why that name turns up in projects that were built or re-created by drag and drop, and why the stored value is worth reading after every rebuild or migration.
What should I check when the trace is clean but tags still show no values?
Work through the vendor's no-connection checklist for Unified PC runtime: check the cable and the plug-in connections at both ends, and check whether the connection has been configured as online. If both pass, separate the driver timeout, retries and data quality from the display update cadence before editing the project again.
Can I copy the working Panel 1 project to Panel 2 to fix it faster?
You can load it, but it changes the architecture: Panel 2 would then run Panel 1's project instead of its own, so screens, tag bindings and scripts written for the second station would need rework. Correcting the entry point in Panel 2's own project keeps the two stations independent and is a far smaller change than re-basing one project from the other.