Resolving PCS 7 AS-OS S7 Connection Failures with PLCSIM

David Krause11 min read
SCADA ConfigurationSiemensTroubleshooting
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

1. Problem Overview

When commissioning a Siemens SIMATIC PCS 7 project with S7-PLCSIM as the target runtime, engineers frequently encounter a situation in which the Automation Station (AS) compiles successfully but the Operator Station (OS) compile wizard reports that no S7 connection is available. The OS compile dialog lists the available connection targets, and the field for the PLCSIM (MPI/TCP) variant is either blank or absent. In SIMATIC Manager, opening NetPro on the Engineering Station (ES) and attempting to insert a new S7 connection under the ES object produces no entries; right-clicking the partner (AS) and selecting Insert New Connection either returns no valid targets or throws an inconsistency warning.

This article isolates the root cause of the missing AS-OS connection, documents the diagnostics used to confirm the fault, and provides a step-by-step fix that has been verified on PCS 7 V9.0/V9.1 with PLCSIM V16/V17. The procedure also covers the equivalent configuration when the AS is replaced by a S7-400H station, an AS 410, or an ET 200SP CPU used in PCS 7.

Important: The S7 connection between AS and OS is a logical, configured link that exists independently of the physical layer. It is generated by the PCS 7 OS compile wizard and stored in the S7 program of the AS and the WinCC project of the OS. If the underlying subnet does not match, the wizard cannot generate a valid S7 connection even when the hardware is fully configured.

2. Root Cause Analysis

The fundamental cause of the missing AS-OS connection is a subnet mismatch between the Automation Station and the PC Station (ES/OS). In a PCS 7 project the AS is typically networked on one bus (MPI, PROFIBUS, or PROFINET) while the PC Station is networked on a different bus (usually Industrial Ethernet). The WinCC OS compile wizard can only create an S7 connection when both endpoints are members of the same S7 subnet object inside NetPro.

Three concrete conditions trigger the symptom described above:

  1. Different subnet types: AS connected to PROFIBUS or MPI, while the PC Station (OS single-station or OS server) is connected only to an Industrial Ethernet subnet. Without a shared subnet object, NetPro cannot resolve a partner for a new S7 connection.
  2. Same subnet type, different subnet IDs: Both stations are connected to PROFINET but to different PROFINET subnet objects (for example, PN/IO_1 vs. PN/IO_2). NetPro treats these as separate broadcast domains and refuses to generate an S7 connection.
  3. Missing PROFINET interface on the AS: The CPU has no PN port configured, or the PN port has been disabled. The OS wizard scans for valid PN endpoints; when none exist, the PLCSIM (TCP) entry is omitted.

A secondary cause is a multi-project split: when the AS project and the OS project are stored as separate sub-projects inside a PCS 7 multi-project and the multi-project has not been "adjusted" (merged) since the last hardware change, NetPro cannot resolve cross-project S7 connections.

3. Prerequisites and Environment

Component Recommended Version Notes
SIMATIC PCS 7 V9.0 SP2 / V9.1 / V9.1 SP1 OS compile wizard behavior is identical across V9.x
STEP 7 (SIMATIC Manager) V5.6 or included in PCS 7 V9.x Used for AS configuration and NetPro editing
WinCC (PCS 7 OS runtime) V7.5 / V7.5 SP1 Server or single-station variant
S7-PLCSIM V16 / V17 PLCSIM V15 does not support PN/IE S7 connections to WinCC
AS hardware (CPU) AS 410 (6ES7 410-3xx), AS 410H, AS 410E, or S7-400 CPU 416-3 PN/DP Must include PN interface
PC Station OS WinCC Application, IE General CP (CP 1623 / CP 1613 / virtual IE) PC station type must be "SIMATIC HMI Station" or "WinCC Application"

Before starting diagnostics, confirm the following project-side prerequisites:

  • The PCS 7 project opens without "Project inconsistent" warnings.
  • The AS hardware (HW Config) compiles cleanly: Station > Consistency Check shows no errors.
  • The PC Station HW Config contains an IE General (or CP 1623) entry with index 1 and a PROFINET IO or Industrial Ethernet subnet assigned.
  • The WinCC project inside the PC Station has the SIMATIC S7 PROTOCOL SUITE channel loaded.

4. Diagnostic Procedure

Follow these diagnostic steps in order. Each step produces a verifiable observation that confirms or eliminates a possible cause.

4.1 Inspect NetPro on the ES

  1. Open SIMATIC Manager and select the ES project.
  2. Double-click NetPro in the component view.
  3. Verify the AS and the PC Station are both visible in the network view.
  4. Note the subnet icon attached to each station's interface. The AS will show its PROFIBUS/MPI/PROFINET subnet; the PC Station will show its Industrial Ethernet subnet.

4.2 Confirm Subnet Membership

