Migrating WinCC Flexible Projects to TIA Portal WinCC Complete

David Krause14 min read
HMI / SCADASiemensTutorial / How-to
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: WinCC Flexible vs. TIA Portal WinCC

WinCC Flexible was Siemens' standalone HMI configuration suite from 2004 through 2014, used to program SIMATIC Panels, Multi Panels, and Comfort/Mobile Panels that were integrated into STEP 7 V5.x or operated as standalone installations. With the release of TIA Portal (Totally Integrated Automation Portal) in 2010, the HMI engineering environment was folded into the unified engineering framework as SIMATIC WinCC (TIA Portal). WinCC Flexible 2008 SP5 was the final standalone release; maintenance updates stopped in 2018.

The migration path from WinCC Flexible to TIA Portal WinCC is officially supported through the TIA Portal Migration Tool, which converts the source project (including screens, tags, alarms, recipes, scripts, and connections) into a TIA Portal HMI device representation. Direct editing of WinCC Flexible binary data outside this tool is not supported by Siemens; the proprietary .hmi container and embedded binary graphic streams must be parsed by the migration tool to produce a valid TIA Portal project.

Important: The user's question about opening WinCC Flexible graphics in "WinCC Explorer" (the runtime browser of the legacy WinCC SCADA, not TIA Portal) reflects a common terminology confusion. "WinCC Explorer" historically refers to the configuration shell of SIMATIC WinCC V7.x (the PC-based SCADA), not TIA Portal. The proper modern target for WinCC Flexible projects is the TIA Portal HMI engineering view, with runtime hosted on SIMATIC Panels or WinCC Runtime Advanced/Professional.

Source Project Storage Architecture

Understanding how WinCC Flexible stores project data is critical for engineers performing manual recovery or preparing for migration.

When a WinCC Flexible project is integrated into a STEP 7 V5.x project, the source files are located in a folder called HmiES within the STEP 7 project tree. This folder contains:

  • <project>.hmi — the compressed binary project container holding all screens, tags, alarms, recipes, and configuration data.
  • Embedded graphic objects stored in compressed internal format (not standard PNG/BMP).
  • VB script source code (where applicable).
  • Connection and tag database linking to the STEP 7 symbol table.

Standalone WinCC Flexible projects (not integrated with STEP 7) use the same internal container format but reside in a user-selected folder with a single .hmi file. Neither format can be opened, edited, or rendered by external tools — the files are deliberately opaque to protect intellectual property and to enforce configuration integrity.

Prerequisites for Migration

Before initiating the migration, verify the following requirements:

Component Requirement
Source project WinCC Flexible 2008 SP2 or later (SP5 recommended for maximum compatibility)
Target engineering TIA Portal V13 SP1 or later (V15.1, V16, V17, or V20 recommended for current firmware support)
License Valid TIA Portal license corresponding to the HMI device family being migrated (Basic, Comfort, or WinCC Advanced/Professional)
Target panel/runtime Siemens-supported successor device (see device substitution table below)
Operating system Windows 10/11 (64-bit) for TIA Portal V16+
Administrative rights Required for installation and migration tool execution

For projects using a 16:9 aspect ratio or high-resolution graphics introduced in newer Comfort Panels, ensure the target TIA Portal version supports the panel's firmware revision. TIA Portal V17 or later is required for Comfort Panels V3 firmware.

Device Substitution: Mapping Old Panels to TIA Portal Devices

WinCC Flexible supported a wide range of SIMATIC Panels, many of which are now discontinued. The TIA Portal migration tool handles device substitution automatically, but engineers should verify the mapping before starting the migration:

