Troubleshooting
WinCC Flexible Runtime to S7-200 PPI Settings That Work
Short answer
Yes, the link runs over PPI: set the S7ONLINE access point to PC/PPI Cable (PPI) at 19.2 kbps with the PC at address 0 and the S7-200 at address 2, then create the connection under Project > Communication > Connections with driver SIMATIC S7 200. Tick Advanced PPI when Micro/WIN shares the PC; if a USB/PPI cable still faults with 0xA0, move the tags to the PC Access OPC server.
On this page
- Can a PC running WinCC flexible Runtime talk to an S7-200 over PPI?
- Which cable do you use between the PC and the S7-200?
- How do you set the S7ONLINE access point for the PC/PPI cable?
- What settings go into the WinCC flexible connection to the S7-200?
- Why does Advanced PPI matter when Micro/WIN shares the same PC?
- Why does Runtime fail with the 0xA0 fault on a USB/PPI cable?
- When do you route the tags through PC Access OPC?
- Can antivirus software block the WinCC flexible PPI link?
- How much logging fits on one PPI link?
- Questions asked
You can connect a PC running WinCC flexible Runtime to an S7-200 over PPI with an ordinary PC/PPI cable. Set the S7ONLINE access point to PC/PPI Cable (PPI), put the PC at PPI address 0 as master and the CPU at address 2, and build the connection in the Runtime project under Project > Communication > Connections with the SIMATIC S7 200 driver. Two field failures have specific fixes: tick Advanced PPI when Micro/WIN shares the same PC, and if a USB/PPI cable still reports the 0xA0 fault, route the tags through the PC Access OPC server. The sections below follow the order you meet the pieces in.
Can a PC running WinCC flexible Runtime talk to an S7-200 over PPI? #
Yes, it can: the S7-200's RS-485 port speaks PPI, PPI allows more than one master, and WinCC flexible Runtime joins that bus as a master from a PC over an ordinary PC/PPI cable.
PPI is a master/slave protocol: the slaves wait to be polled and the masters do the polling, so the PC running Runtime simply takes a master seat beside Micro/WIN. The CPU answers at its station address, every master carries its own address, and the whole bus runs at one rate that all stations share. Data logging is the normal workload here: Runtime reads the V-memory words your screens and logs need, on a cycle you set for the project.
The PC that plays the HMI does not have to be a desktop tower: at the machine, that role belongs to industrial panel PCs, which mount flush in a door cut-out and put the touchscreen where the operator stands.
Which cable do you use between the PC and the S7-200? #
Use the RS-232 PC/PPI cable where Micro/WIN and Runtime share the PC; the USB/PPI cable also drives Runtime, but it is the cable behind the busy-port fault when a second session wants in.
The RS-232 cable ends in a plain serial port, so a laptop without one takes a USB-to-serial converter or an added serial card, and that route is proven field practice for this link. The USB/PPI cable enumerates through the Siemens USB driver instead; its wiring and driver behavior are covered in the USB PPI Cable 6ES7 901-3DB30-0XA0 with WinCC Flexible Runtime guide.
A USB PC Adapter is a different device and a common trap: its driver exposes MPI and PROFIBUS interface entries but no PPI entry, so an S7-200 project finds nothing to select on it. The adapter belongs on MPI and PROFIBUS networks; the S7-200 wants the PC/PPI cable.
One more trap sits in Set PG/PC Interface itself: if WinCC flexible installs while PC/PPI Cable (PPI) is enabled on the Local Connection tab, the USB choice disappears from the interface list, and reinstalling Micro/WIN brings it back.
How do you set the S7ONLINE access point for the PC/PPI cable? #
Open Set PG/PC Interface and bind the S7ONLINE access point to PC/PPI Cable (PPI); in that entry's properties set the rate to 19.2 kbps, the local master address to 0, and the highest station address to 31.
S7ONLINE is the access point every WinCC flexible Runtime session opens toward a Siemens PLC, so whatever interface is bound there is the one Runtime actually uses; a binding left on another driver leaves Runtime silent with every other setting correct. The way that access point picks its channel is explained in Connecting WinCC to PLCSIM Through the S7Online Access Point. The Local Connection tab in the same dialog selects the physical side: USB for the USB/PPI cable, or the COM port the RS-232 cable occupies. If this PC also programs the CPU, leave the binding on the cable Runtime uses and let the two applications share it through Advanced PPI instead of switching bindings between sessions.
What settings go into the WinCC flexible connection to the S7-200? #
In the Runtime project open Project > Communication > Connections, add a connection with the SIMATIC S7 200 driver, set the HMI address to 0, the PLC address to 2, the profile to PPI, and the rate to 19.2 kbps.
Siemens' application note on S7-200 connections to SIMATIC panels and WinCC flexible PC Runtime documents this screen. The fields read:
- Connection driver: SIMATIC S7 200
- HMI device address: 0, because the HMI is a PPI master and not a slave
- PLC address: the CPU's station address, 2 as shipped; if the plant renumbered it in the system block, match the new number
- Profile: PPI
- Rate: the same rate the system block sets on the port
Compile, start Runtime, and the connection state turns green within a few seconds of the first poll. A link that stays silent after this almost always disagrees on rate or station address, which is the failure pattern documented in Why a WinCC Flexible PPI Link Fails on Baud Rate and Address.
Why does Advanced PPI matter when Micro/WIN shares the same PC? #
Because a plain PPI session expects to own the cable outright, and the Advanced PPI checkbox tells the driver to arbitrate between masters; on a PC where Micro/WIN and Runtime share one cable, the link commonly comes alive the moment that box is ticked.
You find the checkbox in the properties of the PC/PPI Cable entry in Set PG/PC Interface. Cleared, the first application to open the cable keeps it and the second one waits. Set, the driver arbitrates between the Runtime session and Micro/WIN on the one cable, which is where most shared-PC installs end up. The same discipline scales to the bus: every master takes a unique address, all masters run one rate, and the highest station address stays at or above the largest address in use; the shared-port pattern is laid out in How to Share One RS-485 PLC Port Between Multiple HMIs.
One safety note: a shared port means Micro/WIN can download or force while Runtime shows live values, and on a running machine that is a live intervention; prove shared-port writes on a bench before the arrangement faces the process.
Why does Runtime fail with the 0xA0 fault on a USB/PPI cable? #
Because Micro/WIN still holds the USB/PPI cable when Runtime asks for it, and the standard cable driver serves one master session at a time; close Micro/WIN for a clean native-PPI test, or move the tags to PC Access and connect Runtime as an OPC client.
The 0xA0 report is the cable busy: with Micro/WIN open, or with a Micro/WIN session half-closed, the USB/PPI driver refuses the second master and Runtime raises the fault instead of data. Close Micro/WIN completely and retry. If the fault persists with Micro/WIN shut, power-cycle the CPU, because a recent download can leave the port busy on the PLC side after the programming session ends. Where Micro/WIN must stay online, the fix is not a retry loop but a second channel, which is the PC Access route below.
When do you route the tags through PC Access OPC? #
When the cable or the environment will not give Runtime a native PPI session: a USB/PPI cable held by Micro/WIN, a virtual machine that cannot present the cable at all, or any plant where Micro/WIN must stay online while Runtime logs.
Install PC Access, Siemens' OPC server for the S7-200, and build the tag set there: add the CPU, define the V-memory words and bits the operators need, and confirm each item reads with a good quality flag in the server's own test client. In the WinCC flexible project, open Project > Communication > Connections again, create a connection, and select OPC as the channel; the driver then browses the PC Access namespace and you map Runtime tags to its items, as the vendor's note on Runtime as an OPC client describes. Runtime now polls through the OPC layer, Micro/WIN keeps the cable to itself, and the two no longer fight over the port. Decision: native PPI with Advanced PPI first; PC Access when two masters must hold the cable at once or the cable refuses the second session.
Can antivirus software block the WinCC flexible PPI link? #
It can: the compatibility list in the WinCC flexible help names McAfee Internet Security Suite 2007 and Trend Micro OfficeScan 7.3 as tested, so any other security suite is unproven on this exact link until you test it.
Norton 360 and comparable suites sit outside that list, and the field check is cheap: pause real-time scanning, restart Runtime, and watch whether the failures stop. Where a suite does interfere, it is the real-time scanner holding the serial or USB driver open across the PPI handshake, so once the link is proven, an exclusion for the Runtime and PC Access executables is the durable setting. Commission with the scanner paused, confirm the link, re-enable the scanner, and re-test; if the link fails only while the scanner runs, add the exclusions rather than leaving the machine unprotected.
How much logging fits on one PPI link? #
The line carries 1745 characters per second at the default rate, because an async character costs 11 bits at 19200 bits per second, and that cap sizes your logging group: about 50 separate four-word reads each second, and much more once you batch.
Worked example, with the character counts as illustrative assumptions and the line rate as the documented cap. One async character carries 1 start bit, 8 data bits, 1 parity bit and 1 stop bit, so 11 bits: 19200 / 11 ≈ 1745 characters per second. Take a four-word read cycle as 22 characters including request, reply and the two frame gaps: 22 × 11 = 242 bits, which at the line rate is about 12.6 ms. Fifty tags, each logged as its own four-word read at 1 Hz, then cost 50 × 12.6 ms = 630 ms of every second, a 63% line load that runs with margin. The same fifty tags as one contiguous 50-word read cost roughly 118 characters, about 68 ms, a tenth of the line time.
Those are floors, not promises: driver overhead, retries and the display refresh cycle sit on top of the serial minimum, so size the group under the floor and treat the measured cycle as the margin check. The decision list for the whole setup:
- Runtime alone on an RS-232 PC/PPI cable: native PPI as configured above, done.
- Micro/WIN on the same PC: tick Advanced PPI, and prove writes on a bench first.
- USB/PPI cable with the busy-port fault: close Micro/WIN; if it persists, switch the channel to PC Access OPC.
- Runtime inside a virtual machine: PC Access OPC, or move Runtime to the host with a real serial port.
- Untested antivirus: pause real-time scanning to prove the link, then exclude the proven executables.
- Heavy logging: batch contiguous V-blocks first; a faster port rate helps only when every master supports it.
Questions asked
Runtime was polling fine and now everything is dead after a Micro/WIN session. What changed?
Look at the CPU first. A recent Micro/WIN download writes a new system block, and the station address inside it is what the connection has to match, not the number the project used before. Power-cycle the CPU too, because a port left busy by the programming session clears with the power cycle, then start Runtime and poll again.
Do the same settings apply to a SIMATIC panel instead of a PC running Runtime?
Yes. The application note that documents these connection fields covers SIMATIC panels and WinCC flexible PC Runtime together, so a panel project uses the same driver, addresses and profile. Only the PC adds the interface dialog step, because a panel owns its port directly and needs no access-point binding on a separate screen.
Can the link run faster than the serial rate used in these settings?
Yes: the S7-200 PPI port also supports 9.6 and 187.5 kbps, and at 187.5 kbps the character throughput multiplies by about 9.8. Every master on the bus must run the same rate, so a bus with an older panel or cable pinned at the default stays at the default; take the fast rate only when every master supports it.
PC Access items show bad quality while Micro/WIN still talks to the CPU. What now?
The PLC link is healthy and the server is not. Close the server's test client, restart the PC Access server, and retest the items before touching the WinCC flexible project at all. The quality flag on the server's own test client is the acceptance gate for this route, so clear it there first; Runtime inherits whatever the server serves.