Troubleshooting
Fix WinCC Runtime That Connects to the PLC Only via TIA Portal
Short answer
The runtime PC's PG/PC interface is bound to the wrong network adapter, so WinCC Runtime has no path of its own until a TIA Portal online session brings one up. Open Set PG/PC Interface in Windows Control Panel, assign the PLC-facing adapter to the S7 access point, restart the runtime, and confirm with ping plus a live tag. If ping already works, check the access point, the connection configuration, and PLC access permissions instead.
On this page
WinCC Runtime that reaches the PLC only after TIA Portal goes online is telling you the runtime PC's PG/PC interface is bound to the wrong network adapter. The online session parameterizes an S7 path of its own from inside TIA Portal, so the controller is reachable — but the binding Windows keeps for every other piece of software still points elsewhere, and the runtime follows that binding. Open Set PG/PC Interface in Control Panel, assign the adapter wired to the PLC network, restart the runtime, and the dependency disappears. If ping already reaches the PLC, stop redoing the adapter change and work the application layer instead.
What the dependency tells you #
An access point is a Windows-level name that S7 communication software uses to find its way to a controller; Siemens documents the Set PG/PC Interface dialog in Control Panel as the place where the access point used for WinCC communication with the controller is assigned to a network interface. When TIA Portal goes online it brings up its own path over the adapter chosen in its online settings. WinCC Runtime, started outside that session, still depends on whatever adapter assignment survived in Windows — which is why it works only while the engineering session has opened the road.
Read the symptom before touching anything:
- Runtime connects only after TIA Portal goes online — the PC and the PLC can talk; the permanent binding cannot. First check: the PG/PC interface entry.
- Runtime never connects, ping succeeds — IP reachability is fine; the S7 session is not established. First check: access point, connection configuration, controller access permission.
- Neither runtime nor ping gets through — the fault sits below the application. First check: addressing, cabling, routing.
Going online in TIA Portal at every startup is not a fix. It hides the dependency and makes production visibility contingent on engineering software being open.
Set the PLC-facing adapter #
Do this on the PC that runs the runtime, not on the engineering laptop:
- Open Control Panel and run Set PG/PC Interface (32 bit). On newer Windows installations the same settings live under Communication Settings.
- In the access point list, select the entry your WinCC communication uses; for S7 online communication the documented entry is S7ONLINE (STEP 7).
- Under the interface parameterization, select the network adapter wired to the PLC network. In one reported correction the entry was Realtek PCIe GBE Family Controller.TCPIP.1; Siemens documentation for other targets describes selecting the Ethernet adapter with the suffix .TCPIP.Auto.1 under "Used interface parameterization". The suffix differs per installation — the adapter's IP address decides, not the index.
- Apply, then restart the runtime. For WinCC Unified Runtime, close and reopen Runtime Manager after the change.
The "(32 bit)" in the entry name identifies the Control Panel applet, not the WinCC edition, the runtime architecture, or the installed version.
Decision: if the selected entry named any adapter other than the one carrying the PLC network, this change alone is the fix — verify it as described in the last section.
Match the adapter to the PLC subnet #
The adapter you select must be the one whose address shares a network with the PLC, or the one with a working route to it. A subnet mask decides which destinations are local; everything else needs a router.
Worked example with illustrative addresses: a runtime PC has adapter A at 192.168.0.10 with mask 255.255.255.0, wired to the cabinet switch, and adapter B at 192.168.1.50 with mask 255.255.255.0 on the office network. The PLC sits at 192.168.0.20.
- Adapter A: 192.168.0.10 AND 255.255.255.0 = 192.168.0.0. PLC: 192.168.0.20 AND 255.255.255.0 = 192.168.0.0. Same network, so delivery is direct and no router is involved.
- Adapter B: 192.168.1.50 AND 255.255.255.0 = 192.168.1.0. The PLC is not on 192.168.1.0, so adapter B would need a router to reach it.
Decision: the PG/PC entry must name adapter A. An entry naming adapter B leaves the runtime without a path even though ping — which leaves over A — succeeds, and that is exactly the misleading case. When a station genuinely needs both networks, that split deserves its own design; see configuring dual LAN HMI ports for two PLC networks.
If several adapters, a VPN or a virtual adapter are active, confirm which interface the route to the PLC actually uses rather than trusting either setting to prove the other.
When ping works and runtime still fails #
Ping is ICMP, defined by RFC 792: it asks whether an IP endpoint answers, and it says nothing about an S7 session, a configured connection, or permission to read data. A successful ping narrows the fault; it does not close it. Work this list in order:
- Access point match. The drop-down in the PG/PC interface must show the access point the WinCC connection is configured to use; a correct adapter under the wrong access point still leaves the runtime silent.
- Restart. The binding is read when communication starts, so every change in this list needs a runtime restart before its result tells you anything.
- Connection configuration. Open the connection settings of the project actually running on the PC and confirm the communication driver, controller type and destination address match the PLC in front of you. For classic WinCC this is the territory of configuring WinCC 7.0 PLC connections with STEP 7. A Professional runtime that connects to nothing at all is covered from the project side in WinCC Professional runtime not connecting to the S7-1500.
- Controller access. On the PLC side, the CPU's protection settings must permit PUT/GET-style external read/write access, and the blocks the tags address must be reachable at those addresses. An access rejection in the diagnostics points here, not at the adapter.
- Firewall. S7 communication over Ethernet uses TCP port 102; a firewall that passes ICMP while blocking that port produces exactly this symptom. Add a rule letting the runtime PC reach the PLC on that port, and leave the firewall enabled.
- Diagnostics text. Record the runtime's error text verbatim during a failed attempt: a timeout points at endpoint, route or filtering; a rejection points at permissions.
If TIA Portal itself will not go online either, that failure has its own causes, and TIA Portal v14 failing to go online with an S7-1500 works through them.
Verify the fix without TIA Portal #
The fix counts only if the runtime stands alone:
- Close TIA Portal completely.
- Restart the runtime — or reboot the PC for the stricter test.
- Watch a tag that actually changes value, such as a counter or a clock, not a static graphic; stale values painted on the screen are not communication.
- Read the runtime's connection status: connected with values moving is a pass; anything else sends you back to the ordered list above.
- Repeat once after a full power cycle.
Decision: if it connects cold twice in a row, you are done — stop opening TIA Portal at startup. If it regresses, the binding did not hold: reopen the PG/PC interface, confirm the entry still names the PLC-facing adapter, and retest.
Questions asked
Why does going online in TIA Portal make the runtime connect?
The online session parameterizes an S7 path from the PC to the controller over the adapter selected inside TIA Portal, and while that session is up the runtime finds a working route. The Set PG/PC Interface dialog is where that path is made permanent for software outside TIA Portal. Assign the PLC-facing adapter there and the dependency on the engineering session disappears.
Ping reaches the PLC but runtime still will not connect. What now?
Ping leaves by the Windows route table and can exit over the correct adapter even while the PG/PC entry names the wrong one, so it is a false clear in exactly this combination. Confirm the access point matches the one the WinCC connection uses, restart the runtime after any change, verify the connection names the right controller, that the CPU permits external read/write access, and that the firewall allows TCP port 102 to the PLC.
What does the (32 bit) in Set PG/PC Interface (32 bit) mean?
It names the Control Panel applet, not the WinCC edition, the runtime architecture, or the installed software version. Newer Windows installations show the same settings under Communication Settings instead. Both entries control the same access-point-to-adapter binding, so use whichever is present on the runtime PC and verify the adapter's address before applying.
Several adapter entries end in TCPIP. Which one do I select?
Select the entry whose adapter holds an address on the PLC network, and read that address in the adapter status before applying. The index alone tells you nothing: the reported fix used Realtek PCIe GBE Family Controller.TCPIP.1, while Siemens documentation for other targets describes a .TCPIP.Auto.1 suffix under Used interface parameterization. The address behind the entry is the only reliable selector.
Do I have to restart WinCC Runtime after changing the PG/PC interface?
Yes. The runtime reads the access-point binding when communication starts, so close and restart it after applying the change; for WinCC Unified Runtime, close and reopen Runtime Manager as well. Retest with TIA Portal closed. If the runtime connects on its own after a restart, the binding was the fault.