How-to
Run WinCC Flexible Runtime on PC Over MPI
Short answer
Yes. Point the S7ONLINE (STEP 7) access point in Set PG/PC Interface at your MPI hardware, give the PC the MPI address the panel used, set the project connection to SIMATIC S7 300/400, and start it with Project > Compiler > Start Runtime; the PC then polls the CPU 314 over MPI like the panel would.
On this page
- What do I need to run a WinCC Flexible project on my PC?
- How do I set the PG/PC interface for MPI?
- Which MPI address and baud rate does the PC runtime use?
- How do I configure the connection inside WinCC Flexible?
- How do I compile and start the runtime?
- Why does the runtime fail to connect over MPI?
- Questions asked
Yes. A WinCC Flexible Advanced 2007 project written for a touch panel runs on your PC without one: set the S7ONLINE (STEP 7) access point in Set PG/PC Interface to your MPI hardware, give the PC the MPI address the panel would have used, then choose Project > Compiler > Start Runtime. The PC runtime logs onto the MPI segment under that address and polls the S7-300 CPU 314 exactly as a panel would, over the same cable you used to upload the PLC program. This article gives the interface settings, the address plan, the project connection settings, and the three faults that most often stop the link.
What do I need to run a WinCC Flexible project on my PC? #
You need four things: WinCC Flexible Advanced 2007 or 2008 with the runtime component installed, an MPI interface in or on the PC, a runtime license, and the CPU 314 reachable on the MPI segment you already used to upload the program.
The interface is either a USB programming adapter or an MPI card such as a CP 5611 or CP 5613; the adapter is the common bench choice. WinCC Flexible 2007 SP3 targets the 32-bit Windows releases of its era, so check the release notes for your exact service pack before installing on a newer PC. Without a license the runtime starts in trial mode and stops when the trial period ends, so put the license in place before commissioning week. Nothing else is required: no panel, no firmware image, and no change to the PLC program.
How do I set the PG/PC interface for MPI? #
Open Options, then Set PG/PC Interface in SIMATIC Manager, select the access point S7ONLINE (STEP 7), and assign that access point to your MPI hardware, because both the STEP 7 downloader and the WinCC Flexible runtime take their bus driver from this one assignment.
- In SIMATIC Manager, choose Options > Set PG/PC Interface. The same applet sits in the Windows control panel under the same name.
- In the field for the access point in use, select S7ONLINE (STEP 7).
- From the interface parameter list, pick the entry that matches your hardware: PC Adapter (MPI) for the USB adapter, or CP5611 (MPI) and CP5613 (MPI) for the card versions.
- Open Properties and set the local address, the transmission rate and the highest station address to the values in the address plan in the next section.
- Confirm both dialogs with OK. The assignment takes effect immediately for every SIMATIC tool on the PC.
The access point decides what the runtime talks to, not the project: if S7ONLINE still points at a simulator from earlier bench work, the runtime opens the wrong driver and finds nothing. The same trap applies on the simulation side, and the article PLCSIM communication fails until S7ONLINE targets PLCSIM shows it in detail.
Which MPI address and baud rate does the PC runtime use? #
Give the PC the MPI address the panel would have used, keep every address on the segment unique, and set the transmission rate to 187.5 kbps, the S7-300 MPI default, with 31 as the highest station address unless your segment is configured differently.
Worked example on a bench segment. The CPU 314 keeps its factory MPI address 2, the programming station keeps address 0, and the PC runtime takes address 1, the one the panel used. Check uniqueness first: 0, 1 and 2 are all different, so each station can log on without a clash. Then check the coverage setting: the highest address in use is 2, and the highest station address 31 covers it because 31 is greater than 2. Both checks pass, so the segment accepts all three nodes.
Enable bus termination at the physical ends: the last fixed node on the segment needs its terminating resistors switched in, and a USB adapter carries termination in its connector shell. If the segment also feeds a running machine, do this work on a bench CPU or an isolated bus, because changing interface parameters on a live segment can drop HMI traffic to the operators.
How do I configure the connection inside WinCC Flexible? #
Open the Connections editor, set the connection's communication driver to SIMATIC S7 300/400, point its access path at S7ONLINE, enter the PC's MPI address as the HMI device address and the CPU's address in the station, and save the project before compiling.
- Communication driver: SIMATIC S7 300/400.
- HMI device address: the address you gave the PC, 1 in the example above.
- Access point: S7ONLINE, the same access point the PG/PC interface is bound to.
- Station or CPU address: 2 for a factory-fresh CPU 314; change it on the MPI interface in HW Config if your plant uses other addresses, then download the hardware configuration to the CPU.
Leave the connection set online, so the runtime polls the CPU as soon as it opens.
How do I compile and start the runtime? #
Choose Project, then Compiler, then Start Runtime; the command compiles the project first, and when the compiler finishes without errors the runtime window opens on the PC and logs onto the MPI bus with the address from the connection settings.
If the compiler stops, the Output window lists the faults, usually a tag that references data the project does not define; resolve them and run the command again. Edits made after a successful compile do not appear in a runtime window that is already open, so save, recompile and restart; the article why WinCC Flexible edits do not show in runtime walks through that rebuild cycle.
Why does the runtime fail to connect over MPI? #
Three faults stop this link, and you can check them in order: an address clash on the segment, a transmission rate that does not match every node, and an access point bound to the wrong interface in the PG/PC settings.
The address clash is the classic one on a shared bench: the programming station sits at address 0 and the panel project was also given address 0, so the runtime tries to log on under an address another station already holds. The runtime logs on with its configured address even when no physical panel exists, so give the PC the panel's address and move anything that collides.
A rate mismatch behaves differently: every node on the segment must run the same transmission rate, so an adapter left at a value the CPU does not use produces silence rather than an error at log-on. And when the access point points at a simulator or a different card, the runtime opens the wrong driver entirely and finds no bus at all. All three are fixed in the same Set PG/PC Interface dialog, then the runtime restarts clean.
Questions asked
How long can the MPI cable between my PC and the CPU be?
A single MPI segment runs 50 m without repeaters, and you extend it by adding repeaters in series. On a short bench link, length is not the limiting factor; termination at the physical ends is. Switch the terminating resistors in on the last node, and use the termination built into the USB adapter's connector at the PC end.
Do I need a separate license to run the runtime on a PC?
Yes. PC runtime is a licensed product: without a valid license the runtime runs in trial mode and stops when that period ends. Deliver the license the way the vendor documents it, as a softkey or a dongle, and keep it on the PC that runs the runtime.
Can the same USB adapter download the PLC program and feed the runtime?
Yes, because both STEP 7 and WinCC Flexible take their connection from the S7ONLINE (STEP 7) access point. Only one application can use the access point at a time, so close the download tool before starting the runtime, or the runtime will report the interface as busy.
Will the same project still run on a real touch panel later?
Yes. The project source is device-independent: select the panel as the HMI device, recompile, and download to the panel. The tags, screens and connection parameters carry over, and the panel's own MPI address must stay unique on the segment just as the PC's address did.