IMDTouchKnowledge BaseShop main store

Troubleshooting

Why WinCC Connects to STEP 7 PLCSIM Only Over MPI

HMI and touchscreens Published 5 min read By IMDTouch engineering team

Short answer

A standalone WinCC project connects to classic STEP 7 PLCSIM over MPI, without being added to the STEP 7 project. Set the simulated PLC's MPI address in PLCSIM, select the MPI channel unit in WinCC, and enter that same address as the controller address on the HMI side.

On this page
  1. Why classic PLCSIM only speaks MPI
  2. Set the MPI address in PLCSIM
  3. Select the MPI channel unit in WinCC
  4. Matching MPI address 2 between S7-PLCSIM V5.3 and a WinCC MPI channel unit
  5. Integration into the STEP 7 project is optional
  6. Checklist when tags stay bad
  7. Questions asked

Yes, a standalone WinCC project connects to the simulator that ships with STEP 7 Classic — but only over MPI. The classic S7-PLCSIM exposes the simulated CPU on the MPI bus and gives WinCC no Ethernet endpoint, so a TCP/IP or auto-discovered connection finds nothing no matter how long you wait. The working setup is three matching settings: an MPI address on the simulated PLC, the MPI channel unit selected in WinCC, and that same PLC address entered as the controller address on the HMI side. WinCC does not have to be added to the STEP 7 project for any of this to work.

Why classic PLCSIM only speaks MPI #

The MPI bus carries several services — S7 basic communication, S7 communication, global data communication and PG/OP communication — and WinCC uses the S7 communication service across it. Classic PLCSIM presents the simulated CPU on that bus only; it does not open a TCP/IP endpoint that a WinCC connection could target. That is why the diagnosis is always an MPI-path diagnosis: three things must agree, and no amount of address tweaking fixes the other two.

  1. PLCSIM must be running the simulated CPU with your program loaded and in RUN.
  2. The WinCC connection must ride the MPI channel unit, not a TCP/IP or named route.
  3. The controller address on the HMI side must equal the MPI address configured in PLCSIM.

A different simulation route exists through the S7Online access point; that setup is covered step by step in Connecting WinCC to PLCSIM Through the S7Online Access Point. If your WinCC runtime connects to PLCSIM through that access point instead of the MPI channel unit, follow that article — the two routes do not mix.

Set the MPI address in PLCSIM #

In PLCSIM, open the PLC menu and choose MPI Address, then set or read the address configured for the simulated CPU and record it exactly. That address names a logical station on the MPI path; it does not select the path by itself, which is why a correct address alone never rescues a connection pointed at TCP/IP.

Before touching WinCC, prove the simulation is alive: change a known input or memory value in PLCSIM and watch the corresponding program value react. If the simulated program produces no changing values, WinCC has nothing to display and every later check is meaningless. Record which variable you used, so a communication fault never gets confused with a tag-definition fault.

Select the MPI channel unit in WinCC #

In WinCC, the documented channel for this link is the "MPI" channel unit, used to connect WinCC to S7-300 and S7-400 systems via MPI. Create the connection under that channel unit and enter the MPI address plus the slot of the CPU, exactly as the CPU is configured in STEP 7. The decisive entry is the simulated PLC's MPI address — not the HMI station's own address and not a value carried over from a previous project.

On older WinCC versions the documented route goes through the Access Point of Application, where you select MPI (WinCC), and the Connection tab then takes the MPI address and CPU slot. Either way, the controller address on the HMI side must hold the same number you read from PLCSIM.

Matching MPI address 2 between S7-PLCSIM V5.3 and a WinCC MPI channel unit #

