How-to
Connecting WinCC to PLCSIM Through the S7Online Access Point
Short answer
WinCC exchanges external tags with an S7-300 program in PLCSIM through the MPI channel of SIMATIC S7 Protocol Suite with logical device name S7Online, station address 2 and slot number 2. The deciding point is the complete access-point route to the simulated CPU; setting PG/PC to None is installation-dependent, not a required step.
On this page
- The route from a WinCC tag to the simulated CPU
- What this procedure does not cover
- Bring the simulated CPU up first
- Assign the S7Online access point
- Add the protocol suite and set the logical device name
- Create the MPI connection and set the slot
- Worked example: a single-rack S7-300 with the CPU in slot 2
- Verify the connection in WinCC
- When it still does not connect
- Questions asked
WinCC exchanges external tags with an S7-300 program running in PLCSIM through the MPI channel of the SIMATIC S7 Protocol Suite, with logical device name S7Online and a driver connection set to station address 2 and slot number 2. The deciding point is the route: the WinCC channel must resolve through the S7ONLINE access point to the simulated CPU. Setting the PG/PC interfaces to None, as one circulating instruction sequence does, is an installation-dependent starting condition, not a required step. This procedure builds the route in order and verifies it with the driver status display. One caution belongs up front: simulation proves screens and logic at the desk, never the safety behavior of a machine — that is proven on the real controller.
The route from a WinCC tag to the simulated CPU #
An external tag is a WinCC variable bound to an address in the controller; an internal tag exists only inside WinCC. The chain that carries an external tag to PLCSIM has four links, and every fault in this setup is one of them broken:
- the driver connection created under the MPI channel of SIMATIC S7 Protocol Suite
- the channel's logical device name, set to S7Online
- the S7ONLINE access point in Set PG/PC Interface
- the interface assigned to that access point for the current session, leading to PLCSIM
An access point is a named routing entry that ties an application to a communications interface. A matching name alone proves nothing about where the route ends, which is why the checks below confirm the route rather than the spelling. Selecting the MPI channel for local simulation does not require a physical MPI adapter — the routing stays inside the PC.
What this procedure does not cover #
The S7-300 path and the other paths here are different architectures, not different settings:
| What you have | The path that exists | Endpoint for WinCC |
|---|---|---|
| S7-300/400 project in STEP7, running in PLCSIM | SIMATIC S7 Protocol Suite, MPI channel, logical device name S7Online | Yes — this procedure |
| S7-200 program in MicroWin | File/Export to an .awl file, loaded into the S7-200 simulator | No — that simulator has no addressable endpoint |
| S7-200 data needed in WinCC | PC Access as the OPC server on the PC side | Separate integration path, not a setting here |
| WinCC OA against classic PLCSIM | A TCP bridge such as NetToPLCSim | Different product, different route |
Versions bind as sets: SIMATIC S7 V5.1 pairs with the WinCC releases documented for it, and a desk running WinCC 7.2 on Windows 7 Ultimate is a combination of that era. Record the installed set, but draw no version conclusion until the route checks below have passed — most suspected version failures are routing failures.
Bring the simulated CPU up first #
- Open the project in STEP7 and start PLCSIM.
- If STEP7 is online with a physical S7-300, break that connection first; while it stands, the simulation module will not open.
- Confirm the download target is the simulated CPU, then download the hardware configuration and the program.
- Switch the simulated CPU to RUN and apply the simulated inputs the logic needs.
- Monitor one program-driven variable in STEP7 or PLCSIM and confirm it behaves as the logic dictates.
A WinCC connection cannot compensate for an empty or stopped simulated CPU. For the first communication test, pick a value that holds still or that you change deliberately — a fast-changing sequence makes a poor reference.
Assign the S7Online access point #
- Open Set PG/PC Interface in the Windows Control Panel.
- Locate the access points S7ONLINE and WINCC in the list.
- Assign S7ONLINE the interface parameter set that belongs to the active simulation session.
- Return to STEP7 and repeat the download or an online access. The route is proven when the operation reaches the simulated CPU without the message "PG/PC interface has not been assigned any interface parameter".
One circulating sequence sets both S7ONLINE and WINCC to None before starting WinCC; other installations simulate with the assignments they already use against a real S7-300. Both can work, because the requirement is not None — it is one consistent route to the simulated CPU. Decide by result: whatever assignment lets STEP7 reach PLCSIM is the assignment WinCC inherits through S7Online. When S7ONLINE is missing from the dialog altogether, restore the access point first; that repair is covered in the write-up on S7Online missing from Set PG/PC Interface. If the same desk also serves physical CPUs, keep the assignments already proven for configuring WinCC 7.0 PLC connections with STEP 7 — simulation and the physical link share the access point, just never at the same time.
Add the protocol suite and set the logical device name #
- In WinCC Explorer, right-click Tag Management and choose Add New Driver.
- Select SIMATIC S7 Protocol Suite.CHN and confirm.
- Under the new driver, right-click MPI and choose System Parameters.
- On the Unit tab, set the logical device name to S7Online and confirm.
- Reopen the parameters once and verify that S7Online is still the selected entry.
This setting is the first thing to read when a connection fails on an unfamiliar pairing. The reported case of WinCC V8.0 with PLCSIM V5.4 under STEP 7 V5.7 SP1 refusing data came down to reading which access point the MPI channel settings carried — the channel, not the installation, decides here. Keep the layers separate while working: a missing driver prevents the connection from existing, the wrong channel selects a different path, and the wrong logical device name sends requests through the wrong routing entry. Changing all three at once hides which correction worked.
Create the MPI connection and set the slot #
- Right-click MPI and choose New Driver Connection; give it a name such as PLC1.
- Open the connection's Properties.
- Set Station Address to 2, Slot Number to 2 and Rack Number to 0; leave the remaining fields at 0.
- Confirm, then create the external tags the connection will carry.
Station Address is the partner CPU's MPI node address, and 2 is the S7-300 factory setting on a subnet whose PG holds 0 and whose OP holds 1. Slot Number is the CPU's position in the rack, and Rack Number identifies the rack holding it. These fields copy the CPU's identity; they are not tunable. Every S7 client binds the same way, which is the reason an S7-400 device stays disconnected by CPU slot the moment the number does not match the controller.
Worked example: a single-rack S7-300 with the CPU in slot 2 #
The inputs, each with its origin:
- Controller: an S7-300 in one rack — the configuration this procedure is written for.
- CPU MPI node address: 2, the factory setting, on a subnet whose PG default is 0 and OP default is 1.
- CPU position: slot 2, because an S7-300 rack reserves slot 1 for the power supply, slot 2 for the CPU and slot 3 for the interface module.
- Connection fields from the procedure: Station Address 2, Slot Number 2, Rack Number 0, every other field 0.
The rule in words: the connection's Station Address must equal the CPU's MPI node address, Slot Number must equal the CPU's slot, Rack Number must equal the CPU's rack, and every node address on the subnet must be unique within the range 0 to 31.
The arithmetic, written out:
- Node addresses in use: PG = 0, OP = 1, CPU = 2. The three differ pairwise (0 ≠ 1, 1 ≠ 2, 0 ≠ 2), and 2 ≤ 31, so address 2 is conflict-free and inside range.
- CPU slot: the rack map fixes the power supply at slot 1 and the CPU at slot 2, so Slot Number = 2.
- Rack: one central rack, and rack numbering starts at 0, so Rack Number = 0.
Result: Station Address 2, Rack Number 0, Slot Number 2, remaining fields 0.
Decision: hold these values for any standard single-rack S7-300 — they follow from the hardware, not from tuning. Change Slot Number only if the hardware configuration genuinely places the CPU elsewhere, and Station Address only if the CPU's node address was changed from 2. With these values, a Status OK reading in the driver status display proves the route; the same values failing point upstream of the connection — access point, CPU run state, or software combination.
Verify the connection in WinCC #
- Build the smallest screen that tests anything: one I/O field bound to one external tag whose address the program actually writes.
- Start the WinCC runtime.
- From the WinCC Explorer Tools menu, open the status display for driver connections.
- Confirm the PLC1 connection reports Status OK.
- Force the variable in PLCSIM and watch the I/O field follow; then write from the I/O field and watch the value follow in PLCSIM.
Values that run correctly at first and then misbehave are not a routing fault — look at the program's timing assumptions and at the tag addresses before rebuilding the connection. Status OK with dead values is a different failure, and on WinCC Runtime Professional it has its own trace: read why WinCC Runtime Professional shows no data from PLCSIM before touching this route again.
When it still does not connect #
Work the list in order:
- The MPI channel's logical device name is not S7Online — read it first, even on a pairing you suspect of version trouble.
- Set PG/PC Interface reports "PG/PC interface has not been assigned any interface parameter" — fix the assignment before changing any tag or screen.
- Slot Number or Rack Number does not match the CPU's position — the connection cannot find the CPU.
- The simulated CPU sits in STOP — the route is fine; the program is not executing.
- STEP7 is still online with the physical S7-300 — PLCSIM cannot open alongside that connection.
- The installed set was never a documented combination — conclude this only after the five checks above pass.
Once the same station is pointed at a physical CPU instead of PLCSIM and goes quiet, the diagnostic order is the one for tracing WinCC receiving no data from an S7 PLC: the route is longer there, but it is read the same way, link by link.
Questions asked
Do S7ONLINE and WINCC really have to be set to None for simulation?
No. None is one starting condition some installations use, not a requirement. What must hold is one consistent route: the access point that lets STEP7 reach PLCSIM is the one WinCC resolves through S7Online. Installations that keep the assignments used with a physical S7-300 simulate the same way, provided the online connection to the real CPU is broken before PLCSIM opens, and the runtime is restarted after any assignment change so the channel re-reads its route.
Can this procedure connect WinCC to an S7-200 in simulation?
No. The SIMATIC S7 Protocol Suite path through PLCSIM exists for S7-300/400 projects only. An S7-200 program from MicroWin reaches its own simulator by exporting an .awl file and loading it there, and that simulator offers no endpoint WinCC can address. S7-200 data reaches WinCC through PC Access as a separate OPC integration, not through any setting in this procedure.
What does 'PG/PC interface has not been assigned any interface parameter' mean?
It means the access point used for the operation has no interface behind it, so STEP7 has no route to any CPU. Open Set PG/PC Interface, select the access point used for the download, assign the interface that belongs to the active simulation session, then repeat the download. Fix this before touching WinCC tags or screens, because the WinCC channel inherits the same route through S7Online.
Why station address 2 and slot number 2 specifically?
Address 2 is the factory MPI node address of an S7-300 CPU on a subnet where the PG holds 0 and an OP holds 1, and slot 2 is the fixed CPU position in an S7-300 rack, which reserves slot 1 for the power supply. The connection fields copy the CPU's identity, so both values stand unless the hardware configuration places the CPU elsewhere or its node address was deliberately changed.
Status shows OK but the values on screen do not move. What next?
Status OK proves the route reached a CPU, not that your tags point anywhere the program writes. Confirm the simulated CPU is in RUN, that simulated inputs are applied, and that each external tag's address matches a variable the logic actually drives. Test with a slow, forced value first; a fast-changing sequence can look dead on screen at normal refresh rates and mislead you into rebuilding a healthy connection.