S7-1200 SIMATIC Transfer Card: Fixing Program Mode Lock
Engineers maintaining SIMATIC S7-1200 CPUs frequently encounter a situation where a SIMATIC Memory Card (SMC) previously loaded with a STEP 7 (TIA Portal) project continues to behave as a Program card even after the engineer deletes the project files, reformats the card, and attempts to re-provision it as a Transfer card. This article documents the operational difference between the two card types, the root cause of the most common conversion failure, and the exact Siemens-documented procedures to produce a working Transfer card on the S7-1200 platform.
Problem Details: S7-1200 Card Locked in Program Mode
From chapter 3.4 of the S7-1200 Programmable Controller System Manual, the SIMATIC memory card is a small storage medium used in the S7-1200 CPU. Once inserted, the card can serve in one of the following roles:
- Program card – the entire STEP 7 user program and runtime data are stored on the card; the CPU's internal load memory is overwritten by the card's contents and the internal load memory is erased. With the card inserted, the user program is executed from the card. If the card is removed, the CPU no longer has an executable program.
- Transfer card – the card contains a STEP 7 project (under a special directory layout) that is automatically copied into the CPU's internal load memory at the next power-on or power-cycle of the CPU. After the transfer completes, the project is fully usable even if the card is removed.
- Empty / firmware update card – the card contains a firmware update job that is applied at the next CPU restart.
The reported symptom: an engineer has an SMC that previously operated correctly as a Program card. After deleting the project files on the card via Windows Explorer (or fully reformatting the card to FAT16/FAT32), the engineer attempts to follow the manual's procedure to create a Transfer card. The card continues to behave as a Program card on the next CPU restart. Deleting or formatting the card on the laptop does not change the role detected by the S7-1200 CPU.
This behavior is not a fault in the S7-1200 firmware. The S7-1200 identifies the role of the card by the presence (or absence) of specific marker files written into the root directory of the card by the TIA Portal / STEP 7 download dialog (or by a CPU-inserted Program-to-Transfer procedure). If those files are not written correctly, the card simply defaults to whatever mode the previous card image implies, which on a previously-used Program card means Program mode again.
How SIMATIC SMC Card Modes Work
The S7-1200 CPU inspects the inserted card during the power-on sequence. Card evaluation is not continuous; the CPU only reads role information at OFF/ON transitions. Once a role has been set, the CPU persists the project in the role-appropriate memory (internal load memory for Transfer cards, card-resident for Program cards) and runs from that location.
| Attribute | Program card | Transfer card |
|---|---|---|
| Runtime location | Card-resident (CPU runs from card) | Internal load memory (CPU runs from internal memory after transfer) |
| Effect on internal load memory | Internal load memory is erased and replaced by card content | Internal load memory is overwritten by card content during transfer |
| Project usability after card removal | No program available; CPU goes to STOP with diagnostic entry | Project continues to run from internal load memory |
| Typical use case | Mass deployment of identical programs where the program version must move with the card | Field service: deliver a project update to a CPU that already has a working internal image |
| Power-on behavior | Card evaluated; project runs directly from card | Card evaluated; project copied to internal load memory; card can be removed |
The role decision is driven by marker files the TIA Portal or the CPU itself writes to the card root. Manually copying or deleting these files outside the TIA Portal / STEP 7 card-provisioning function is not a supported way to switch the card's role.
Root Cause: Card Reader Compatibility and File Layout
The single most common root cause of the "card stuck in Program mode" symptom is the card reader used to write the project to the SMC. In the case that motivated this article, the engineer was using a generic multi-slot USB card reader that accepted MMC, SD, and MS cards in one shared slot. With that reader, every write attempt produced an apparently normal file listing on the laptop, but the S7-1200 CPU still detected the card as a Program card. Replacing the multi-slot reader with a dedicated HAMA USB card reader with a separate MMC slot immediately resolved the issue.
The underlying mechanism is that the S7-1200 expects the SMC to be written with a specific directory layout and a specific set of marker files. The TIA Portal / STEP 7 card-writing functions rely on the host card reader presenting the card with attributes that match the SMC's expected geometry. Some multi-slot readers expose the card as a generic SD/MMC mass-storage device but do not correctly mirror every attribute the S7-1200 expects when the card is returned to the CPU slot. A dedicated MMC reader presents the card with the precise combination the CPU uses to decide which mode to apply.
Three other contributing causes appear repeatedly in field reports:
-
Card was not actually blank when written. The TIA Portal card-creation function checks the card before writing. If residual
SIMATIC.S7S/FWUPDATE.S7Sfiles are present (for example, from a prior Program card image that was copied rather than properly re-provisioned), the tool may preserve them and re-emit a Program card image. Manually deleting these files with Windows Explorer is not equivalent to re-provisioning the card with the TIA Portal "Transfer card" function. - Card was formatted to a non-supported file system. S7-1200 SMCs are typically pre-formatted to FAT16/FAT32. Reformatting on the laptop to exFAT or NTFS is not supported; the CPU will not read the card and may default to interpreting it as a Program card from prior internal state.
- Card was not ejected cleanly. Removing the card from a USB reader before the write buffers were flushed leaves the marker files in a partial state. The next CPU power-up detects an incomplete Program card and behaves accordingly.
Required Hardware and File Layout
| Item | Specification / Note |
|---|---|
| SIMATIC Memory Card (SMC) | Original Siemens SMC sized for the S7-1200 CPU (commonly 4 MB, 12 MB, 24 MB, or 2 GB depending on catalog number and CPU generation). The card must be Siemens-branded; third-party SD cards are not supported by S7-1200 CPUs. |
| Card reader | A USB card reader with a dedicated MMC slot. Multi-format readers that share a single physical slot between MMC, SD, and MS are not reliable for S7-1200 card provisioning. |
| PC host | STEP 7 Basic / Professional in TIA Portal, or STEP 7 V11+ for legacy flows, with the S7-1200 CPU's Hardware Support Package (HSP) installed. |
| File system on the card | FAT16 / FAT32 only. Reformat to exFAT or NTFS will not be recognized by the CPU. |
| Marker files written by the tool |
SIMATIC.S7S and (for firmware update) FWUPDATE.S7S. Their presence/absence and content determine the role the CPU will assign to the card on power-up. |
Method 1: Create Transfer Card via External Card Reader
The S7-1200 System Manual chapter 3.4 documents two paths to create a Transfer card. The first path uses a card reader attached to the engineering PC only.
- Insert a blank SIMATIC memory card into the card reader attached to the PC. The card must be in its factory state or have been fully re-provisioned by the TIA Portal card function; manually deleting files is not a substitute.
- In TIA Portal, open the project you want to deploy, then select the S7-1200 CPU and choose the card operation you want from the project tree. For a Transfer card, the typical entry is "SIMATIC Card Reader > Transfer" (or the equivalent menu in your STEP 7 version).
- Select the target card drive that corresponds to the USB card reader. Confirm the file system is FAT16/FAT32. TIA Portal writes the project plus the
SIMATIC.S7Smarker so the CPU recognizes the card as a Transfer card on the next power-up. - Safely eject the card from the PC's card reader. Do not interrupt the write — partial writes leave the card in an undefined state.
- Insert the card into the S7-1200 CPU's card slot with the CPU powered off.
- Power-cycle the CPU (OFF, then ON). The CPU evaluates the card, copies the project into internal load memory, then runs from internal load memory. The Transfer card can be removed after the transfer completes.
Method 2: Create Transfer Card via S7-1200 CPU
The second documented path uses the S7-1200 CPU itself to populate the card, which avoids dependence on the host card reader for the initial write.
- With the CPU in STOP, download the desired STEP 7 project to the CPU's internal load memory over PROFINET / Ethernet using TIA Portal.
- Insert a blank SIMATIC memory card into the CPU's card slot while the CPU is powered. The CPU detects the card.
- Use TIA Portal's "Project > Card Reader > Transfer" command (or the CPU's online card operations) to copy the internal project to the card as a Transfer card image. The CPU writes the required marker files directly to the card.
- After the write completes, power-cycle the CPU. The CPU recognizes the card as a Transfer card, copies the project back to internal load memory, and runs from internal memory.
Method 2 is the recommended path when the engineer's PC-side card reader is suspect. Because the CPU itself writes the card, the role-detection files are guaranteed to be correct for that CPU's firmware generation. This method is also the safest way to recover a card that was previously mis-provisioned by an unreliable USB reader.
Step-by-Step Power-Cycle Evaluation Procedure
Per the Siemens S7-1200 System Manual and the Siemens support entry on transfer cards, the CPU evaluates a card only at power-on. Card role changes therefore require an OFF/ON transition of the CPU. The procedure:
- CPU must be in STOP or power-off before the card is inserted or removed. Inserting or removing the card with the CPU in RUN can corrupt the project on internal load memory.
- Power off the CPU (PS OFF, then PS ON) or use the TIA Portal "Reset to factory settings" / power-cycle sequence.
- Observe the CPU's LEDs during power-up. The RUN/STOP, ERROR, and MAINT LEDs indicate the result of the card evaluation. A successful Transfer card load is followed by the CPU entering RUN with the loaded project.
- If the CPU does not enter RUN, the card was not recognized as a Transfer card. Remove the card, re-create it using Method 1 or Method 2 above, and re-insert.
- After the transfer completes, the card can be removed. The project should continue to run from internal load memory with the card absent.
Firmware and CPU Compatibility Constraints
Card version compatibility is a hard constraint on the S7-1200. The Siemens support entry for transfer cards explicitly warns:
- Do not insert V3.0 program / transfer cards into later-model CPUs.
- Insert the transfer card into the CPU.
- Power-cycle the CPU to evaluate the memory card.
Source: Siemens Industry Online Support – SIMATIC S7 S7-1200 Programmable controller (entry 109759862).
CPU firmware revisions affect which card versions the CPU will accept. If a card written for an older firmware revision is inserted into a CPU with newer firmware (or vice versa), the CPU may not accept the card or may default to Program-card behavior. Cross-check the card's version label against the CPU's firmware release notes on the Siemens support portal before assuming a card failure.
When the CPU firmware is upgraded, older SMCs may need to be re-provisioned with the new firmware-aware card layout. The TIA Portal download dialog will warn the engineer when the project is being written to a card that the current CPU firmware does not support, and the engineer should treat that warning as a hard stop until the card is re-created through Method 1 or Method 2 with a compatible TIA Portal version.
Verification: Confirming Transfer Mode Operation
After a Transfer card is inserted and the CPU power-cycles, verify that the transfer was successful:
- Establish an online connection from TIA Portal to the CPU. The project loaded from the card should appear in the online view with matching name, version, and block checksums.
- Compare the online block checksums against the offline project. Identical checksums confirm the card image was loaded without modification.
- Remove the Transfer card with the CPU in STOP. If the project continues to run (RUN LED steady green, no SF / BF errors) after the next power-on, the transfer completed and the CPU is running from internal load memory. If the CPU goes to STOP when the card is removed, the card was still in Program mode and the project was running from the card itself.
- Check the CPU's diagnostic buffer for the entry "Transfer of project from card completed" (or the equivalent message in the CPU's firmware language). A failure to transfer leaves a diagnostic entry pointing to card read errors or invalid marker files.
- Use the TIA Portal online "Online & diagnostics" view to confirm the CPU's current project source. The view should report the project as resident in internal load memory, not on card.
Diagnostic Buffer and LED Behavior
The S7-1200 CPU records every card evaluation in its diagnostic buffer. The relevant entries are:
| Diagnostic Buffer Entry (English) | Meaning | Action |
|---|---|---|
| Card inserted, project transferred to internal load memory | Card was recognized as a Transfer card; transfer succeeded | None — proceed with verification |
| Card inserted, project running from card | Card was recognized as a Program card; CPU is running from card | Re-provision the card as a Transfer card via Method 1 or Method 2 |
| Card inserted, file system not supported | Card was formatted to exFAT or NTFS, or file system is corrupt | Re-format to FAT16/FAT32; re-provision via TIA Portal |
| Card inserted, project incompatible with CPU firmware | Card version / project version not supported by current CPU firmware | Verify card version against CPU firmware release notes; upgrade or downgrade as required |
| Card read error | Card or card slot hardware fault, or marker files corrupted | Re-provision via Method 2 (CPU writes the card); replace card if the fault persists |
LED patterns to observe during card evaluation: a brief MAINT blink during power-up is normal as the CPU reads the card. A solid ERROR (red) or a RUN/STOP blink pattern that does not settle to RUN indicates the card was rejected. Capture the diagnostic buffer immediately after a failed power-up to preserve the relevant event entries.
Field-Proven Best Practices
- Always use a Siemens-branded SMC. Third-party SD cards are not supported and frequently fail to be recognized consistently across CPU firmware revisions.
- Use a card reader with a dedicated MMC slot. Multi-slot MMC/SD/MS readers are the most common source of "card stuck in Program mode" complaints. The HAMA USB card reader with a separate MMC slot is a field-verified example that works reliably.
- Always eject the card through Windows' "Safely Remove Hardware" before removing it from the reader. Removing the card during a buffered write leaves the marker files in a partial state and forces re-provisioning.
- Always power-cycle the CPU to evaluate a new card. Hot-insertion is not supported for role changes. The CPU evaluates the card only at OFF/ON.
- Use Method 2 (CPU-driven provisioning) when the host card reader is suspect. The CPU writes the marker files directly, eliminating card-reader compatibility as a variable.
- Re-provision — do not reformat — when switching roles. Manual file deletion or Windows reformatting does not produce a valid Transfer card image. The TIA Portal / STEP 7 card-provisioning function must be used.
- Label the card with its role and version. Field service personnel frequently mis-deploy Program cards as Transfer cards (or vice versa) because the cards are physically identical. A label on the card reduces deployment errors.
- Keep a known-good Transfer card for emergency recovery. If the active project is corrupted, a verified Transfer card allows the engineer to restore the project on the next CPU power-up without needing a PC at the machine.
Troubleshooting Matrix
| Symptom | Likely Cause | Action |
|---|---|---|
| Card always recognized as Program card | Card reader cannot write the role marker files; TIA Portal wrote a Program image rather than a Transfer image | Switch to a card reader with a dedicated MMC slot (e.g. HAMA USB with separate MMC slot). Re-create the card with "Card Reader > Transfer". |
| CPU does not enter RUN with new card | Card version (V3.0) is older than the CPU firmware supports, or marker files are corrupted | Verify card version against the CPU's firmware release notes. Re-create the card using Method 2 (via the CPU) so the CPU itself writes the marker files. |
| Card appears blank in Windows but Program-card behavior continues | Hidden SIMATIC.S7S / FWUPDATE.S7S files were not removed; card was not actually re-provisioned |
Use TIA Portal's card provisioning function rather than manual file deletion. Re-run "Card Reader > Transfer" with a card reader that exposes the card correctly. |
| CPU stays in STOP after card insertion | File system is exFAT or NTFS, or the card was not ejected cleanly | Re-format the card to FAT16/FAT32 and re-provision through TIA Portal. |
| Project loads once, then CPU loses it on next power-cycle | Card is still in Program-card mode — the project only ran from the card and was never transferred to internal memory | Re-create the card as a Transfer card. Verify by removing the card after power-up and confirming the project continues to run. |
| CPU flashes MAINT and stays in STOP | Card slot contact issue or card write-protection engaged | Re-seat the card; clean the slot; verify the card's write-protect tab; try a different SMC. |
| Diagnostic buffer reports "project incompatible with CPU firmware" | Card was provisioned with a newer TIA Portal project than the CPU firmware supports | Re-provision the card with a project version that matches the CPU firmware. Upgrade CPU firmware if the project version is required. |
Frequently Asked Questions
Why does my S7-1200 memory card keep behaving as a Program card even after I delete the files?
Deleting the project files with Windows Explorer does not remove the S7-1200 role-marker files the CPU uses to detect the card's mode. The card must be re-provisioned through TIA Portal's "Card Reader > Transfer" function. Additionally, the card reader used to write the card must present the card with attributes the S7-1200 expects — a multi-slot MMC/SD/MS reader frequently fails to do this, while a dedicated MMC reader (such as the HAMA USB card reader with a separate MMC slot) works correctly.
Can a card that was used as a Program card later be used as a Transfer card?
Yes. The S7-1200 System Manual documents that the same SIMATIC memory card can be re-provisioned in any of the supported roles (Program, Transfer, firmware update) as long as the card is re-written through the documented procedure. The card itself is not locked to a mode — the CPU detects the mode from files written by TIA Portal (or by the CPU itself via Method 2). Manual file deletion is not a substitute for re-provisioning.
Do I need to power-cycle the CPU to evaluate a new card?
Yes. The S7-1200 CPU evaluates the SIMATIC memory card at power-on only. Inserting a new card into a running CPU does not change the card's role; the CPU must be transitioned through OFF/ON for the new role to take effect. This is documented in the S7-1200 System Manual and in the Siemens Industry Online Support entry for transfer cards.
Why does my S7-1200 CPU reject a V3.0 program/transfer card?
Siemens explicitly states that V3.0 program/transfer cards must not be inserted into later-model S7-1200 CPUs. Card version compatibility is tied to CPU firmware revisions; if the CPU firmware is newer than the card's release, the card will not be accepted. Verify your CPU's catalog number and firmware version against the Siemens support portal entry for the specific card revision before deploying.
What file system must the SIMATIC memory card use?
The S7-1200 SMC is shipped pre-formatted to FAT16/FAT32 and must remain on one of those file systems. Reformatting to exFAT or NTFS on a PC will cause the CPU to be unable to read the card. Use TIA Portal's card-provisioning function rather than ad-hoc formatting, and eject the card through Windows' "Safely Remove Hardware" before removing it from the reader.
What is the fastest way to recover a card that is stuck in Program mode?
Use Method 2 — write the card from the CPU itself. Download the desired project to internal load memory, then use the CPU's online card operations to copy that project to the card as a Transfer card. Because the CPU writes the role-marker files directly, the card-reader compatibility issue is bypassed entirely. After the CPU power-cycles and transfers the project, the card is verified as a Transfer card.