Problem Summary
When attempting to upload a STEP 7 project from a SIMATIC S7-1200 CPU 1214C (MLFB 6ES7214-1AG40-0XB0) running firmware V4.2.1, TIA Portal V13 SP1 and V14 SP1 both return the message:
"The hardware configuration was created and downloaded with an incompatible version of STEP 7."
The trigger is a project/CPU firmware combination that pre-dates the TIA Portal major version installed on the engineering station. TIA Portal V13 only ships with the CPU 1214C (AG40) hardware catalog up to V4.1; TIA Portal V14 SP1 Update 3 in the affected configuration does not enumerate V4.2.1 either, depending on installed HSPs. The result is that the offline hardware configuration cannot be regenerated to match the CPU, blocking both Upload to PG/PC and Upload device as new station.
This article documents the diagnostic procedure, the recovery options (Online Access drag-and-drop, TIA version upgrade, and full recompile), the HSP procurement workflow, and the HMI/ProSave-specific recovery paths for a TP1500 Comfort panel paired with the same CPU.
Affected Hardware and Software
| Component | Order Number (MLFB) | Firmware / Version | Notes |
|---|---|---|---|
| CPU 1214C DC/DC/DC | 6ES7214-1AG40-0XB0 | V4.2.1 | Second-generation S7-1200, 14 DI / 10 DQ / 2 AI onboard |
| HMI TP1500 Comfort | 6AV2124-0QC02-0AX1 (typical) | V14.0.1.0 (image) | 15" widescreen, PROFINET |
| TIA Portal V13 SP1 | 6ES7822-1AA03-0YA5 (legacy) | STEP 7 V13 SP1 | CPU catalog limited to V4.1 for 1214C AG40 |
| TIA Portal V14 SP1 | 6ES7822-1AA04-0YA5 | Update 3+ | Requires HSP for V4.2 CPU 1214C |
| TIA Portal V16 | 6ES7822-1AA06-0YA5 | Update 5+ | Native support for CPU 1214C V4.2.x |
| TIA Portal V17 | 6ES7822-1AA07-0YA5 | — | Used in this case for HMI online diagnostics |
| SIMATIC ProSave | 6ES7852-2CC00-0YA5 (V13) / -0YA6 (V14) | V13 / V14 | TP1500 backup tool |
CPU MLFB 6ES7214-1AG40-0XB0 is the second-generation S7-1200 family. Firmware V4.2.x requires TIA Portal V14 SP1 or later with the corresponding HSP installed. TIA Portal V13 SP1 cannot read a V4.2 hardware configuration because the AG40 device description in V13 was frozen at V4.1.
Root Cause Analysis
The error is generated by the TIA Portal compatibility layer, not by the CPU. The flow is:
- PG/PC initiates Upload device as new station or Upload to PG/PC.
- TIA Portal reads the system data blocks (SDBs) and the hardware configuration that was compiled and downloaded to the CPU.
- The offline TIA Portal must contain a matching hardware catalog entry for the device (CPU, signal module, CM/CP) and the same firmware version in order to deserialize the SDBs.
- If the catalog entry exists but at a lower firmware version, TIA Portal can offer a firmware update. If the catalog entry does not exist at all, the dialog is closed with the "incompatible version" message.
Figure 1 — Root-cause flow: catalog version gap blocks SDB deserialization.
Two preconditions must both be true for the recovery to succeed:
- CPU firmware major revision match: the offline TIA Portal must be able to enumerate the CPU's major firmware revision (V4 in this case).
- Same or newer minor revision catalog: Siemens permits a CPU running a higher minor firmware than the catalog entry. V4.2.1 in the field is supported by a V4.2.0 catalog entry. A V4.1 catalog cannot enumerate a V4.2 CPU and is the failure mode described in the source case.
TIA Portal Firmware Compatibility Rules
Siemens' firmware-to-TIA-Portal matrix for the S7-1200 second generation (order suffix ...AG40-0XB0) is:
| CPU Firmware | TIA V13 SP1 | TIA V14 SP1 | TIA V15.1 | TIA V16 | TIA V17 | TIA V18 | TIA V19 |
|---|---|---|---|---|---|---|---|
| V4.0 | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| V4.1 | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| V4.2 | No | Yes (with HSP) | Yes | Yes | Yes | Yes | Yes |
| V4.3 | No | No | Yes (with HSP) | Yes (with HSP) | Yes | Yes | Yes |
| V4.4 | No | No | No | Yes (with HSP) | Yes (with HSP) | Yes | Yes |
| V4.5 | No | No | No | No | Yes (with HSP) | Yes (with HSP) | Yes |
| V4.6 / V4.7 | No | No | No | No | Yes (with HSP) | Yes (with HSP) | Yes |
Cells marked "Yes (with HSP)" require installation of the corresponding Hardware Support Package from the Siemens HSP download page. Without the HSP the catalog entry is absent and any upload operation against the device fails the same way the source describes.
Diagnostic Procedure: Identify the Source TIA Version
Before attempting recovery, the engineer must establish two facts: (1) the CPU's actual firmware version, and (2) the TIA Portal version that produced the on-line configuration. Both are obtainable without a project backup.
Step 1 — Read the CPU firmware on-line
- Open TIA Portal with any version that recognises the CPU's major firmware (V14 SP1 with HSP, V15.1, V16, V17).
- Project tree →
Online access→ select the Ethernet adapter → Update accessible devices. - Double-click the detected CPU; the Online & diagnostics view opens.
- Navigate to Diagnostics → General. The Module information panel lists the order number, firmware version, and serial number.
Step 2 — Detect the project TIA version
The TIA Portal version that produced the on-line configuration can sometimes be inferred by reading the SDB timestamps and the CPU's diagnostic buffer:
- Open Online & diagnostics → Diagnostic buffer.
- Look for an entry of type Download of program / configuration with the user name of the original programmer. The buffer is volatile during a CPU memory reset but persists across power cycles.
- Cross-reference the system event timestamp with the CPU's RTC clock to confirm the configuration download is genuine.
If the diagnostic buffer is empty (battery-backed RTC lost, or buffer cleared), the only remaining option is to read the SDBs directly through Online Access. See Siemens: Upload from S7-1200 to TIA Portal — what you can and cannot recover.
Figure 2 — Diagnostic flow before any project recovery attempt.
Recovery Method 1: Online Access Drag-and-Drop
This is the only recovery option that does not require the original TIA Portal version or a complete HSP. The CPU's blocks are pulled directly from the device into an empty project whose hardware is added manually.
Prerequisites
- PG/PC with TIA Portal V16 or later, configured Ethernet connection to the CPU's PROFINET interface (X1).
- CPU IP address and subnet mask. The default after factory reset is 192.168.0.1 / 255.255.255.0 with PG/PC routing enabled.
- All PG/PC firewall rules permit TCP/UDP port 102 (S7 communication) and port 161/162 (SNMP optional).
Step-by-step
- Create a new project in TIA Portal V16. Add a new S7-1200 station, select the exact CPU order number
6ES7214-1AG40-0XB0, and set the firmware to match the on-line CPU's firmware (V4.2.1 in this case). - Save the project. Do not attempt to compile or download yet.
- In the project tree, expand
Online access→ your Ethernet adapter → Update accessible devices. The CPU should appear as...<IP>. - Expand the on-line CPU entry. The Program blocks, Technology objects, and PLC tags folders will be populated from the live CPU.
- Drag the on-line Program blocks folder onto the off-line Program blocks folder. TIA Portal copies OB1, FB, FC, and DB blocks one by one. A dialog appears for every collision; choose Overwrite or Rename as appropriate.
- Repeat for PLC tags and Watch and force tables if needed.
- Compile the project (Hardware and Software). Resolve any re-compilation warnings — they usually point to differences in HW catalog versions and can be accepted as informational.
DB-specific recipe (for the original case)
The source case reports that pasting entire DBs into the new project triggered a TIA Portal crash on the affected PG/PC. The reliable workaround is to reconstruct the DB structure by hand and then pull the values:
- Open the source DB on-line in Online & diagnostics. Note the structure (UDT members, ARRAY bounds, initial values).
- Recreate the DB in the new project with identical name, number, and structure.
- Mark the new DB, right-click → Snapshot of actual values → Create. The snapshot is stored in the DB properties and can later be downloaded with the project.
Recovery Method 2: TIA Portal Version Upgrade Path
When the original TIA Portal version can be identified and the firmware gap is the only barrier, upgrading the PG/PC to a version with native V4.2.1 support is the cleanest path.
Side-by-side install matrix
| TIA Portal | Native CPU V4.2 catalog | HSP required | Co-install with V14 | Co-install with V16 |
|---|---|---|---|---|
| V13 SP1 | No | None — catalog frozen at V4.1 | Yes | Yes |
| V14 SP1 Update 6+ | Partial | HSP 0180 (V14 SP1) or later | — | Yes |
| V15.1 | Yes | — | — | Yes |
| V16 Update 5+ | Yes | — | — | — |
| V17 | Yes | — | — | Yes |
TIA Portal versions can be co-installed in any combination up to V18 on the same PG/PC. V19 changed the co-install rules — verify with the official TIA Portal installation guide before mixing V19 with earlier major versions.
Step-by-step recovery
- Identify the original TIA Portal version from the diagnostic buffer (see previous section). If unidentified, use TIA V16 as the lowest universally-capable version.
- Install the matching TIA Portal (e.g. V16 Update 5) on the PG/PC. Accept the default installation path.
- Re-launch the existing project that was previously opened in V13 or V14. TIA Portal performs a project upgrade; the converted project is saved as a copy.
- Open the converted project and navigate to Devices & networks. Update the device description if TIA Portal prompts for it.
- Compile the project. The output window reports the firmware that the project is now targeting. For a V4.2.1 CPU, this should be V4.2.1.
- Attempt Upload to PG/PC against the on-line CPU. With the V4.2 catalog now present, the upload completes and the offline hardware configuration is populated.
.ap13 / .ap14 file in case the V13/V14 tooling must be reused for an unrelated site.
Hardware Support Package (HSP) Management
HSPs are issued as .zip archives containing device description files (DDS), GSD/GSDML, and Help integration. The official download catalogue is at the Siemens Industry Online Support — HSP page.
Installation procedure
- Close all TIA Portal instances.
- Extract the HSP archive. Confirm the contents include
*.ddsand anhsp.xmlmanifest. - Launch the TIA Portal installation in Maintenance mode (Start → Siemens Automation → TIA Portal Vxx → Maintenance). The Install/support packages step accepts the extracted HSP folder.
- Restart the PG/PC.
- Verify in TIA Portal: Options → Support packages — the HSP appears in the installed list.
Common HSP errors
| Symptom | Root cause | Resolution |
|---|---|---|
| "You cannot download this file, since your registration inquiry is still being processed." | Export-restricted HSP (HSP0xxx) requires Siemens export registration approval | Complete Siemens export registration; allow 1-3 business days; retry download |
| HSP installs but catalog is empty | HSP version mismatch with TIA Portal | Download the matching HSP for the installed TIA Portal major version |
| "Incompatible HSP" warning on install | Older TIA Portal on PG/PC | Update TIA Portal to the minimum version documented in the HSP manifest |
| CPU visible but firmware V4.2.x missing | Only base catalog updated, no HSP | Re-run HSP install and confirm Support packages dialog shows the new module |
The export-restricted registration is described in Siemens KB 109770309. Allow several working days for the manual review before relying on a single HSP for a deadline-driven recovery.
HMI Panel Recovery and ProSave
Unlike the S7-1200 CPU, a Comfort Panel cannot reverse-engineer its engineering project. The TIA Portal upload of an HMI returns only the runtime binaries needed to re-load the same panel, not the WinCC project source.
What an HMI upload actually contains
- Compiled HMI tags (PLC ↔ HMI mapping at runtime).
- Compiled screens (bitmaps, vectors, animation logic).
- Recipes and user administration tables.
- Audit trail (if configured).
What an HMI upload does not contain
- The WinCC Comfort/Advanced project source (.hmi source files).
- The original variable names (only symbolic identifiers are preserved).
- The script source code (only compiled scripts are recoverable).
- The library references and the original configuration file.
Procedure for backing up the panel as it is:
- Open ProSave (Start → Siemens Automation → ProSave).
- Select Device type = TP1500 Comfort and Connection = Ethernet.
- Enter the panel's IP address. ProSave reads the panel's OS version and current runtime image.
- Click Backup. ProSave writes a
*.brffile containing the full runtime image. - Store the
.brfarchive alongside the PLC project for traceability.
If ProSave refuses with "device type mismatch", the installed ProSave version does not know the panel's firmware. This is the same root cause as the CPU mismatch and is resolved by installing a newer ProSave or by upgrading the panel's runtime image to a version supported by the installed ProSave.
ProSave recommended workflow
- Stop the panel runtime (Control Panel → OP → Stop Runtime) if accessible.
- Launch ProSave on the PG/PC.
- Configure: General tab — set Device type and Connection type.
- Ethernet tab — set the panel's IP address and PG/PC adapter.
-
Backup tab — click Backup. ProSave stores the image as a
.brfarchive; the file is encrypted with the panel's serial number for some firmware versions and cannot be restored to a different panel. - Verify the
.brffile size against the panel's available flash; an unusually small file indicates a partial backup.
Restore procedure
- Repower the panel in Service mode: hold the screen during power-up.
- ProSave Restore tab — select the
.brffile and the target panel's IP. - Click Restore. The panel reboots into the new image.
- Verify the panel's Control Panel → OP shows the expected image version.
Data Block (DB) Recovery Edge Cases
The source describes a TIA Portal crash when pasting a DB into the new project. The reliable recovery for any DB is:
Pattern A — DB with UDT members
- Identify the UDT declaration (Open on-line DB → Properties → Data type).
- Recreate the UDT in the new project with identical member order, type, and length.
- Create a new DB using the recreated UDT. Initialise with the same start value as the source.
- Use Online & diagnostics → Read from PLC to populate the actual values into the new DB.
Pattern B — DB with complex ARRAY bounds
If the DB contains an ARRAY[0..9999] OF ... with dynamic bounds, the recompile can change the DB number. Resolve by manually editing the DB number to match the original or by updating the consumer code (e.g. HMI tags) to point to the new number.
Pattern C — Optimised DB with retentivity flags
- Right-click the recreated DB → Properties → Attributes.
- Match the Optimised block access flag and the Retain check-boxes from the source DB.
- Re-mark the retentive areas in Retain memory. S7-1200 supports a maximum of 10 KB of retentive DB data; exceeding this triggers an error during download.
Verification and Commissioning Checklist
After any recovery, validate the project against the live CPU before signing off:
| Check | Method | Pass criterion |
|---|---|---|
| Hardware configuration matches the physical rack | Go online → Compare offline/online | No differences |
| CPU firmware version in the offline project | Devices & networks → CPU properties → General | Matches the on-line CPU firmware |
| Program block count and numbers | Project tree → Program blocks cross-checked with on-line CPU | Same block count, same numbers, same OB/FB/FC names |
| PLC tag table integrity | Compare offline and online tag tables | No missing tags, no type mismatches |
| Watch table works online | Open a watch table, force a known value, observe reaction | Force value visible in the on-line tag |
| HMI connection to PLC | From TP1500, start the runtime, check connection status icon | Connected; tag polling updates visible |
| Recipes and user administration (if any) | Trigger a recipe transfer; verify on the PLC side | Recipe values match the expected set-point |
| Time synchronisation | PLC ↔ HMI ↔ NTP server | Logs show a single common time base |
| Backup of the recovered project | Archive the .apXX project with a date-stamped folder |
At least one verified archive stored in a non-PG/PC location |
Frequently Asked Questions
Why does TIA Portal V13 SP1 fail to upload from a CPU 1214C V4.2.1 when the same project uploaded fine in V13 originally?
TIA Portal V13 SP1 was released before the V4.2 firmware and its hardware catalog is frozen at V4.1 for the CPU 1214C (MLFB 6ES7214-1AG40-0XB0). A V4.2.1 CPU returns a system data block set that V13 cannot deserialize, and the dialog exits with the "incompatible version" error. The original upload worked because the on-line CPU at that time was V4.0 or V4.1.
Can I just install the V4.2 HSP into TIA Portal V13 SP1 to add support for the new firmware?
No. TIA Portal V13 SP1 is no longer maintained and does not accept HSPs newer than the V13 catalogue freeze. The recommended path is to install TIA Portal V14 SP1 Update 6 (with the matching HSP) or, more commonly, TIA Portal V16 / V17 as a co-install and open the project there.
Is the Online Access drag-and-drop method safe for production PLCs?
Yes for read-only operations. Dragging blocks from the on-line CPU to the off-line project copies them into the engineering database and does not modify the live PLC. The opposite direction (off-line → on-line) does write to the CPU and can cause a brief stop of the S7-1200 user program if the OB1 cycle is interrupted by the download — schedule downloads only during planned downtime.
Why does ProSave refuse to back up the TP1500 Comfort panel even though the panel responds to ping?
ProSave checks the panel's image version against the ProSave version's supported list. If the panel runs a newer runtime image (for example, V14.0.1.0) than the ProSave's maximum (for example, V13.0.1.0), the dialog shows "device type mismatch" and aborts. Install a ProSave version that matches the panel image, or use WinCC Comfort V16+ which bundles the matching ProSave.
Can I recover the WinCC Comfort engineering project from a running TP1500 Comfort?
No. Siemens HMIs upload only the compiled runtime image. The WinCC source project, scripts, screen layouts, and library references are not retrievable. If the source project is lost, the only official path is to re-engineer the HMI from scratch using the original specification, IO list, and any on-line snapshots that the integrator can supply.