Right-click the AS PROFINET interface > Object Properties > tab Interfaces > field Subnet. The drop-down must show a PROFINET subnet that is also assigned to the PC Station's IE General. If the two are different subnets (even if the names look identical), the OS compile wizard cannot establish a logical S7 connection.

4.3 Attempt a Manual S7 Connection

  1. In NetPro, right-click the AS and choose Insert New Connection.
  2. In the partner dialog, select (Unspecified) or PC Station.
  3. If no valid partner is listed, the OS side of the project is either missing or on a non-matching subnet.

4.4 Verify WinCC OS Project Network Entry

  1. Open the OS project in WinCC Explorer.
  2. Right-click Tag Management > SIMATIC S7 PROTOCOL SUITE > TCP/IP.
  3. Confirm a connection named S7OSLNK or a user-defined connection exists, with a valid IP address and rack/slot of the AS CPU.
  4. If the entry is missing or shows a red "X", the OS compile wizard has not yet generated it because no valid AS endpoint was found.

5. Solution: Merge Subnets in NetPro

The canonical fix for the symptoms above is to ensure that the AS PROFINET interface and the PC Station IE interface share the same subnet object inside NetPro. There are two proven methods; use the first unless a multi-project setup is in use.

5.1 Method A — Assign the Existing Subnet

  1. In NetPro, right-click the AS PROFINET interface > Object Properties.
  2. On the Interfaces tab, click New if no PROFINET subnet exists, or select the existing subnet that the PC Station already uses.
  3. Click OK. NetPro now shows both stations linked by a single subnet line.
  4. Save and compile NetPro (Network > Save and Compile). Confirm no errors in the output window.

5.2 Method B — Multi-Project Merge

When the AS and the PC Station reside in separate sub-projects of a PCS 7 multi-project, the merge operation unifies the network view.

  1. In SIMATIC Manager, right-click the multi-project root.
  2. Select Multi-Project > Adjust Projects (or Adjust to Multi-Project in older versions).
  3. When prompted, choose Merge Subnets for PROFINET and PROFIBUS as applicable.
  4. Confirm with OK and wait for the consistency check to complete.
  5. Re-open NetPro and verify both stations are now connected to the same subnet.
Critical: After a multi-project merge, always re-run Station > Consistency Check on the AS and Compile OS on the OS. The merge invalidates previously generated S7 connections and forces the wizards to regenerate them.

6. Solution: Configure PROFINET IO on the AS

If the AS hardware has no PROFINET interface configured, the OS compile wizard cannot create an IE-based S7 connection even if the PC Station is on Industrial Ethernet. The fix is to enable the PN interface on the CPU.

  1. Open HW Config for the AS.
  2. Double-click the CPU entry (for example, CPU 416-3 PN/DP or CPU 410-5H).
  3. In the Properties dialog, select the PROFINET Interface tab.
  4. Click New to create a PROFINET subnet, or attach the CPU to the existing Ethernet subnet.
  5. Assign an IP address consistent with the OS project (default: 192.168.0.1 for AS, 192.168.0.2 for OS).
  6. Save and compile HW Config.
  7. Return to NetPro; the AS now appears with a PN subnet. Repeat Method A from Section 5 to merge with the PC Station subnet.

The general principle of S7-connection establishment across subnets is documented in Siemens' official S7 communication reference, which describes the configuration of an S7 connection between two S7 CPUs across PROFINET. The same end-to-end logic applies when one of the endpoints is a WinCC OS application: both endpoints must share exactly one common subnet, and that subnet must be of a type supported by the OS channel driver (TCP/IP for PROFINET/Industrial Ethernet, Named Connections for PC internal, MPI for legacy).

7. AS-OS Connection Compilation in WinCC

Once the subnet topology is correct, regenerate the AS-OS connection through the OS compile wizard.

  1. In SIMATIC Manager, select the OS object (for example, OS1).
  2. Right-click and choose Compile OS (or use Options > OS > Compile OS).
  3. The wizard scans NetPro for S7 connections between the AS and the OS. A list of available connections appears.
  4. Select S7 Connection with type TCP/IP and check the box PLCSIM (TCP/IP) if targeting PLCSIM.
  5. Click Compile. The wizard writes the connection entry to the WinCC project and generates the matching blocks in the AS S7 program.
Engineering Tip: The compile wizard generates the connection only when both endpoints are valid. If the wizard reports "No connection found", re-verify the subnet membership from Section 4 before assuming a software defect.

8. Verification and Commissioning

After applying the fix, validate the AS-OS link end-to-end before declaring the project ready.

8.1 NetPro Consistency

  1. Open NetPro and select Network > Consistency Check.
  2. Confirm the output window reports "No errors" and "No warnings".

8.2 S7-PLCSIM Connection Test

  1. Start S7-PLCSIM and download the AS program to the simulated CPU.
  2. Start the WinCC Runtime on the OS.
  3. In the WinCC channel diagnosis (Start > SIMATIC > WinCC > Channel Diagnosis), confirm the connection state shows a green check.
  4. Force a tag value in PLCSIM and verify it updates in the WinCC screen within one acquisition cycle (typically 1 second).

