Overview
Engineering a WinCC Unified runtime project against a real SIMATIC S7-1200, S7-1500, or ET 200 CPU is rarely the first step on a new machine. The standard commissioning flow is to bring up the HMI in the TIA Portal simulation, validate screen navigation, tag wiring, and alarm behavior, and only then move to a physical controller. The bottleneck in that flow has always been coupling the HMI simulation to a PLC simulation, because two distinct runtime instances must agree on the same transport, the same access point, and the same S7ONLINE routing path.
Since TIA Portal V17, Siemens formally supports running WinCC Unified Comfort Panel simulation in parallel with S7-PLCSIM (the standard variant) on the same engineering station. Earlier V16 attempts produced the diagnostic "The selected object cannot be downloaded to device" and the connection between the panel simulation and the PLC simulation would not establish because the S7ONLINE access point could not resolve a Unified runtime endpoint. With V17, the unified runtime is registered as a valid S7ONLINE target, and a standard PLCSIM instance is registered as the corresponding partner CPU.
This article walks through the supported configuration paths, the two most common failure modes (PG/PC interface mismatch and the V16 incompatibility), and the verification checks that confirm a working HMI-to-PLC simulation link. Examples are written for TIA Portal V17 and later, including V20, with notes on PLCSIM Advanced for projects that need larger tag counts, distributed I/O, or multi-CPU simulation.
Prerequisites
Before starting, confirm that the engineering station meets the tool-stack requirements. A misaligned TIA Portal / PLCSIM / WinCC Unified version pair is the most common reason the simulation pair refuses to start.
| Component | Minimum Version | Recommended | Notes |
|---|---|---|---|
| TIA Portal | V17 Update 4 or later | V18 / V19 / V20 | Unified simulation to PLCSIM is only enabled from V17 onward. |
| S7-PLCSIM (standard) | V17 | Matches TIA Portal major version | Used for S7-1200 and S7-1500 single-instance simulation. |
| PLCSIM Advanced | V3.0 or later | V4.x (matches TIA major) | Use when S7-PLCSIM cannot start, or for multi-CPU / API coupling. |
| WinCC Unified Comfort | V17 | Matches TIA Portal | Target: Unified Comfort Panel (e.g., TP700 Comfort) or Unified PC Runtime. |
| Windows | Win 10 LTSC 2019 / Win 11 | 64-bit | Loopback adapters must be enabled for Softnet-style connections. |
| Admin rights | Required for install and first PG/PC edit | — | Set PG/PC interface access requires elevation. |
Verify that the TIA Portal installation includes the WinCC Unified option package and the S7-PLCSIM option package. On Siemens downloads, the package is SIMATIC STEP 7 incl. Safety, S7-PLCSIM and WinCC V17 TRIAL for trial users, while production deployments must license the WinCC Unified Comfort add-on separately.
PG/PC Interface and S7ONLINE Access Point
Every WinCC Unified runtime — physical or simulated — communicates with STEP 7 through the S7ONLINE access point. The PG/PC interface assignment is therefore the single most important setting in the entire flow. If the access point does not resolve to the loopback instance that PLCSIM publishes, the Unified runtime will silently fail to establish the S7 connection and the panel will show a connection-loss alarm on every screen.
- Close all TIA Portal instances.
- Open the Windows Control Panel → Set PG/PC Interface applet (the classic 32-bit applet, not the modern Windows settings).
- Under Application Access Point, select S7ONLINE (STEP 7) -> TCP/IP (Auto) when using a hardware Ethernet adapter against PLCSIM Advanced in Ethernet Adapter mode.
- When running PLCSIM Advanced over its PLCSIM Adapter virtual NIC, select S7ONLINE (STEP 7) -> PLCSIM Adapter (or PLCSIM Virtual Ethernet Adapter depending on driver wording).
- Click OK and confirm the dialog warning about overwriting the assignment.
Step-by-Step: PLCSIM Standard + WinCC Unified (TIA V17+)
This is the supported, official path for a single-CPU project that targets an S7-1500 (or S7-1200 with V4.4 firmware and later) and a Unified Comfort Panel.
- In TIA Portal, open the project that contains the PLC and the HMI device.
- Right-click the PLC in the project tree and choose Start simulation. PLCSIM opens, powers on the instance, and the PLC enters RUN.
- Right-click the HMI device (Unified Comfort Panel) and choose Start simulation. TIA Portal builds the Unified runtime and starts a local RT process that emulates the panel.
- Open Online → Simulation → Start from the menu bar if the toolbar icon is hidden. All three paths (context menu, toolbar, menu) are equivalent per the Siemens TIA Portal V20 Unified simulation manual.
- In the HMI simulation window, navigate to a screen that binds a tag from the PLC. The tag value should update as soon as the PLC is in RUN and the connection is up.
- To stop: close the PLCSIM window (this drops the connection cleanly) and then stop the Unified simulation from the toolbar.
Step-by-Step: PLCSIM Advanced + WinCC Unified
PLCSIM Advanced is required whenever the standard PLCSIM cannot load the hardware configuration (for example, projects with safety blocks, multi-CPU PN/IO, or projects that need a TCP/IP listen socket from the CPU program). The configuration steps differ because PLCSIM Advanced exposes its own virtual Ethernet adapter and a separate Instance model.
- Start PLCSIM Advanced and create a new instance. Set Communication Interface to PLCSIM Virtual Ethernet Adapter (or Ethernet Adapter to bind a physical NIC).
- Set the CPU type to match the project's PLC (for example, CPU 1516-3 PN/DP) and click Start.
- In TIA Portal, open the project, then go to Online → Accessible Nodes and confirm that the PLCSIM Advanced instance appears with its IP address.
- Download the hardware configuration and the program to the PLCSIM Advanced instance. Power on the CPU and place it in RUN.
- Set the PG/PC interface to S7ONLINE (STEP 7) -> PLCSIM Adapter (or the matching virtual adapter entry). This is the entry point that PLCSIM Advanced registers at install time.
- Start the HMI simulation as in the standard flow. The Unified runtime resolves the S7ONLINE endpoint to the PLCSIM Advanced instance and the connection establishes.
- To stop, power off the PLCSIM Advanced instance (this triggers a clean connection-loss alarm in the panel) and close the PLCSIM Advanced window.
Connection Configuration in the HMI Project
The HMI connection must be configured as a SIMATIC S7-1500 (or S7-1200) type and pointed at the CPU whose instance is running in PLCSIM. The most common mistake is leaving the connection on the S7-300/400 type inherited from a copied project — PLCSIM Unified will not bring up that connection.
| Parameter | Value for PLCSIM Standard | Value for PLCSIM Advanced |
|---|---|---|
| Connection type | S7-1500 | S7-1500 |
| PLC address | Loopback (127.0.0.1 / PLCSIM) | PLCSIM Advanced instance IP |
| Access point | S7ONLINE (STEP 7) | S7ONLINE (STEP 7) |
| PG/PC interface | TCP/IP (Auto) on the same adapter that routes to PLCSIM | PLCSIM Virtual Ethernet Adapter |
| Connection mode | PUT/GET not required for S7-1500 | PUT/GET not required for S7-1500 |
The address parameter in the HMI connection editor should be set to the IP address of the simulated CPU. For PLCSIM standard, the project will normally pre-populate this from the device configuration (typically 192.168.0.1 or whatever was set in the device properties). For PLCSIM Advanced, verify the IP shown in the Accessible Nodes window matches the HMI connection target.
Troubleshooting Matrix
| Symptom | Probable Cause | Resolution |
|---|---|---|
| "The selected object cannot be downloaded to device" when starting HMI sim | TIA Portal V16 or earlier | Upgrade to TIA V17 or later. PLCSIM coupling to Unified runtime is not supported in V16. |
| Panel sim starts, all tags show connection-loss symbol | PG/PC interface does not resolve to PLCSIM | Close TIA, set PG/PC interface to PLCSIM Adapter or TCP/IP (Auto), reopen. |
| PLCSIM starts, but Online -> Accessible Nodes shows no CPU | Wrong virtual adapter, or firewall blocking port 102 | Confirm PLCSIM instance is in RUN, allow Siemens apps through Windows Firewall, re-check PG/PC. |
| Tags update for ~2 s, then drop to quality bad | PLCSIM was closed or powered off | Keep PLCSIM running while the HMI sim is active; restart both in order PLC first, then HMI. |
| HMI sim runs, but only the locally simulated tags update | HMI connection points at a different CPU than the one in PLCSIM | In Devices & Networks, verify the HMI connection's partner is the active PLCSIM CPU. |
| WinCC Unified simulation option not visible in project tree | WinCC Unified option package not installed | Reinstall with the Unified option selected, license the RT Comfort. |
| TP700 Comfort panel added as a second HMI works, but Unified sim does not | Two different runtime generations; PLCSIM couples only to Unified RT in V17+ | Continue with Unified RT, or accept that the Comfort RT uses a different S7ONLINE path. |
Verification Checks
Once both simulations are running, run a structured verification before declaring the rig ready for screen-level testing. Each check isolates a single layer of the stack so that any future failure points to a specific subsystem.
-
PLC side: In PLCSIM, add a watch table on a tag that the HMI references (for example,
"DB_HMI".Speed). Force the value and confirm the HMI screen updates within one poll cycle (default 1 s for cyclic tags). - HMI side: Open the Unified simulation, navigate to the screen bound to that tag, and confirm the displayed value matches the watch table.
- Alarm side: Trigger a discrete alarm in the PLC. The Unified alarm control should show the alarm as active with the configured priority and text.
- Connection diagnostics: In the HMI simulation, open System diagnostics → Connections. The status of the S7-1500 connection should read Connected and the statistics counters should be incrementing.
- Download on change: Edit a tag, recompile the HMI, and confirm the change is pushed to the running simulation without the "selected object cannot be downloaded" error. If the error reappears, the PG/PC access point has been redirected to a non-PLCSIM adapter.
Working with S7-1200 in the Simulation Loop
S7-1200 support in the PLCSIM + WinCC Unified pair is also enabled from TIA V17. The CPU must be on firmware V4.4 or later, and the project must use the S7-1200 device variant that is license-compatible with PLCSIM (the standard PLCSIM includes the S7-1200 simulation). The configuration steps are identical to the S7-1500 case; only the device substitution in the project tree changes.
When the target firmware is older than V4.4, the standard PLCSIM refuses to load the configuration with a "Firmware version not supported" error. In that case, switch the engineering target to a newer CPU variant in the project (without changing the physical deployment), simulate against PLCSIM, and then swap back to the original firmware at the time of hardware download.
Why V16 Fails and What Changed in V17
Under TIA V16, the Unified Comfort runtime was not registered as a discoverable S7ONLINE endpoint for the panel simulation. The S7ONLINE stack saw the running PLCSIM instance but had no second S7ONLINE consumer to pair it with, so the connection could not be established and the engineering environment returned the "selected object cannot be downloaded to device" message. Standard Comfort panels (for example, TP700 Comfort) used a different runtime path that was already registered in S7ONLINE, which is why a TP700 panel could be downloaded against PLCSIM V16 even though the Unified Comfort panel could not.
V17 introduced the necessary runtime registration, allowing the Unified simulation to consume the S7ONLINE channel that PLCSIM publishes. The release also added a tight integration in the project tree so that the Start simulation command on a Unified panel and on a PLCSIM instance share lifecycle and resource state. For further reading on the V20 simulation flow, see the Siemens TIA Portal V20 Unified simulation manual and the Siemens KB attachment 109748099 on simulating HMI projects with SIMATIC controllers.
Field-Proven Caveats
- Always start PLCSIM before the HMI simulation. If the HMI sim is already up when the PLC sim starts, the S7ONLINE endpoint negotiation can fail silently and the connection will stay down until both are restarted.
- If you have multiple NICs (for example, a corporate Ethernet and a USB-to-Ethernet adapter for the machine network), bind PG/PC interface to the adapter that physically reaches the simulated CPU. A mismatch is the dominant cause of Accessible Nodes returning an empty list.
- Do not stop PLCSIM while the HMI simulation is still running. Stop the HMI first, then PLCSIM. Stopping PLCSIM first produces a controlled connection-loss alarm that the operator screens must handle, but stopping the HMI first is the cleaner shutdown path.
- Unified simulation caches the last known S7ONLINE endpoint for the duration of the RT process. Changing the PG/PC interface assignment while the HMI sim is running does not redirect the cached connection. Stop and restart the HMI sim after any PG/PC interface change.
- For projects with multiple HMI devices, each HMI must establish its own S7ONLINE connection to the same PLCSIM instance. PLCSIM supports multiple concurrent partner connections on a single simulated CPU.
FAQ
Does PLCSIM V16 work with WinCC Unified simulation?
No. PLCSIM V16 cannot establish a connection to the Unified Comfort runtime, and the panel simulation will return the error "The selected object cannot be downloaded to device." Upgrade to TIA Portal V17 or later, which registers the Unified runtime as a valid S7ONLINE consumer.
Which PG/PC interface must I select for PLCSIM Advanced?
Select S7ONLINE (STEP 7) -> PLCSIM Adapter (or "PLCSIM Virtual Ethernet Adapter" depending on driver wording) so that S7ONLINE routes to the PLCSIM Advanced virtual NIC. For hardware-bound simulation on a physical adapter, use S7ONLINE -> TCP/IP (Auto) on the matching Ethernet adapter.
Can I simulate an S7-1200 with WinCC Unified in TIA V17?
Yes. The PLC must be on firmware V4.4 or later. Use the standard PLCSIM (not Advanced) for a single S7-1200 instance, set the PG/PC interface to TCP/IP (Auto) on the loopback adapter, and start the PLC simulation before the HMI simulation.
Why do my tags show quality "bad" even though both simulations are running?
Most often the PG/PC interface was changed after TIA Portal opened, or the S7ONLINE access point is bound to a different adapter than the one the simulated CPU is listening on. Close TIA Portal, correct the PG/PC interface assignment, reopen the project, and restart the simulations in the order PLC first, HMI second.