IMDTouchKnowledge BaseShop main store

How-to

Connecting an S5 PLC to WinCC flexible PC runtime

HMI and touchscreens Published 7 min read

Short answer

Chapter 7 of the WinCC flexible 2008 Communication Part 1 manual documents two ways to connect an S5 PLC to WinCC flexible PC runtime: AS511 over the TTY current-loop serial interface, or PROFIBUS-DP. Use AS511 with a genuine active TTY converter for a direct serial link; use PROFIBUS-DP when the S5 already sits on a bus. Prove reads against the PLC, then write-test a free tag before any production screen goes live.

On this page
  1. Choose the route from the S5 hardware you have
  2. Wire and power the TTY path
  3. Configure the AS511 connection in the project
  4. Prepare the PC that runs the runtime
  5. Put the S5 on PROFIBUS-DP instead
  6. Prove reads before writes on a diagnostic screen
  7. The decision
  8. Questions asked

Chapter 7 of SIMATIC HMI WinCC flexible 2008 Communication Part 1 — Siemens support entry 18797552, file KHB_WinCC_flexible_Teil_1_en-US.pdf — documents two connection paths from an S5 PLC to a WinCC flexible PC runtime: AS511 over the TTY current-loop serial interface, and PROFIBUS-DP. Choose AS511 when the CPU has a free serial port and one runtime station covers the machine; the PC side then needs a genuine active TTY converter, not a plain serial cable. Choose PROFIBUS-DP when the S5 already carries bus hardware or several stations must share the link. This article walks through the route decision, the TTY wiring and power, the AS511 driver setup, and the read-and-write proof to run before any production tag goes live.

Choose the route from the S5 hardware you have #

AS511 names the protocol; TTY names the electrical interface beneath it — a current loop, not the voltage-level signaling a PC serial port speaks. PROFIBUS-DP is the fieldbus alternative, where the runtime becomes one configured station on a shared bus. A connector that physically fits proves nothing about either layer.

Before touching software, record four things at the cabinet: the S5 CPU identification, the communication processors fitted, which ports are free, and whether a programming device or another station already uses the port you intend to take. Record the installed WinCC flexible engineering and PC runtime versions too — connection options and supported targets are listed per release, so match the communication manual to the release you actually run; the chapter reference above is the 2008 manual.

Decision item AS511 over TTY PROFIBUS-DP
PLC side A free serial port with AS511-capable current-loop signaling A bus-capable interface or CP with its own station address
PC side A serial interface plus an active TTY converter with its own power supply A PC PROFIBUS interface with its driver software installed
Main commissioning risk Wrong conversion or wiring — a powered converter can still pass no data Wrong station address, termination or bus parameters
Best fit One runtime station on a direct point-to-point link The S5 already sits on a bus, or more than one station needs access

For a closer look at how the AS511 protocol, the TTY electrical layer and PROFIBUS-DP separate on the S5 side, walkthrough of AS511, TTY and PROFIBUS-DP on an S5 CPU keeps protocol and electrical layer distinct — the distinction most failed serial attempts miss.

Wire and power the TTY path #

The conversion from current loop to PC serial signaling is hardware. Use the documented S5 cable or an active converter with its own power supply, wired to the pin assignment the S5 documentation specifies for that port. An indicator that lights, or an adapter that powers up, proves only that part of the converter is energized; it says nothing about whether data crosses the loop.

Make the connection with the machine in a safe state and the area you are wiring isolated — the S5 serial port sits inside a cabinet next to live machine controls.

Confirm the port is genuinely free before you wire: if a programming device or another station holds it, the runtime connection displaces that use, and the machine loses whatever function the port was serving.

When the link will not come up, S5 TTY interface troubleshooting guide for AS511 upload failures works through the electrical suspects — converter power, pin assignment, loop continuity — in a useful order.

Configure the AS511 connection in the project #

  1. Create the project with PC runtime as the target device, not a panel model. If what you have is a panel's .psb backup rather than the editable project, the backup will not run as PC runtime; why a PSB backup cannot run in WinCC flexible PC runtime explains that split.
  2. Open the Comm tab in the Workspace pane and expand the Drivers folder, then add the AS511 Communication Driver as the driver for the new connection.
  3. Point the connection at the PC interface the runtime will actually use. A connection aimed at an unused port, or at an adapter that is not the one installed, looks correct in the project and reaches nothing.
  4. Enter the serial settings the AS511 driver documentation specifies for the link, matching the converter as installed in the cabinet.
  5. Create one diagnostic tag before any production tag: memory area, address and data type entered in the AS511 driver's own addressing rules. Address syntax is driver-specific — a format copied from an S7 project does not resolve on an S5 connection.
  6. Compile for the PC runtime target and clear every connection and tag error before loading to the runtime PC.

The target change matters beyond the connection itself: running a WinCC flexible 2008 project in PC runtime covers what differs when a flexible project runs as PC runtime rather than on a panel.

Prepare the PC that runs the runtime #

PC runtime is installed and licensed for a specific target computer, and the runtime version on that computer must match the version the project expects — confirm the runtime starts there before commissioning the connection, not after. At the machine, that computer is normally an industrial panel PC in the operator station, so the runtime screen sits in the door and the serial or PROFIBUS converter lands directly behind it.

Put the S5 on PROFIBUS-DP instead #