8.3 Tag Visibility

Open WinCC Explorer > Tag Management > SIMATIC S7 PROTOCOL SUITE > TCP/IP > the OS-generated connection. The tag list should now show the AS process tags without red exclamation marks. A red exclamation indicates that the tag address could not be resolved against the AS symbol table — re-run Compile OS to refresh the tag database.

9. Common Configuration Errors

Symptom Likely Cause Corrective Action
OS wizard lists no connections AS not on same subnet as PC Station Merge subnets via NetPro (Section 5)
Connection present but red in Runtime PLCSIM not running, or wrong IP Start PLCSIM, verify IP matches HW Config
Tags show red exclamation OS compile not refreshed Re-run Compile OS with "Update Tag List"
Wizard offers only MPI option AS CPU has no PN interface enabled Enable PN interface (Section 6)
Multi-project cannot add S7 connection Sub-projects not merged Right-click multi-project > Adjust Projects
NetPro reports duplicate IP Two stations assigned the same IP Re-assign unique IPs in HW Config
S7 connection greyed out Connection locked by another ES Close ES session on other station, re-open

10. PLCSIM-Specific Limitations

PLCSIM emulates an S7 CPU but imposes constraints that do not exist on physical hardware. Engineers using PLCSIM as a virtual AS must observe the following boundaries:

  • PLCSIM V16+ supports TCP/IP-based S7 connections to WinCC Runtime. Earlier versions (V13-V15) support only MPI/DP and cannot host an AS-OS connection over Industrial Ethernet.
  • PLCSIM instance limit: Only one PLCSIM instance can run per Windows session on the same IP. For redundant OS servers, configure two distinct IP addresses on two virtual NICs.
  • Time behavior: PLCSIM executes scan cycles at the configured OB1 cycle time; do not expect real-time I/O response when validating with simulated I/O.
  • F-CPU support: PLCSIM does not support F-runtime groups; safety-related S7 connections (F-S7) cannot be tested with PLCSIM. Use a physical F-CPU for F-commissioning.
Safety Notice: When configuring safety-related S7 connections between F-CPUs in a real PCS 7 environment, the procedure requires one S7 connection per F-CPU pair in the network view of the hardware and network editor. PLCSIM is not an acceptable substitute for F-commissioning.

11. Diagnostic Decision Matrix

Layer Check Command / Location Expected Result
Project Multi-project adjusted Right-click multi-project > Adjust Projects No inconsistencies
HW Config AS PN interface enabled CPU Properties > PROFINET Interface Subnet assigned, IP set
HW Config OS IE General configured PC Station Properties > IE General Same subnet as AS
NetPro Subnet line drawn Visual inspection AS and PC Station linked
NetPro S7 connection present AS > S7 Connections Partner = PC Station, type TCP/IP
OS Compile Wizard offers connection Right-click OS > Compile OS PLCSIM (TCP/IP) listed
Runtime Channel Diagnosis WinCC > Channel Diagnosis Connection = OK (green)
Runtime Tag update WinCC screen > I/O field Value updates within cycle

12. Frequently Asked Questions

Why does the OS compile wizard not list the PLCSIM (TCP/IP) connection?

The wizard cannot find a valid S7 connection because the AS PROFINET interface and the PC Station Industrial Ethernet interface are on different subnet objects in NetPro. Open NetPro, merge both stations onto a single PROFINET subnet, and recompile.

Can I use S7-PLCSIM to test safety-related S7 connections in PCS 7?

No. PLCSIM does not support F-runtime groups. Safety-related S7 connections between F-CPUs must be commissioned on physical F-hardware; per Siemens documentation, each F-CPU pair requires its own configured S7 connection in the network view.

What is the difference between PROFIBUS, MPI, and PROFINET for an AS-OS connection?

PROFIBUS and MPI are legacy fieldbuses that require CP cards on the PC Station. PROFINET/Industrial Ethernet is the recommended path for new PCS 7 projects and is the only option supported by PLCSIM V16+ for WinCC OS connections. The connection type is selected in the OS compile wizard based on the subnet the OS PC Station is attached to.

How do I merge two subnets in a PCS 7 multi-project?

Right-click the multi-project root in SIMATIC Manager, select Multi-Project > Adjust Projects, and accept the merge prompts. The merge unifies subnets across all member projects and re-validates cross-project S7 connections. Always run Station > Consistency Check on the AS and Compile OS on the OS afterwards.

Tags show a red exclamation in WinCC even though the connection is green — what is wrong?

The connection is established but the tag database is stale. Re-run the OS compile wizard with the option "Update Tag List" enabled. This refreshes the symbol resolution against the AS S7 program and clears the red exclamation on existing tags.

Back to blog