IMDTouchKnowledge BaseShop main store

Troubleshooting

WinCC flexible 2008 PC runtime transfer: cannot establish connection

HMI and touchscreens Published 6 min read By IMDTouch engineering team

Short answer

A WinCC flexible 2008 transfer to a PC runtime station fails with "cannot establish connection" because Set PG/PC Interface does not carry the transfer: enable Channel 2 in the WinCC flexible Runtime Loader settings and start transfer mode on the runtime PC, so the Waiting dialog stays open. On the engineering PC, assign the S7ONLINE access point to the USB-to-PROFIBUS adapter. With engineering and runtime on one PC, select Mode "File" and a target folder in the transfer window instead.

On this page
  1. Which settings actually carry a PC runtime transfer
  2. Runtime PC: enable Channel 2 and start transfer mode
  3. Engineering PC: assign S7ONLINE to the USB-to-PROFIBUS adapter
  4. Two PCs on PROFIBUS: the bench check with numbers
  5. Same PC: Mode File with a target folder
  6. The decision for each case
  7. Questions asked

A WinCC flexible 2008 project transfer to a PC runtime station fails with "cannot establish connection" because the settings you checked are not the settings that carry the transfer. On the target PC, Set PG/PC Interface has no part in receiving a project: the WinCC flexible Runtime Loader receives it, so you enable Channel 2 in the Loader's settings and start transfer mode there. On the engineering PC, WinCC flexible sends the project through the S7ONLINE access point, so that access point has to be assigned to the USB-to-PROFIBUS adapter. And when engineering and runtime share one PC, the bus drops out entirely: in the transfer window, select Mode "File" and a target folder. Seeing the PC station in Set PG/PC Interface proves only that the CP5611 driver is loaded — it says nothing about anything listening for your file.

Which settings actually carry a PC runtime transfer #

