Problem Overview
When WinCC 7.4 running on a Windows engineering station is unable to reach a STEP 7 V5.5 SIMATIC Manager project over TCP/IP, the runtime presents a red handshake icon in the connection list and the status column reads Disconnected. The same station is typically using S7-PLCSIM to simulate the S7-300/S7-400 controller while the HMI project is being validated. The error appears in three common contexts:
- Initial commissioning of a new WinCC / STEP 7 project combination.
- After switching the engineering PC from a real PLC on Ethernet back to a PLCSIM-only bench rig.
- After Windows updates, network adapter swaps, or installation of additional SIMATIC NET components.
In every documented case, the application-layer channel configuration in WinCC is correct. The fault is consistently located one layer below the application: the operating-system level PG/PC Interface is not pointing the correct protocol driver at the S7ONLINE access point.
Symptoms and Error Indicators
| Symptom | Where Observed | Engineering Meaning |
|---|---|---|
| Red handshake / disconnected icon | WinCC Explorer connection list, online view | SIMATIC S7 Protocol Suite channel reports offline state |
Status field shows Disconnected
|
Graphics Designer I/O fields, Tag Management | Cyclic read/write to AS is failing on every polling cycle |
| Event log entry "Connection establishment failed" | WinCC Diagnostics Viewer, Windows Event Log under Siemens Automation | TCP socket or ISO-on-TCP CONNECT request was refused or timed out |
| "No interface assigned" or empty list | Set PG/PC Interface dialog | S7ONLINE access point lacks an associated driver (SIMATIC NET not installed or corrupted) |
| PLCSIM operator panel "Online" LED stays off | S7-PLCSIM window | PLCSIM not in RUN or no client has connected |
Root Cause Analysis
WinCC communicates with the automation system through a Siemens-proprietary channel DLL (S7chn.dll). The channel DLL does not own a network driver directly; it depends entirely on the PG/PC interface that is bound to the symbolic access point S7ONLINE. This indirection is implemented for historical reasons: it allows the same engineering tool to bind to different physical transports (MPI, PROFIBUS, ISO, TCP/IP, PLCSIM) without recompilation.
When S7-PLCSIM is the active controller, the only driver that can deliver S7 telegrams to it is the PLCSIM driver (sometimes listed as PLCSIM.PROTOCOL or PLCSIM.S7Proto). If the PG/PC interface is currently set to a real Ethernet driver such as TCP/IP -> Intel I219-V, the channel DLL will attempt to open a TCP socket to the IP address configured in WinCC and issue an S7 CONNECT request. PLCSIM does not listen on the host NIC for that address; it uses an internal shared-memory soft-PLC channel. The connect attempt times out (typically 30 s) and the channel marks itself disconnected.
Conversely, selecting the PLCSIM driver while attempting to reach a physical S7-CPU will also fail. PLCSIM cannot route outside of the engineering PC process boundary.
Step-by-Step Configuration of the PG/PC Interface
The authoritative Siemens procedure is documented in FAQ 11870489 - "How do you generally parameterize the PG/PC interface...". The condensed procedure for this specific scenario is as follows.
- Close every Siemens engineering tool that might hold a lock on the access point: SIMATIC Manager, WinCC Explorer, WinCC Runtime, S7-PLCSIM, and any open STEP 7 V5.5 component.
- Open the Windows Control Panel and launch Set PG/PC Interface (German: PG/PC-Schnittstelle einstellen). On Windows 10 1903+ and Windows 11, the applet resides under Control Panel > All Control Panel Items > Set PG/PC Interface. If the applet is missing, install or repair SIMATIC NET PC Software from the STEP 7 V5.5 SPx media.
- In the Access Point of the Application dropdown, select
S7ONLINE. Do not select a project-specific access point unless your STEP 7 installation has been customized. - In the Interface Parameter Assignment Used list, select one of:
-
PLCSIM (PLCSIM.PROTOCOL)- when testing against S7-PLCSIM on the same PC. -
TCP/IP -> <your network adapter>- when connecting to a real S7-300/S7-400 CPU over Ethernet. -
ISO -> <your network adapter>- when using ISO-on-TCP (RFC1006) on a real CPU.
-
- Click OK and acknowledge any prompts. The selection is written immediately to the registry under
HKLM\SOFTWARE\Siemens\SINEC. - Restart the Siemens tools so they pick up the new assignment. The PG/PC interface is read once at process start.
- If the bench rig alternates between PLCSIM and a real PLC, repeat steps 2-6 each time you switch. The selection is per-machine, not per-project.
PLCSIM and the S7ONLINE Access Point in Detail
The S7ONLINE access point is a symbolic handle that every STEP 7 V5.x application (SIMATIC Manager, WinCC, ProTool, STARTER for older drives, and the S7DOS service) uses to resolve the active S7 transport. By binding the PLCSIM driver to S7ONLINE, you are telling the entire toolchain that "the S7 subnet reachable through S7ONLINE is the simulated one running on this PC." No other configuration in SIMATIC Manager, NetPro, or WinCC changes.
When PLCSIM starts, it registers a soft-PLC service on an internal Microsoft RPC endpoint. The PLCSIM driver in the PG/PC interface routes S7ONLINE traffic to that endpoint. The connection therefore never leaves the engineering PC, which has two practical consequences:
- No firewall rule, antivirus exclusion, or Windows Defender profile change can "fix" a missing PLCSIM-to-S7ONLINE binding. The traffic is in-process.
- Changing the IP address that PLCSIM reports (in PLCSIM > PLC > Ethernet Address) has no effect on routing; PLCSIM uses an internal slot/connection identifier, not the IP, to accept connections.
TCP/IP Channel Configuration in WinCC Explorer
Once the PG/PC interface is correctly assigned, confirm the WinCC channel reflects the same intent.
- In WinCC Explorer, navigate to Tag Management > SIMATIC S7 PROTOCOL SUITE > TCP/IP.
- Right-click TCP/IP and select System Parameters > Unit. The unit (logical device name) should match the PG/PC interface selection. Default is
TCP/IP; if you renamed it during installation, the names must match exactly (case-sensitive in the registry). - For each connection in use, open Connection Properties and verify:
-
IP Address: use
127.0.0.1for PLCSIM, or the CPU's real IP for a physical PLC. - Rack / Slot: matches the CPU's physical or simulated position (default PLCSIM is rack 0, slot 2 for S7-300; rack 0, slot 3 for S7-400).
-
Connection Name: must equal the S7 connection name generated by NetPro (e.g.,
AS1_Connection_1).
-
IP Address: use
- If the project was built using AS-OS Engineering (the typical path for S7-300/400 + WinCC), regenerate the connection list after fixing the PG/PC interface: Options > AS-OS Engineering > Generate / Update Connection List.
SIMATIC Manager and NetPro Verification
Open the STEP 7 project and double-click NetPro. Verify the following before returning to WinCC:
- The S7 connection target points to the correct CPU and uses
TCP/IPas the network type. - The local end of the connection is bound to a SIMATIC PC Station on the engineering PC, with an "Application" slot pointing to your WinCC project.
- Save and Compile returns zero errors and zero warnings.
- The PC station configuration (in the station's Configuration editor) contains a WinCC Application entry that references the WinCC project directory. Without this, AS-OS Engineering will not transfer any connections to WinCC.
- The CPU's IP address in the STEP 7 Hardware configuration matches the IP used in the WinCC connection list.
Firewall, Network, and Windows Considerations
Although PLCSIM traffic stays in-process, real-PLC traffic over TCP/IP uses ISO-on-TCP (RFC1006) on the well-known port 102. Windows Firewall defaults block this inbound unless an explicit rule is present. Siemens publishes the required port list in the WinCC 7.4 installation manual and in SIMATIC NET PC Software - Communication Manual.
| Port | Protocol | Used By | Direction |
|---|---|---|---|
| 102 | TCP (ISO-on-TCP / S7) | All S7 connections to real PLCs | Inbound on PC station |
| 5000 / 5001 | UDP / TCP | PLCSIM internal discovery and channel handshake | Localhost only |
| 2308 | TCP | WinCC redundancy diagnostics | Inbound on redundant partner |
| 3389 | TCP | RDP for remote engineering sessions | Inbound (only if RDP enabled) |
| 1433 / 1434 | TCP / UDP | SQL Server for WinCC archive database | Localhost by default |
Other Windows-level items that frequently reintroduce the symptom:
- SIMATIC NET driver deactivation: Windows network resets occasionally disable the Siemens virtual NDIS adapters. Open Device Manager and confirm SIMATIC NET Ethernet devices are enabled.
-
Antivirus real-time scanning of
CCExplorer.exeandS7DOS.exe: exclude the entireSiemensdirectory tree from real-time scanning. Defender's controlled folder access also blocks the PLCSIM driver registration on first run. - DCOM and SMB: AS-OS Engineering depends on DCOM between the PC station and the engineering tool. Confirm Component Services > Computers > My Computer > DCOM Config allows the Siemens applications through Windows firewall.
Verification Procedure
- Start S7-PLCSIM and load the STEP 7 program (PLCSIM > Download). Place PLCSIM in RUN-P.
- Confirm in PLCSIM that the "Online" LED is solid green and the operator panel shows the simulated CPU in RUN.
- Open SIMATIC Manager, select the project, and choose PLC > Monitor/Modify. Tag read/write should return values from PLCSIM. This isolates whether the PG/PC interface assignment is working.
- Open WinCC Explorer and start the runtime (Start > Runtime).
- Watch the connection list: handshake icon transitions from red (offline) to yellow (connecting) to green (connected).
- Place an I/O field bound to a tag from the S7 connection in Graphics Designer and toggle a bit. The display must update within one polling cycle.
- Open Tools > Channel Diagnostics in WinCC Explorer and confirm
Establishment Status = CONNECTEDwith an empty error column for every configured connection. - For real-PLC validation, run
ping <CPU IP>from a command prompt to separate network-layer faults from application-layer faults.
Troubleshooting Matrix
| Observed Symptom | Most Likely Cause | Corrective Action |
|---|---|---|
| Disconnected, no error in log | PG/PC interface not assigned to S7ONLINE | Bind PLCSIM or TCP/IP to S7ONLINE per FAQ 11870489 |
| WinCC error code 0x0314 / 0x0010 | Submodule mismatch or wrong rack-slot | Verify NetPro connection target rack/slot against HW Config |
| Connects briefly then drops after 30 s | Connection watchdog timer too low | Increase Connection cycle time in WinCC channel system parameters |
| PLCSIM running but no connect from WinCC | PLCSIM not in RUN or not powered | Switch PLCSIM to RUN-P and re-download block |
| Works locally, fails from second PC | Windows Firewall blocks port 102 | Create inbound rule for TCP 102 and re-test |
| "No license" or dongle error on connect | WinCC or STEP 7 runtime license missing | Transfer license via Automation License Manager |
| Compile succeeds but connections missing | PC station Application not bound to WinCC project | Open PC station configuration, add WinCC Application entry, recompile |
| Connection list regenerated with wrong names | Manual edits overwritten by AS-OS Engineering | Edit connections in NetPro only, regenerate from there |
Differences Between PLCSIM and Real PLC Behavior
Several behaviors differ between PLCSIM and a physical S7-CPU that catch engineers off guard during commissioning:
- IP address is irrelevant on PLCSIM. You can configure any IP in WinCC and PLCSIM will accept the connection as long as the rack/slot match. A physical PLC strictly validates the IP.
- Timing is not real-time on PLCSIM. OB1 cycle time is compressed or expanded depending on host CPU load. Polling intervals shorter than 100 ms can produce inconsistent reads.
- PLCSIM supports one online connection per instance in the older versions shipped with STEP 7 V5.5. If you have both SIMATIC Manager and WinCC Runtime attempting to connect simultaneously, one of them may be refused. PLCSIM V5.4+ supports multiple online connections, but verify with PLCSIM > Help > About.
- Diagnostic buffer entries are not persisted across PLCSIM restart. A "real" PLC keeps the diagnostic buffer for at least the last few power cycles.
Migration Note: Stepping Out of STEP 7 V5.x
The PG/PC interface concept applies only to the STEP 7 V5.5 / WinCC 7.4 (and older) toolchain. In the TIA Portal / WinCC Professional / STEP 7 V16+ environment, the equivalent configuration moves into the project under Devices & Networks > Online access, and the access point is created automatically when the device is added. Migrating a working STEP 7 V5.5 + WinCC 7.4 project to TIA Portal will not migrate the PG/PC interface state, and the same symptom (red handshake, disconnected) will appear if the new TIA project's online access is not configured. Treat the two toolchains as independent for PG/PC purposes even though the underlying protocol is unchanged.
FAQ
Why does WinCC 7.4 show a red handshake icon when STEP 7 V5.5 / PLCSIM are running?
The PG/PC interface is not pointing the PLCSIM driver at the S7ONLINE access point. Open Set PG/PC Interface, select S7ONLINE, and assign PLCSIM (PLCSIM.PROTOCOL) as the used interface, then restart the Siemens applications. See Siemens FAQ 11870489.
Do I need a specific IP address in WinCC to connect to PLCSIM?
No. PLCSIM ignores the IP and routes by internal slot/connection identifier. Use 127.0.0.1 or any other address and ensure rack 0 / slot 2 (S7-300) or rack 0 / slot 3 (S7-400) match the simulated CPU position.
Can I switch between PLCSIM and a real PLC without restarting the PC?
You can switch the PG/PC interface assignment on the fly, but you must close and reopen every Siemens engineering tool (SIMATIC Manager, WinCC Explorer, WinCC Runtime, PLCSIM) so each one re-reads the registry entry. There is no hot-swap mechanism.
Which Windows Firewall ports must be open for WinCC 7.4 to reach a real S7-CPU over TCP/IP?
At minimum TCP port 102 (ISO-on-TCP / S7). If you also use WinCC redundancy, additionally TCP 2308. Add the SIMATIC NET and WinCC executables to the firewall exception list to cover the dynamic port range.
My project was migrated from STEP 7 V5.5 / WinCC 7.4 to TIA Portal and the connection is still red. What changed?
The PG/PC interface concept is replaced in TIA Portal by per-project online access settings under Devices & Networks > Online access. Re-create the S7 connection in the TIA project, compile the PC station, and download the PC station configuration to your engineering PC before restarting the WinCC Professional runtime.