Take this route when the S5 already carries bus hardware or more than one station needs access. The PLC side needs the bus interface configured with its station address; the PC side needs a PROFIBUS interface with its driver installed. Check the cable, the connectors and the termination — termination belongs at the two physical ends of the bus. When you join an existing network, take the bus parameters and your station address from that network's existing configuration rather than assigning them independently, and keep the runtime's role consistent with what the PLC and the other stations expect of it.

Prove reads before writes on a diagnostic screen #

A displayed number is not proof of communication — the runtime may be showing a retained value, or fluently reading the wrong address. Put the diagnostic tag on a small test screen and compare it against the same variable in an authorized programming or monitoring tool, checking value and behavior together.

Worked example, with example inputs rather than measured figures: suppose the PLC logic increments a free data word once each second, and the programming tool shows 120 at 09:14:00. At 09:14:04 the runtime screen shows 124. That is 124 - 120 = 4 increments across 4 s, which is 1 increment/s — reads track the PLC. With the tag's update interval configured at 1 s, a display lag of up to 1 s is expected; a stuck value, or jumps the PLC logic cannot produce, means the exchange is reading the wrong address or not exchanging at all.

Only after reads pass do you test writes, and only through an approved free tag with no process effect: write 0 from the runtime, confirm the programming tool shows 0, and confirm it stays there. A value that snaps back means PLC logic rewrites that destination each scan, so choose a different word. Leave the machine's own interlocks untouched throughout — a working link that writes to a live setpoint is a fault, not a feature.

The decision #

  • One S5 station, a free TTY serial port, one PC runtime: AS511 over TTY, using an active converter and the AS511 Communication Driver, proven read-first on a diagnostic tag.
  • The S5 already on PROFIBUS-DP, or more than one station to serve: PROFIBUS-DP, with the station address and termination taken from the existing bus configuration.
  • No free serial port and no bus hardware on the CPU: neither documented path exists on that hardware, so the fix is fitting the appropriate interface hardware — a cable workaround does not create a protocol.
  • Retiring the S5 rather than keeping it: the interface question moves to which S7 interface replaces an S5 TTY link to an OEM HMI.

Questions asked

Can WinCC flexible PC runtime reach an S5 over Ethernet?

The documented S5 options in the WinCC flexible 2008 Communication Part 1 manual are AS511 serial and PROFIBUS-DP only. If the machine has Ethernet, the path is a gateway that converts to one of those two protocols at the S5 side, and that gateway becomes the device the runtime actually talks to. Check the gateway's supported protocol, tag count and update behavior before committing to it.

Can I use a standard serial cable from the PC to the S5 TTY port?

No. The S5 TTY interface is a current loop, while a PC serial port works with voltage-level signals, so a passive cable between them carries no usable data. An LED that lights on the converter is not proof of a working exchange.

Do S5 tags use the same address format as S7 tags?

No. Address syntax and supported data types are specific to each connection driver, so an address copied from an S7 project will not resolve on an AS511 connection. Enter the memory area, the data block and word number, and the data type exactly as the AS511 driver addressing rules define them. A tag that compiles but reads a nonsense value is usually an addressing-format error, not a broken cable.

Can the PC runtime share the S5 serial port with another device?

Treat the TTY serial interface as a point-to-point link: if a programming device or another station already uses that port, the runtime connection displaces it, so confirm the port is genuinely free before wiring. When more than one station must reach the S5 at the same time, PROFIBUS-DP is the documented multi-station route, with each participant configured with its own station address on the bus.

Can I test the screens before the S5 is available?

WinCC flexible can simulate a project without a controller attached, which proves screen layout, navigation and tag configuration but not the connection itself. Simulation cannot validate the AS511 driver settings, the TTY converter wiring, the PROFIBUS-DP bus parameters, or the addressing against the real PLC. Use it as a pre-check on the engineering PC, then keep the diagnostic-tag procedure as the bench test that actually proves communication before the machine returns to production.

Keep reading

  • How-to

    Run WinCC 7.0 PC Runtime over a PROFIBUS card

    No panel-versus-PC switch exists: launch WinCC Runtime on the PC, but the PROFIBUS link only works after the card driver is installed, the PC interface points at that card, and the WinCC connection carries the PLC's station address, rack and slot — then a moving tag value proves the link.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Unified PC Runtime fails to open its PLC connection

    When one WinCC Unified PC runtime station opens its project but never establishes the PLC session, the runtime trace tells you which side failed. On the failing station the trace shows the open for CONN%HMI_Connection_2 rejected with AccessDenied, specific error -270 and reason 4102 before any S7Plus session exists, which places the fault on that station's connection binding. Set the connection entry point to exactly S7ONLINE, rebuild, redeploy and confirm the fix in a fresh trace.

    HMI and touchscreens

  • Troubleshooting

    Fix WinCC Runtime That Connects to the PLC Only via TIA Portal

    The runtime PC's PG/PC interface is bound to the wrong network adapter, so WinCC Runtime has no path of its own until a TIA Portal online session brings one up. Open Set PG/PC Interface in Windows Control Panel, assign the PLC-facing adapter to the S7 access point, restart the runtime, and confirm with ping plus a live tag. If ping already works, check the access point, the connection configuration, and PLC access permissions instead.

    HMI and touchscreens