Inputs: an S7-PLCSIM V5.3 simulation, for which the documented limit is that the connection runs via MPI at a default address of 2 (a figure from Siemens' own FAQ on linking WinCC to S7-PLCSIM); a WinCC project with the "MPI" channel unit available; the controller address field on the HMI side of the connection.

Rule in words: the connection reaches the simulated CPU only when the channel is MPI and the controller address equals the PLC's MPI address.

Arithmetic: PLCSIM reports MPI address 2. Set the HMI-side controller address to 2 and compare: 2 = 2, so both ends name the same station on the MPI path. Had the field held 3, the comparison 3 = 2 fails, and WinCC polls a station that does not exist.

Result: with the MPI channel unit selected and 2 in both places, runtime tags go to good quality and follow the values you change in PLCSIM.

Decision: on S7-PLCSIM V5.3, keep the channel at MPI and the address at 2; any other address, or any other channel, yields no data on every tag.

Integration into the STEP 7 project is optional #

Adding WinCC to the STEP 7 project centralizes engineering data, but it is not a communication prerequisite here: a separately started WinCC project connects once its MPI route and PLC address are set explicitly. Do not restructure the project just to fix an address mismatch — integration changes project organization, not the transport the runtime uses. How the two tools share data when they are integrated is laid out in How WinCC and STEP 7 work together in a PLC project, and if the split between the STEP 7 project and the HMI project itself is unclear, What STEP 7 is in a PLC project, and which one you need sorts out which tool holds which data.

Checklist when tags stay bad #

Work down the list in order; the first failed item is the fault.

  • Simulated CPU is in RUN with the STEP 7 program loaded.
  • One known PLC value changes inside PLCSIM when you toggle it.
  • The MPI address read from the PLC menu matches the WinCC controller address digit for digit.
  • The connection rides the "MPI" channel unit, not TCP/IP or a named route.
  • The CPU slot on the connection matches the CPU's slot in STEP 7.
  • The test tag is assigned to this MPI connection, not another one.
  • Runtime was stopped and restarted after the last connection edit.
  • Reads follow the simulated value, and a permitted write to a dedicated test variable changes the PLC value.

If reads work and writes do not, the MPI route is proven — inspect the tag's write permissions and the variable's location instead of touching the channel or the address again.

Questions asked

Can I connect WinCC to classic PLCSIM over Ethernet instead?

No. Classic S7-PLCSIM exposes the simulated CPU through MPI only, so the WinCC connection must use the MPI channel unit with a matching MPI address. A TCP/IP connection targets real hardware or newer simulation products that provide their own Ethernet endpoints; against the classic simulator it finds nothing.

Tags read correctly but writes from WinCC do nothing. What now?

Reads succeeding prove the MPI route and the address are correct, so leave the channel settings alone. Check the tag itself: whether the variable is a writable location such as a data bit or memory bit, whether the tag is assigned to the MPI connection, and whether write permission for that tag is enabled in runtime.

Why must WinCC runtime be restarted after changing the connection?

The channel unit and its connections are read when runtime starts. Edits made while runtime is already running do not take effect on the open connection. Stop runtime, apply the channel or address change, and start runtime again before judging whether the fix worked.

Keep reading

  • How-to

    How to Configure WinCC 7.0 PLC Connections With STEP 7

    No. WinCC 7.0 and STEP 7 5.4 never connect to each other; each one talks to the PLC, so configure two separate paths: the S7Online access point for STEP 7, and in WinCC Tag Management the MPI channel's Logical device name set to MPI (PLSIM for simulation). Acceptance is one known PLC value displayed live with valid status.

    HMI and touchscreens

  • How-to

    Connect an S7-400H to WinCC Professional with a Device Proxy

    Yes: keep the S7-400H project in SIMATIC Manager under STEP 7 V5.6, build the WinCC Professional V15.1 runtime station in TIA Portal, and join the two projects with a Device Proxy. Enable the redundancy option on the SIMATIC S7-300/400 connection so the runtime follows the active H-CPU, then prove the switchover on a bench before the plant relies on it.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Flexible Shows a Blank Station Search Over MPI

    A blank station field in WinCC flexible means the S7ONLINE programming path reaches the CPU but the HMI connection has no defined route. Give every MPI node a unique address — PG 0, panel 1, CPU 2, a second PC 3 — confirm the USB adapter supports OP as well as PG connections, and expect STEP 7 symbols only through an integrated HMI station.

    HMI and touchscreens

Why WinCC library symbols rotate only in 90 degree steps