A PC station splits a job that a panel does in one place. On the runtime PC, Set PG/PC Interface decides how the running project talks to the PLC and nothing else; the transfer is a separate function with its own switch, the WinCC flexible Runtime Loader (the RT Loader in the vendor's note). That note documents the path directly: click "Settings" in the RT Loader on the visualization PC and the menu for the transfer and directory settings opens, with Channel 2 enabled when a runtime file is to be transferred. That is also why the CP5611 appearing in Set PG/PC Interface tells you the driver is loaded, not that the transfer can arrive.

The sending side has its own rule: WinCC flexible uses the S7ONLINE access point for project transfer, and you assign that access point in Set PG/PC Interface on the engineering PC. As with any HMI download, the transfer dialog, not a configured connection object, is the path — the article on using the transfer dialog not a NetPro connection for HMI download explains why a NetPro connection never carries it.

So the transfer stands on three switches, spread over two PCs:

  • On the runtime PC: Channel 2 enabled in the Runtime Loader settings.
  • On the runtime PC: transfer mode started, with the Waiting dialog open.
  • On the engineering PC: S7ONLINE assigned to the adapter the transfer really uses.

Runtime PC: enable Channel 2 and start transfer mode #

Work the target PC in this order:

  1. Open the WinCC flexible Runtime Loader on the runtime PC and click "Settings". The menu with the transfer and directory settings opens.
  2. Enable Channel 2. The vendor's note states it plainly: Channel 2 is enabled if the runtime file is to be transferred at all — with it disabled, the Loader will not accept the incoming file.
  3. Start transfer mode. The Loader shows its "Waiting" dialog.
  4. Read that dialog before touching the engineering PC. If it stays open, the adapter path on this PC works and the Loader is listening. If it closes immediately, the adapter is not installed correctly on this PC — fix the driver installation there first, because no transfer setting anywhere else will compensate.

One caution: this PC is the operator station, so run the transfer while the machine cannot start, because the incoming file takes the runtime out of operator control until it has loaded.

Engineering PC: assign S7ONLINE to the USB-to-PROFIBUS adapter #

Open Set PG/PC Interface on the engineering PC and assign the access point S7ONLINE to the USB-to-PROFIBUS adapter, because that is the hardware this transfer really uses. The adapter then reaches the runtime PC across the PROFIBUS segment through the CP5611 sitting on the bus there.

Keep the direction of the setting straight. The assignment that matters for the transfer sits on the sending PC; the target PC's Set PG/PC Interface does not answer an incoming transfer. It keeps governing that PC's runtime connection to the PLC, which is exactly why it looked correct while the transfer failed.

Two PCs on PROFIBUS: the bench check with numbers #

Put real values on the reported setup: an engineering PC with the USB-to-PROFIBUS adapter, a runtime PC with a CP5611, both on one PROFIBUS segment, the project compiled in WinCC flexible 2008 SP3.

Give each station its own address. Every device on a PROFIBUS segment carries an address in the range 0 to 126, and two devices sharing one address will not coexist on the bus. For this bench, set the adapter to address 0 and the CP5611 to address 3 — the values are arbitrary as long as they differ.

Then verify the three switches in order and expect one result at each step:

  1. Target PC: Channel 2 enabled, transfer mode started, "Waiting" dialog open and staying open.
  2. Engineering PC: S7ONLINE assigned to the USB-to-PROFIBUS adapter.
  3. Send the transfer from the engineering software: the Waiting dialog accepts the file into the directory the Loader's settings define, and the runtime loads it from there.

Why work the switches in order instead of by trial and error: three two-state switches give 2 × 2 × 2 = 8 combinations, and exactly one of them is correct, so guessing finds the working combination 1 time in 8, which is 12.5 percent. That is an illustrative count of the settings, not a measured failure rate — but it shows why the message stays on screen while each PC, checked alone, looks perfectly configured.

Same PC: Mode File with a target folder #

When the engineering software and the runtime share one station, the transfer never touches the bus, and no Set PG/PC Interface setting belongs to it. In the WinCC flexible transfer window, select Mode "File" and choose the target folder. The compiled runtime file is written straight into that folder, so pick the folder the Loader's directory settings point at and the runtime finds the file on its next start.

The count shrinks with it: two two-state switches — the mode and the folder — give 2 × 2 = 4 combinations with one correct, 25 percent by guessing, so set both deliberately.

Decision for this case: Mode "File" plus the target folder the runtime reads. The adapter, its station address and S7ONLINE all stay out of the transfer and matter again only when the runtime connects to a PLC.

The decision for each case #

  • Two PCs, adapter across PROFIBUS: enable Channel 2 in the Runtime Loader on the target, start transfer mode and keep the Waiting dialog open; on the engineering PC assign S7ONLINE to the USB-to-PROFIBUS adapter; station addresses unique, for example 0 and 3. The target's Set PG/PC Interface keeps serving its PLC connection and needs nothing extra for the transfer.
  • One PC, engineering and runtime together: select Mode "File" in the transfer window and pick the target folder the runtime reads. Done — no bus setting involved.
  • Waiting dialog closes immediately: the adapter is not installed correctly on that PC. Repair the adapter installation on that PC before touching any transfer setting.
  • A station that answers a ping is not a station ready to receive: reachability and transfer readiness are separate checks, and the article on why an HMI transfer fails in initial start mode despite ping walks through the same separation.

The same cannot-establish-connection family turns up outside project transfer as well, for example during an MP 377 operating system update, and the article on resolving the MP 377 OS update cannot establish communication error shows the same pattern: the fix lives in the commissioning settings, not in the PLC connection.

Questions asked

How is a transfer to a panel different from a transfer to a PC runtime station?

A panel waits for the transfer itself: its Control Panel holds the transfer settings, and you enable transfer mode on the panel before the engineering PC sends anything. The S7ONLINE assignment on the engineering PC selects the adapter in both cases. A PC runtime station instead receives the project only through its Runtime Loader with Channel 2 enabled, which is why a panel-style procedure fails silently on a PC station.

Does S7ONLINE still matter on the runtime PC after the transfer?

Yes, but only for the running project's communication, never for receiving files. Once the new project runs, the runtime uses the access point mechanism to talk to the PLC. For a connection to an S7-300/400 over Industrial Ethernet, the vendor's documentation allows an access point other than S7ONLINE provided that access point is also specified in the WinCC flexible engineering software. The incoming transfer never reads that assignment.

Where should the target folder for a File mode transfer point?

At the directory the Runtime Loader on that PC is set to serve. The Loader's Settings menu holds both the transfer and the directory settings, so a file written anywhere else sits unread. Set the Loader's directory first, use that same folder as the target folder in the transfer window, and the runtime picks the file up on its next start.

Can the USB-to-PROFIBUS adapter stay configured when I transfer in File mode?

It can stay plugged in and configured, but the File transfer never touches it. File mode writes the compiled runtime file into the folder you select, with no bus traffic, no station addresses and no access point involved. The adapter and its S7ONLINE assignment matter again as soon as the engineering PC next connects to a PLC or sends a transfer across the segment.

Keep reading

  • How-to

    WinCC flexible 2008 with a Mitsubishi Q PLC connection

    WinCC flexible 2008 can run as a PC-based HMI against a Mitsubishi Q-series PLC. Confirm the PC runtime target, take the driver and interface combination from chapter 5 of the WinCC flexible 2008 Communication Part 2 manual and the installed online help, then match the PLC port, the PC settings and the cable to that driver. Prove the link with one read-only tag before building any screens.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Flexible transfer to a TP177B PN/DP fails instantly

    The error appears instantly and identically with or without the panel and cable attached, so WinCC Flexible 2008 stops while opening the local interface, before any message reaches the TP177B. Use the PC Adapter USB 6ES7 972-0CB20-0XA0 instead of the serial cable through a converter, assign its entry in Set PG/PC Interface, activate the matching data channel on the TP177B 6AV6 642-0BA01-1AX1, and start the transfer again.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC flexible Runtime Cannot Control an S7-1200

    WinCC flexible Runtime on the PC is a separate HMI station, not a view into the MP277, so a working panel proves nothing about the PC path. Ping the S7-1200 from the Runtime PC, confirm the project connection uses the S7Online access point, then map that access point in Set PG/PC Interface to the adapter that reaches the real PLC, or to the simulation path when PLCSIM is the destination.

    HMI and touchscreens

Why WinCC flexible 2008 fonts look oversized on another PC