How to Transfer WinCC Flexible Projects to Siemens HMI Panels

David Krause14 min read
SiemensTutorial / How-toWinCC
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Overview

Transferring a WinCC flexible project to a Siemens HMI panel (for example, OP77B, OP177B, TP177B, or MP 277 10" Key) requires the engineering station (PG/PC) to be physically or logically connected to the target panel, the WinCC flexible project to be in a consistent state, and the panel itself to be placed in Transfer mode. Three physical transfer paths are commonly used in the field:

  • Serial RS232 transfer using a null-modem (crossover) cable on panels that expose an RS232 port (OP77B, OP177B mono, TP177B mono).
  • MPI / PROFIBUS DP transfer using a Siemens PC Adapter (USB or RS232) on a Profibus segment that includes the panel.
  • Ethernet (PROFINET) transfer on Windows CE panels such as the MP 277, using TCP/IP over the panel's IE port.

The transfer path is selected inside the WinCC flexible project under Project → Transfer → Transfer Settings, where the channel and parameters (COM port, baud rate, MPI address, IP address, MAC) are stored. See the official Siemens WinCC flexible Ethernet Transfer manual (PDF) for the Ethernet-specific switch from "SOFTBUS" / "MPI/DP" to Ethernet or HMI IE.

Prerequisites

  1. WinCC flexible engineering software matching the panel's runtime version (WinCC flexible 2005 SP1, 2007, 2008 SP1/SP2/SP3, or 2008 SP5). Mixing the panel image major version with an older ES is the most common cause of a refused download.
  2. STEP 7 (optional but recommended) when the HMI project is integrated into the S7 project. With Integrate in STEP 7, the HMI and PLC share a single project, which guarantees consistent tag and connection data during transfer.
  3. PC Adapter USB A2 (6GK1571-0BA00-0AA0) for MPI/DP, or a CP 5711 / CP 5512 PCMCIA/PCI card. A generic USB-to-RS485 adapter will not enumerate as a Siemens PG and is not supported.
  4. Null-modem (crossover) RS232 cable, DB9 male-to-female, pins 2-3 crossed, 4-5 crossed, 6-20 crossed, for serial transfer to OP77B-class panels.
  5. Profibus connector with PG socket (6ES7972-0BB12-0XA0) on the S7 PLC side, plus a Profibus cable terminated at both ends (terminating resistor ON at the two physical ends, OFF elsewhere).
  6. 24 V DC supply to the panel. The OP77B MPI/DP port does not source 24 V, so the Profibus segment must be powered from the PLC; a panel sitting alone on a USB adapter will not power up its MPI/DP transceiver.
  7. Panel in Transfer mode. For the OP77B the mode is toggled on the device (in the loader menu → Transfer); for Windows CE panels (MP 277) you also enable the transfer channel from the CE Control Panel → Transfer → set the channel to Remote (Remote On) before starting the download.

STEP 7 / WinCC Flexible Project Integration

The "s7 control" referenced in a typical Noobs guide is the S7 PLC program container inside the STEP 7 project. WinCC flexible offers two operating modes:

Mode Behavior When to use
Stand-alone WinCC flexible project (.hmi) Connections and tags defined locally in WinCC flexible; PLC project is independent. Small retrofits, panels delivered with a tag list, PROFINET-only commissioning.
Integrated in STEP 7 project (recommended) HMI project is a sub-object of the S7 station; tags, connection tables, and DB symbols are shared. All SIMATIC S7-300/S7-400 stations, mixed MPI/PROFINET plants, and any project where the same engineer is responsible for PLC and HMI code.

To integrate: open the S7 project in SIMATIC Manager, right-click the station → Insert SIMATIC HMI Station, then select the panel type. STEP 7 launches WinCC flexible and creates a new HMI project that is linked, not copied, into the S7 tree. From this point on, the two programs must be downloaded together if both are online.

Note: clicking Transfer in WinCC flexible while a PLC simulator (S7-PLCSIM) is running and no real panel is connected will fail. The simulator emulates an S7 CPU, not an HMI. The PLC simulator is useful for testing the STEP 7 logic; for testing the HMI runtime you need a real panel or a panel simulator (RT/ES) on the engineering station.

Selecting the Transfer Interface

Open Project → Transfer → Transfer Settings in WinCC flexible. The dialog exposes the channel parameters shown below.

Channel Parameter Typical value (OP77B) Typical value (MP 277)
Serial COM port COM1 / COM2 n/a (no RS232 on MP 277)
Serial Baud rate 19200 (firmware requirement) n/a
Serial Data bits / parity / stop 8 / None / 1 n/a
MPI/DP PC interface PC Adapter (MPI) or (DP) PC Adapter (MPI) or (DP)
MPI/DP Own MPI/DP address 0 (PG) 0 (PG)
MPI/DP Highest station address 31 (MPI) / 126 (DP) 31 / 126
MPI/DP Profile / baud 187.5 kbps (MPI default) or 1.5 Mbps (DP) 187.5 kbps or 1.5 Mbps
Ethernet Mode not supported on OP77B Ethernet or HMI IE
Ethernet HMI IP / Subnet n/a 192.168.0.1 / 255.255.255.0
Ethernet PG/PC IP n/a 192.168.0.10 / 255.255.255.0

For an Ethernet-based download on a Windows CE panel, the channel must be changed from SOFTBUS to Ethernet (or HMI IE when using the on-board IE interface on a 200/300 series station). This is documented in the Siemens WinCC flexible Ethernet Transfer manual (PDF) — failure to switch the channel is the single most common cause of an "Ethernet: connection not established" fault at the start of transfer.

MPI/DP Transfer via PC Adapter (OP77B)

The OP77B exposes a single 9-pin sub-D MPI/DP port. To bring up a transfer session:

  1. Open Start → SIMATIC → PC Adapter → Set PG/PC Interface on the engineering station.
  2. Select the access point S7ONLINE and the interface parameterization PC Adapter (MPI) or PC Adapter (DP) — this must match the topology that the panel is wired into.
  3. Set the PC Adapter local MPI/DP address to 0 (the PG default). The bus must not contain a second node with address 0.
  4. Wire the bus: a Profibus connector with PG socket (6ES7972-0BB12-0XA0) on the S7 PLC, then a purple Profibus cable to a second Profibus connector on the OP77B. The PC Adapter plugs into the PG socket on the PLC connector.
  5. Power the PLC (24 V ON). The OP77B will power its MPI/DP transceiver from the bus and the loader screen should appear.
  6. On the OP77B, navigate to Loader → Transfer. The panel waits for a passive transfer.
  7. Back in WinCC flexible, Project → Transfer → Transfer. Status "Establishing connection" should appear; a successful transfer ends with "Transfer completed" and a panel restart.
Field caveat: the OP77B cannot be powered from a stand-alone PC Adapter on the desk — there is no 24 V in the MPI/DP port. Either power it from a 24 V terminal on the back, or wire it into a live PLC Profibus segment before attempting to download.

Serial Transfer via RS232 Null Modem (OP77B)

When MPI/DP wiring is impractical (small bench test, no PLC available) the OP77B supports a serial transfer over its RS232 port. The parameters are fixed by the panel firmware and must match exactly on the PC side.

Parameter Value
Baud rate 19200 bit/s
Data bits 8
Parity None
Stop bits 1
Flow control None (RTS/CTS looped inside the panel)
Cable DB9 null-modem, 2-3 / 4-5 / 6-20 crossed

Procedure:

  1. Connect the PC COM port to the OP77B RS232 port (X2) with the null-modem cable.
  2. On the panel, enter the loader and set Transfer → Serial. On Windows CE panels, the equivalent is Control Panel → Transfer → Remote → On; on the OP77B loader the toggle is Serial vs MPI/DP.
  3. In WinCC flexible, open Transfer → Transfer Settings → Serial and select the COM port number. The baud rate field in WinCC flexible is informational; the actual baud is fixed at 19200 by the panel.
  4. Click Transfer. The PC will issue a connect request; the panel acknowledges and the image streams. Typical 256 KB project: 30-60 s at 19200.
Common pitfall: the PC COM port is sometimes forced to a non-standard baud by a Bluetooth stack (default 9600 or 115200). Open Device Manager → Ports (COM & LPT) → Communications Port → Properties → Port Settings → Advanced and ensure Use default settings allows 19200. Disable FIFO buffers if handshaking is unstable on long cables.

Ethernet Transfer (MP 277 and Windows CE Panels)

For the MP 277 10" Key and other Windows CE / Windows Embedded Standard panels, Ethernet is the preferred path because the IE port is independent of the PLC and does not require 24 V from the bus.

  1. On the panel, open the Windows CE Control Panel → Network and Dial-up ConnectionsPN_X1 (PROFINET) and assign a fixed IP that is on the same subnet as the engineering station. Default gateway is left blank if direct connection is used.
  2. Open Control Panel → Transfer on the panel. Set Channel 1 to Ethernet (or HMI IE for the 200/300 on-board IE), tick Remote, and click Apply. The panel will start listening on TCP port 1024 (WinCC flexible transfer) and, if enabled, 5001 (HMI Load).
  3. On the PC, set the LAN adapter to a fixed IP in the same subnet (e.g. 192.168.0.10 / 255.255.255.0) and disable any other active network interfaces (Wi-Fi, VPN) to avoid routing conflicts.
  4. In WinCC flexible, open Project → Transfer → Transfer Settings → Ethernet. Enter the HMI IP address. Tick Use router / gateway only if the PC and panel are on different subnets.
  5. Click Transfer. The first attempt is always slower (3-5 s ARP / TCP handshake); subsequent attempts in the same session are sub-second.

Refer to the Siemens WinCC flexible Ethernet Transfer manual (PDF) for the full set of register/port numbers and for the behavior of GetOSUpdate when the panel image version does not match the project image version.

Configuring the PG/PC Interface

The PG/PC interface is a Windows-level setting shared by STEP 7, WinCC flexible, and the panel loader. The two access points used during HMI transfer are:

Access point Used by Typical assignment
S7ONLINE STEP 7, WinCC flexible MPI/DP, panel loader PC Adapter (MPI) or PC Adapter (DP) or TCP/IP (for S7 routing)
DEVICE Older WinCC flexible serial and Profibus-direct transfers COMx or PC Adapter

When switching between MPI and DP on the same PC Adapter, do not change the access point — change the Properties of the same PC Adapter device to switch the bus profile and baud rate. Mixing access points is the leading cause of "Online: cannot reach the partner" errors.

Putting the HMI in Transfer Mode

The procedure differs by panel family. The table below summarises the entry points.

Panel Path to Transfer mode Notes
OP77B / OP177B / TP177B Loader screen → Transfer → choose Serial or MPI/DP No password by default; configure under Loader → Settings.
MP 277 / MP 377 / TP 277 CE Control Panel → Transfer → tick Remote → pick channel → OK Remote must be re-enabled after a panel reboot if persistence is disabled.
Comfort panels (TP/RT) Control Panel → Transfer → enable & select Uses WinCC flexible's successor channel set; behaviour is identical to MP 277.

Performing the Transfer in WinCC Flexible

  1. Compile the project (Project → Compiler → Check Consistency) and resolve every entry in the Output window that is flagged with a red square. A project with unresolved cross-references will refuse to start the transfer.
  2. Open Project → Transfer → Transfer or click the Transfer button on the toolbar.
  3. WinCC flexible opens the active transfer channel, builds a TCP or serial session, negotiates the panel image version, and uploads the compiled .fwx runtime image to a temporary area in the panel's flash file system.
  4. When the image is fully uploaded, the panel reboots into the new runtime. Do not power-cycle the panel during the 5-15 s window between the end of the upload and the loader appearing with the new project name — interrupting the flash commit leaves a partial image and forces a manual Reset to factory.
  5. The status line in WinCC flexible shows "Transfer completed successfully" only after the panel has booted into the new project and reported a heartbeat.

PLC Simulator Limitations with Low-End Panels

WinCC flexible provides a runtime simulator (RT) that runs the HMI image on the engineering PC. The simulator is separate from the S7-PLCSIM CPU simulator. S7-PLCSIM emulates an S7-300/400 CPU but does not expose an HMI port, so the HMI cannot transfer to it. The combination S7-PLCSIM + WinCC flexible RT works only when both are started and connected to the same softbus instance on the PC.

For the smallest panels (OP3, OP7, OP77A, OP77B) the runtime simulator is not available; the only way to validate a project is to download to a real panel. The simulator can still be used to validate the WinCC flexible logic on any panel that does support it (TP170A, TP177B DP/PN, MP 277, etc.).

Troubleshooting Matrix

Symptom Likely cause Corrective action
"No connection to the HMI" over MPI/DP PC Adapter not assigned to S7ONLINE, or terminating resistors not ON at both ends Re-check Set PG/PC Interface; toggle terminator on the two end connectors; verify 24 V on the bus
"No connection to the HMI" over Ethernet Channel still set to SOFTBUS in the project Switch to Ethernet or HMI IE; reboot the panel
Transfer starts, then aborts at 12 % Image version mismatch between ES and panel Use OS Update to push the matching image; in WinCC flexible select Transfer → OS Update (Shift+Click on Transfer button)
Transfer starts, then aborts at 4 % Wrong baud rate on serial port Force COM port to 19200 8N1 in Device Manager → Advanced
"Remote is not enabled" on MP 277 Control Panel → Transfer → Remote is OFF Tick Remote, click Apply, wait for the √ to persist
Panel powers up blank after transfer Power lost during flash commit Hold power for 60 s, then perform Reset to factory from the loader and re-transfer
PC Adapter enumerates as unknown USB device Driver not installed or wrong version Install the SIMATIC PC Adapter USB driver from the WinCC flexible / STEP 7 setup; reboot
Build succeeds but Transfer fails immediately Project has unresolved cross-references Re-run Check Consistency, resolve all errors in the Output window

Verification and Commissioning

  1. After a successful transfer, the panel boots into the project and the title bar / start screen of the HMI should appear within 30 s.
  2. Open the connection diagnostics in WinCC flexible (Project → Transfer → Online → Diagnostic) and confirm that the configured PLC connection is in the Connected state. If multiple connections are defined (MPI/DP to one CPU, PROFINET to another), each must be green.
  3. Force a single tag from the WinCC flexible tag table; the panel value should follow within one cycle of the configured update rate.
  4. Cycle power on the panel; the project must auto-load and the connections must come up without manual intervention (no Transfer prompt).
  5. Save the project, the panel image, and the connection configuration as a backup image on a USB stick or SD card using the panel's Service → Backup menu, so a future field failure can be recovered without re-engineering.
Safety: when the panel drives safety-relevant I/O, do not perform the first commissioning transfer while the machine is in production. Always use a dedicated, locked-out test environment for the initial download so that any unintended startup caused by a default value is contained.

FAQ

What is the "s7 control" referenced in WinCC flexible transfer guides?

The "s7 control" is the S7 PLC program container inside the STEP 7 project. When the HMI project is integrated into STEP 7, the PLC and HMI live in the same project tree, and tag / connection data is shared. Clicking Transfer in WinCC flexible then targets the S7 station as a whole, not a separate runtime.

Can I transfer a WinCC flexible project to an OP77B over MPI/DP without powering the PLC?

No. The OP77B's MPI/DP transceiver is powered from the bus (24 V sourced by the PLC). On a desk with only a PC Adapter, the panel will not enumerate on the bus. Either power the PLC, or use the serial RS232 null-modem path with 19200 8N1.

What is the correct baud rate for serial transfer to an OP77B?

19200 bit/s, 8 data bits, no parity, 1 stop bit. The baud is fixed by the panel firmware and is not user-configurable in the OP77B loader. On the PC, force the COM port to 19200 in Device Manager → Advanced and disable FIFO if errors appear on long cables.

Why does the Ethernet transfer fail with "connection not established" even though the PC can ping the panel?

The most common reason is that the WinCC flexible project still has the channel set to SOFTBUS. Open Project → Transfer → Transfer Settings and switch the channel to Ethernet (or HMI IE for the on-board IE of S7-200/300). The panel must also have Remote enabled in its Control Panel → Transfer.

Can I use S7-PLCSIM to test the HMI transfer without a real panel?

No. S7-PLCSIM emulates an S7 CPU only; it does not expose an HMI port. The WinCC flexible RT simulator runs the HMI image on the PC and can be combined with S7-PLCSIM through the softbus, but this combination is not available for the smallest panels (OP3, OP7, OP77A, OP77B) which lack an RT simulator. For those, a real panel is required.

Back to blog