Resolving S7-1200 CPU 1214C V4.2.1 TIA Portal Upload Errors

David Krause16 min read
S7-1200SiemensTroubleshooting
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

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.

Engineering impact: Any future modification or fault-finding on this CPU requires the recovered project to be recompiled in a TIA Portal version that is compatible with the on-line CPU firmware. The original TIA Portal version that created the configuration is generally the only version that can read the configuration blocks without conversion loss.

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:

  1. PG/PC initiates Upload device as new station or Upload to PG/PC.
  2. TIA Portal reads the system data blocks (SDBs) and the hardware configuration that was compiled and downloaded to the CPU.
  3. 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.
  4. 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.
TIA V13/V14 SP1 Catalog FW V4.1 max CPU 1214C AG40 FW V4.2.1 on board Result Incompatible Version Online Access Drag and drop blocks TIA V16 / V17 Full HSP coverage Recovery Upload succeeds

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.
Important: The CPU firmware and the offline TIA Portal project firmware do not need to be identical. As long as the firmware belongs to the same major revision, the on-line device's firmware may be the same minor revision or higher than the catalog. See the official Siemens FAQ: Online functions in STEP 7 (TIA Portal) for S7-1200/S7-1500.

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

  1. Open TIA Portal with any version that recognises the CPU's major firmware (V14 SP1 with HSP, V15.1, V16, V17).
  2. Project tree → Online access → select the Ethernet adapter → Update accessible devices.
  3. Double-click the detected CPU; the Online & diagnostics view opens.
  4. Navigate to DiagnosticsGeneral. 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:

  1. Open Online & diagnosticsDiagnostic buffer.
  2. 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.
  3. 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.

Online & Diagnostics Read CPU FW Diagnostic buffer Find last download Identify TIA version used Recovery strategy

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

  1. 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).
  2. Save the project. Do not attempt to compile or download yet.
  3. In the project tree, expand Online access → your Ethernet adapter → Update accessible devices. The CPU should appear as ...<IP>.
  4. Expand the on-line CPU entry. The Program blocks, Technology objects, and PLC tags folders will be populated from the live CPU.
  5. 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.
  6. Repeat for PLC tags and Watch and force tables if needed.
  7. 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.
Data block caveat: The drag operation copies the offline DB interface declaration, not the actual values in the CPU. To preserve the live values, use Online & diagnosticsBackupRead from PLC on each DB, or use the SFC services in the CPU's Online & diagnostics panel. Alternatively, the recipe and HMI-visible data can be exported as a snapshot.

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:

  1. Open the source DB on-line in Online & diagnostics. Note the structure (UDT members, ARRAY bounds, initial values).
  2. Recreate the DB in the new project with identical name, number, and structure.
  3. Mark the new DB, right-click → Snapshot of actual valuesCreate. 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

  1. Identify the original TIA Portal version from the diagnostic buffer (see previous section). If unidentified, use TIA V16 as the lowest universally-capable version.
  2. Install the matching TIA Portal (e.g. V16 Update 5) on the PG/PC. Accept the default installation path.
  3. 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.
  4. Open the converted project and navigate to Devices & networks. Update the device description if TIA Portal prompts for it.
  5. 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.
  6. 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.
Caution on project upgrade: Project upgrade is one-way. The V16 project cannot be opened in V13 or V14 SP1 without saving under the original version (which TIA Portal does not support). Maintain a backup of the pre-upgrade .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

  1. Close all TIA Portal instances.
  2. Extract the HSP archive. Confirm the contents include *.dds and an hsp.xml manifest.
  3. 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.
  4. Restart the PG/PC.
  5. Verify in TIA Portal: OptionsSupport 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.
Implication: If the TP1500 Comfort engineering project is not on file, the only path to maintain or modify the HMI application is to reverse-engineer the screen structure from the running panel, which is not officially supported and may violate the project IP. The original integrator should always be asked for the project archive first.

Procedure for backing up the panel as it is:

  1. Open ProSave (Start → Siemens Automation → ProSave).
  2. Select Device type = TP1500 Comfort and Connection = Ethernet.
  3. Enter the panel's IP address. ProSave reads the panel's OS version and current runtime image.
  4. Click Backup. ProSave writes a *.brf file containing the full runtime image.
  5. Store the .brf archive 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

  1. Stop the panel runtime (Control Panel → OPStop Runtime) if accessible.
  2. Launch ProSave on the PG/PC.
  3. Configure: General tab — set Device type and Connection type.
  4. Ethernet tab — set the panel's IP address and PG/PC adapter.
  5. Backup tab — click Backup. ProSave stores the image as a .brf archive; the file is encrypted with the panel's serial number for some firmware versions and cannot be restored to a different panel.
  6. Verify the .brf file size against the panel's available flash; an unusually small file indicates a partial backup.

Restore procedure

  1. Repower the panel in Service mode: hold the screen during power-up.
  2. ProSave Restore tab — select the .brf file and the target panel's IP.
  3. Click Restore. The panel reboots into the new image.
  4. Verify the panel's Control PanelOP 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

  1. Identify the UDT declaration (Open on-line DB → PropertiesData type).
  2. Recreate the UDT in the new project with identical member order, type, and length.
  3. Create a new DB using the recreated UDT. Initialise with the same start value as the source.
  4. Use Online & diagnosticsRead 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

  1. Right-click the recreated DB → PropertiesAttributes.
  2. Match the Optimised block access flag and the Retain check-boxes from the source DB.
  3. 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.

Back to blog