WinCC Flexible Device Migration Target (TIA Portal)
OP 77A, OP 77B KTP400 Basic (mono PN)
TP 177A, TP 177B (4") KTP400 Basic or KTP600 Basic
OP 177B, TP 177B 6" KTP600 Basic or KTP1000 Basic
TP 277 6" TP700 Comfort
MP 277 8" / 10" TP900 Comfort / TP1200 Comfort
MP 377 12" / 15" / 19" TP1500 Comfort / TP1900 Comfort / TP2200 Comfort
Mobile Panel 177 / 277 KTP700 Mobile or KTP900 Mobile (TIA V15+)
PC Runtime (WinCC Flexible RT) WinCC Runtime Advanced (TIA Portal) or WinCC Runtime Professional

Devices that have no direct successor (e.g., OP 73, TP 170A older units) require manual re-engineering as a different panel class with adjusted screen layout.

Step-by-Step Migration Procedure

  1. Back up the source project. Copy the .hmi file (standalone) or the entire STEP 7 project folder including the HmiES directory to a secure location. Never migrate from the only copy.
  2. Open TIA Portal and create a new project. The migration tool is invoked from the project view, not the portal view.
  3. Navigate to Project Tree → Options → Migration. Select "WinCC flexible project" as the source format. The tool path may differ slightly across TIA Portal versions: in V15 and later, it appears under the "Project" menu in the project tree context.
  4. Select the source file. Browse to the .hmi file or to the HmiES folder of the STEP 7 project. The migration tool validates the project version and structure.
  5. Choose the target device. The tool proposes a successor device based on the substitution table. Confirm or override the selection. If the target is a PC runtime, specify WinCC Runtime Advanced or Professional.
  6. Configure transfer options. Select which elements to migrate: screens, tags, alarms, recipes, logs, scripts, scheduled tasks, user administration, and language resources. Skipping elements reduces migration time but increases post-migration rework.
  7. Execute the migration. The tool writes a new device node into the TIA Portal project tree. A migration log is generated showing converted objects, warnings, and errors.
  8. Review the migration log. Critical items (unsupported objects, truncated tag names, missing connections) appear as warnings that must be addressed manually.
  9. Compile the target project. Use "Compile → Software (rebuild all)" to validate the migrated configuration. Compilation errors indicate semantic issues requiring manual correction.
  10. Download to the target device (for panel projects) or build the runtime (for PC-based targets). Verify on a test bench before field deployment.

Graphics Conversion: What Actually Happens

The user's specific concern — preserving complex P&ID graphics with all detail — is the most common challenge in WinCC Flexible migration. The conversion behavior depends on the graphic type used in the source project:

Source Graphic Type Migration Result in TIA Portal
Standard vector primitives (line, circle, rectangle, polygon, text) Converted 1:1 to TIA Portal screen objects
WinCC Flexible Smart Objects (bar, gauge, trend, message display, alarm view) Converted to equivalent TIA Portal HMI controls; some properties reset to defaults
External graphics (.bmp, .jpg, .png, .emf, .wmf) Copied to project graphics folder; references preserved
Symbol libraries (S7 symbol or external library) Copied to the project graphics pool; custom symbol libraries may require manual re-registration
SVG graphics (WinCC Flexible 2008 SP3+) Converted to TIA Portal SVG with possible loss of animation bindings
OLE objects, ActiveX controls Not supported in TIA Portal HMI; require manual redesign
WinCC Flexible faceplates (instance-based) Converted to TIA Portal faceplates, but interface properties require manual review

For P&ID projects with hundreds of objects per screen, the migration tool preserves the object tree and most property bindings. However, the following items commonly require post-migration attention:

  • Layer assignments are converted, but layer visibility logic in scripts may need rewriting.
  • Animation sequences (appearance, disappearance, movement) translate to the TIA Portal animation model; complex multi-step animations occasionally need rework.
  • Dynamic SVG introduced in WinCC Flexible 2008 SP3+ requires TIA Portal V14 SP1 or later for full feature parity.
  • Z-order (object stacking) is preserved; verify after migration because some panel resolutions change the visual layout.
Engineer tip: For large graphic-heavy projects, perform a "pilot migration" on a single screen first. Document every object that requires manual correction, then apply that knowledge to the bulk migration. This avoids discovering fundamental issues after migrating 200 screens.

Tag and Alarm Migration

Tag migration in TIA Portal preserves naming, data type, and PLC connection parameters. Specific behaviors:

  • Tag names longer than 128 characters (TIA Portal limit) are flagged in the migration log; these require manual shortening.
  • Array tags with more than six dimensions are converted but limited to TIA Portal's array support (max 6 dimensions).
  • External tags (PLC points) retain their connection assignment if the target controller (S7-300/400/1200/1500) is present in the TIA Portal project. Missing controllers generate warnings; tags become "connectionless" and must be re-bound.
  • Limit values and linear scaling properties are preserved.

Alarms (discrete, analog, and S7-based) are migrated with the following notes:

  • Alarm classes (Errors, Warnings, System) are converted to TIA Portal alarm classes with default acknowledgment behavior.
  • Alarm texts are preserved including multi-language entries.
  • S7 alarm number assignments (ALARM_S / ALARM_D) require the matching alarm configuration to exist in the STEP 7 (TIA) program; otherwise the alarm is registered as "unassigned."
  • Custom alarm classes defined in WinCC Flexible are converted but properties like "go-to-source" must be re-validated.

Scripts and Scheduled Tasks

WinCC Flexible used VBScript for global and local scripts. TIA Portal WinCC uses the same VBScript engine with the following migration behavior:

For C scripts (less common in WinCC Flexible), note that TIA Portal WinCC Runtime Advanced does not support C scripting. C scripts must be rewritten in VBScript or replaced with function calls.

Unsupported Features and Known Limitations

Siemens explicitly documents the following as not migratable or requiring manual rework:

  • Custom ActiveX controls and third-party OCX components — must be replaced with TIA Portal controls or vendor-certified alternatives.
  • ProSave-backed transfer settings — reconfigure transfer channels in the TIA Portal project.
  • Cross-references between screens across language variants — verify after migration.
  • WinCC Flexible Runtime with custom DLLs (e.g., recipe functions calling external libraries) — DLL references must be re-added to the TIA Portal project.
  • Integration with SIMATIC Logon — TIA Portal uses a different SIMATIC Logon version; verify credential mapping.
  • Audit trail configurations — must be reconfigured using the TIA Portal Audit component.
  • Custom Web Server pages — WinCC Flexible's web server is replaced by TIA Portal's Sm@rtServer, requiring redevelopment of web pages.
  • Sm@rtAccess / Sm@rtService license-dependent features migrate but require license activation on the target device.
Compatibility check: Always consult the official WinCC migration guide for the specific TIA Portal version you are using. Feature support changes between portal versions. The V3.0 migration guide is the latest documented reference for migration to current TIA Portal releases.

Post-Migration Verification Procedure

After the migration completes, perform the following verification steps before deploying the project to a live system:

  1. Compile without errors. The target project must compile cleanly. Warnings are acceptable but must be reviewed.
  2. Simulate with PLCSIM. Use TIA Portal's built-in simulator to run the HMI project against a virtual PLC. Verify tag updates, alarm generation, and screen navigation.
  3. Audit screen count and contents. Compare the migrated project's screen list against the original WinCC Flexible project. Missing screens indicate incomplete migration.
  4. Test all alarms. Trigger each alarm class from the simulator to verify acknowledgment, logging, and display behavior.
  5. Validate user administration. Test login, logout, and permission-restricted actions. WinCC Flexible's user administration model differs slightly from TIA Portal's.
  6. Verify recipe handling. If recipes were used, test export, import, and synchronization to the PLC.
  7. Test language switching. Verify all configured languages load correctly. Some right-to-left languages require special font handling that differs between WinCC Flexible and TIA Portal.
  8. Validate graphics rendering. On the physical target panel, check that all P&ID graphics display without missing objects, broken links, or layout shifts.
  9. Test communication with the real PLC. Connect to the target controller and verify tag values, bit-level operations, and alarm acknowledgments.
  10. Document the delta. Record every manual change made during verification. This becomes the migration baseline for future similar projects.

Troubleshooting Matrix

Script Element Migration Behavior
Built-in functions (ShowScreen, SetBit, etc.) Converted to TIA Portal equivalents automatically
Tag access syntax SmartTags("TagName") Preserved; same syntax in TIA Portal
Screen object access (HMIRuntime.Screens) Preserved with same object model
System functions not supported in TIA Portal runtime Marked in migration log; require manual rewriting
Scheduled tasks (time-based, event-based) Converted to TIA Portal "Scheduled tasks" with trigger reconfiguration
Symptom Probable Cause Resolution
Migration tool reports "source project is corrupt" WinCC Flexible 2008 SP1 or earlier project with incompatible internal format Open in WinCC Flexible 2008 SP5, resave, then migrate
Tags become "connectionless" after migration Target PLC not present in TIA Portal project Add the controller to the TIA Portal project, then re-bind tags via "Compile → Tags (rebuild all)"
Graphics appear with wrong colors or transparency Color palette differences between source panel and target panel Reassign color properties via "Adapt project" wizard in TIA Portal
Compilation error: "Object type not supported" ActiveX or custom OLE object in source Delete the unsupported object and replace with TIA Portal equivalent
Migration log shows "Tag name truncated" Tag name exceeds 128 characters in TIA Portal Rename tags in the source project before migration, or post-migration in TIA Portal with PLC tag mapping update
Alarm texts display placeholder characters Missing language fonts on target panel Install the required font set in the TIA Portal project under "Runtime settings → Language & fonts"
Faceplate interface not visible at runtime Property linkage broken during migration Open the faceplate in the TIA Portal faceplate editor, re-establish interface tag bindings
VBScript runtime error at execution Function call signature changed between WinCC Flexible and TIA Portal HMI Cross-reference the script with TIA Portal VBScript reference manual; update function calls
Migration tool not visible in TIA Portal menu TIA Portal version does not support source version, or license missing Update TIA Portal to a version supporting the source project; verify the WinCC Engineering license is installed

Alternative: PC-Based Runtime Architecture

If the original WinCC Flexible project used PC Runtime, the modern equivalent is WinCC Runtime Advanced (TIA Portal) or WinCC Runtime Professional (TIA Portal). The migration path differs:

  • WinCC Runtime Advanced — direct migration of WinCC Flexible PC Runtime to a TIA Portal PC station. Functionality is essentially equivalent.
  • WinCC Runtime Professional — for SCADA-scale applications, requires manual re-engineering. The project structure is fundamentally different: WinCC Professional uses graphics with C/VBScript and a different tag database architecture.

For multi-client distributed systems originally built with WinCC Flexible RT as a single-node solution, TIA Portal's WinCC Professional can introduce client-server architecture that was not available in WinCC Flexible.

Field Commissioning Checklist

When deploying the migrated project to a production line, observe the following procedural steps:

  1. Verify the target panel's firmware version matches the TIA Portal engineering version (e.g., TIA V17 projects require panel firmware V17.x or compatible).
  2. Back up the panel's existing project before transfer (use ProSave or TIA Portal "Backup" function).
  3. Use TIA Portal's "Download to device" with the correct transfer mode (PN/IE, USB, MPI/DP, or serial — though serial is increasingly uncommon).
  4. After download, perform a panel restart and verify the project boots without errors.
  5. Test operator workflows end-to-end: login, navigate screens, acknowledge alarms, modify setpoints, handle recipes.
  6. Verify time synchronization between the panel and the PLC (WinCC Flexible projects frequently used panel-as-master; TIA Portal projects typically use PLC-as-master).
  7. Document the migration completion, including any manual modifications, in a project handover dossier.

FAQ

What is the difference between WinCC Flexible and TIA Portal WinCC?

WinCC Flexible is a standalone HMI configuration tool used from 2004 to 2014 for SIMATIC Panels and PC Runtime. TIA Portal WinCC is the integrated successor, available since TIA Portal V11, with a unified engineering environment for PLC and HMI. Siemens officially supports migration from WinCC Flexible 2008 SP2+ to TIA Portal WinCC via the built-in migration tool.

Can I open a WinCC Flexible .hmi file directly in TIA Portal?

No. The .hmi file uses a proprietary compressed container format that TIA Portal cannot parse directly. You must use the TIA Portal Migration Tool (Project → Migrate WinCC flexible project) to convert it into a TIA Portal HMI device node.

Which WinCC Flexible devices can be migrated to TIA Portal WinCC?

All WinCC Flexible 2008 SP2+ panels (OP 77, OP 177, TP 177, OP 277, TP 277, MP 177, MP 277, MP 377, Mobile Panels 177/277) have successor devices in the TIA Portal catalog: KTP Basic, TP Comfort, KTP Mobile, and WinCC Runtime Advanced/Professional. The migration tool performs automatic device substitution with configurable override.

Are all WinCC Flexible graphics preserved during migration?

Standard vector primitives, external graphics, and Smart Objects migrate directly. ActiveX controls, OLE objects, and certain custom symbols require manual replacement. Complex P&ID graphics with hundreds of objects typically migrate intact, but layer assignments, dynamic SVG bindings, and animation sequences should be verified post-migration.

Do migrated projects require license upgrades?

Yes. The target TIA Portal project requires a valid WinCC Engineering license corresponding to the device class (Basic, Comfort, Advanced, or Professional). Additionally, runtime licenses (RT Advanced or RT Professional) must match the target device. Existing WinCC Flexible licenses are not transferable to TIA Portal.

How do I access the migration tool in TIA Portal?

Open or create a TIA Portal project, switch to the project view, right-click the project node, and select "Migrate WinCC flexible project" (menu path varies by TIA Portal version: V13-V14 under "Project," V15+ under "Options → Migration"). Then browse to the source .hmi file or HmiES folder.

Can I migrate a WinCC Flexible project that is integrated into a STEP 7 V5.x project?

Yes. The WinCC Flexible project data is stored in the HmiES folder within the STEP 7 V5.x project tree. The TIA Portal migration tool reads from this folder. For best results, first migrate the STEP 7 V5.x PLC program to TIA Portal using the STEP 7 migration tool, then migrate the HMI project. This ensures tag connections are preserved.

Back to blog