Resolving F-Shared DB Missing Error on CPU 412-3H S7 F Systems

David Krause10 min read
Safety SystemsSiemensTroubleshooting
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 Overview

A redundant SIMATIC S7-400H station built around two CPU 412-3H modules (6ES7412-3HJ14-0AB0 or later) loses its safety program after a power recycle, and the subsequent download via SIMATIC Manager (STEP 7 V5.5 / V5.6) fails with the diagnostic message:

"Fail-safe blocks cannot be downloaded to the F-CPU because the F-shared DB does not exist in the safety program. Do you want to download the selected standard blocks to the F-CPU?"

Observed side effects once the message is acknowledged with Yes:

  • F-DI modules report hardware OK (green SF/ON LEDs, no group fault) but every input bit reads 0 in the VAT.
  • The HMI shows #### with unknown status on every safety tag.
  • In HW Config, CPU Properties → Protection → "CPU contains safety program" is already checked.
  • A re-compile of the S7 program does not regenerate the F-shared DB.
  • Choosing Edit Safety Program in SIMATIC Manager returns:
    "'S7 F Systems' was not found. 'S7 F Systems' is required for editing the safety program. Please install it on your PC/PG."

Only the standard user program reaches the F-CPU; the safety portion of the program never lands. The classic workaround of copying the offline S7_PRG container to the Flash Memory Card (MC) on a Siemens Field PG (PG 740/760, Field PG M4) and inserting it into the CPU boots cleanly, but the online download path remains broken and the next power-cycle will again drop the safety portion.

Root Cause Analysis

Two independent defects combine to produce the symptom tree. Both must be fixed before the download can be made reproducible.

Defect 1 — Wrong F-toolset installed on the programming device

The engineering station carries S7 Distributed Safety (package F-FB / F-FC library for S7-300F / S7-400F in factory automation) but not S7 F Systems (package for S7-400F / S7-400FH in process automation). The CPU 412-3H is an F-CPU classified for process automation, so SIMATIC Manager routes every safety edit/download through the S7F_SYS library exposed only by S7 F Systems. With the library absent, Edit Safety Program and Generate Safety Program are unavailable, and STEP 7 falls back to the standard download path that has no authority to write the F-shared DB.

Defect 2 — F-shared DB was never (re)generated after the last change

After any modification inside the safety program — including the seemingly harmless act of saving, re-importing, or version-stamping the offline project — the F-shared DB must be regenerated with Options → Edit Safety Program → Generate Safety Program. If the safety program is compiled or downloaded without this step, the F-CPU accepts the standard portion but the F-DB in the online container is empty. On the next restart the F-runtime detects a missing/empty F-shared DB and forces the safety portion to STOP. The hardware-OK LED state on the F-DI module reflects the backplane handshake, not the application-level passivation state, which is why inputs read 0 while the module reports no fault.

Field observation: A CPU that appears to run with stale safety blocks will silently fail the next restart, MRES, or firmware update. Always treat the F-shared DB as a mandatory build artifact — never optional.

S7 Distributed Safety vs S7 F Systems — When to Use Which

Criterion S7 Distributed Safety S7 F Systems
Target CPUs S7-300F, S7-400F (single) S7-400F, S7-400FH (incl. CPU 412-3H / 414-3H / 416-3H / 417-4H)
Typical domain Factory automation (machinery, presses, robots) Process automation (burner management, ESD, HIPPS, turbomachinery)
F-block family F-FB / F-FC from F_LIB F-FB / F-FC from F_LIB + CFC-based F-charts
Program editor LAD/FBD/ST in STEP 7 CFC (Continuous Function Chart) plus F-chart library
Required add-on S7 Distributed Safety option S7 F Systems option + matching F Configuration Pack
Signature / collective signature Yes Yes (plus per-chart signature)
Failure mode on S7-400H redundant pair Not supported Supported, hot-swappable

For the CPU 412-3H the engineering station must have S7 F Systems installed; S7 Distributed Safety alone is insufficient and is the principal cause of the "S7 F Systems was not found" popup.

Version Compatibility Matrix

Mismatched versions of the F-toolset and the F Configuration Pack are the second most common cause of "compiles cleanly, cannot download" faults. Use the matrix below to select a known-good set before touching the project. The versions are official Siemens release data; verify against the most recent Siemens Industry Online Support entry for your CPU's firmware.

STEP 7 Version S7 F Systems F Configuration Pack F-Library CPU 412-3H FW
V5.5 + SP4 V6.2 V5.5 SP8 V1.3 V6.0.7
V5.5 + SP4 HF1 V6.3 V5.5 SP10 V1.3 SP1 V6.0.7
V5.6 + HF7 V6.4 V6.1 V1.3 SP2 V6.0.8 / V7.0.x
Always consult the original PLC programmer or the project's safety acceptance report for the exact versions originally commissioned. Mixed versions (e.g. F Configuration Pack newer than STEP 7) raise signature-check faults that present as the same symptom.

Required Software Stack on the Programming Device

  1. STEP 7 V5.5 / V5.6 (SIMATIC Manager) at the same service pack level originally used for the project's first commissioning.
  2. S7 F Systems (option package, sold under MLFB 6ES7833-1CC02-0YX0 or its successor) at the version matching STEP 7.
  3. F Configuration Pack for the CPU 412-3H firmware actually on the rack.
  4. F-Library (F_LIB_Vxx) referenced by the F-blocks in the offline project.
  5. CFC (Continuous Function Chart) editor at the version bundled with S7 F Systems; do not mix with a stand-alone PCS 7 CFC newer than the F-toolset.
  6. Optional: S7-PLCSIM with the F-option for offline dry-runs.

Reference: see the Siemens Safety Programming Guideline for SIMATIC S7-1200/1500 (PDF) for the general safety architecture and F-shared DB purpose, which carries over to S7-400F; and the SIMATIC Safety — Fail-Safe Blocks reference for the F-FB / F-FC calling convention. Although the live target here is S7-400H, the block model described in both documents applies unchanged.

Step-by-Step Recovery Procedure

The procedure below restores a deterministic download path on a redundant CPU 412-3H pair while the plant is shut down. Adjust the lockout / tag-out steps to your site EHS rules.

  1. Capture the current state. From SIMATIC Manager: PLC → Save to Memory Card on both CPUs. This writes the present (possibly incomplete) program to the Flash MCs and lets you boot the system with the temporary fix while you correct the engineering station.
  2. Install the missing F-toolset.
    • Uninstall S7 Distributed Safety if the CPU 412-3H was originally configured with S7 F Systems. Mixed toolchains on the same PG produce nondeterministic signature faults.
    • Insert the S7 F Systems installation medium and run Setup.exe. The installer adds the F-chart editor and registers the S7F_SYS library in SIMATIC Manager.
    • Apply the matching F Configuration Pack and overwrite the F-Library to the version referenced in the offline project.
  3. Open the offline project in SIMATIC Manager and confirm that the safety program is editable. Options → Edit Safety Program must no longer raise the "S7 F Systems was not found" popup.
  4. Recompile the standard program first. Program → Compile All (or Ctrl+F9). Resolve every warning before touching the safety program — unresolved standard errors suppress F-block generation.
  5. Generate the safety program. Options → Edit Safety Program → Generate Safety Program. The compiler writes the F-shared DB, the F-Instance DBs, and the updated F-run-time DBs. Confirm the log reports "Generation completed without errors"; copy the log to the project documentation.
  6. Run an offline consistency check. Options → Check Safety Program Consistency. The expected output is "No inconsistencies found". If the check reports a signature mismatch with the F-Library, re-select the F-Library version in Options → F-Library and re-generate.
  7. Download in the correct order.
    1. Connect online to the reserve CPU (CPU1 in slot 3, slot 4 with the sync module).
    2. PLC → Download. The dialog now asks: "Do you want to include standard blocks in this download?". Answer No for the first pass — this writes only the safety blocks and avoids overwriting a confirmed-good standard program.
    3. Wait for the F-CPU to perform the safety restart, then PLC → Download a second time and answer Yes to include standard blocks. The CPU will restart again.
  8. Fail over and repeat on the standby CPU. Switch the master via PLC → Operating Mode → Switch Master (S7-400H redundancy control), then repeat steps 7a–7c on what is now the reserve.

Inline Topology of the F-Shared DB and Runtime Path

OB 35 (cyclic)Standard user program F-FC / F-FB + F-Instance DBSafety logic F-Shared DB (F-DB)Signatures, params F-CPU runtimeF-shutdown + passivation F-DI / F-DO modulesChannel-level passivation call read/write execute I/O If F-DB is missing or empty, the F-runtime cannot validate signatures at startup and forces the F-portion to STOP. Hardware-OK LEDs stay green.

Verification and Commissioning Checks

After the second restart, run the following verification matrix before handing the line back to operations. A red row means the download is not yet safe.

# Check Method Expected
1 F-CPU operating mode PLC → Operating Mode in SIMATIC Manager RUN, no SF LED
2 F-shared DB online Online → Display → open the F-DB Signature = offline value, no CRC fault
3 Safety input reflection Force a real signal on each F-DI channel, monitor in VAT Bit follows the field, no permanent 0
4 HMI tag quality WinCC tag diagnostics Values numeric, no ####
5 Redundant failover Pull the master CPU, observe H-status Standby takes over within 100 ms, no F-stop
6 Power-cycle resilience Hard power-cycle both CPUs CPU returns to RUN, F-portion active, no re-occurrence of F-DB missing
7 Signature report Options → Safety Program → Print Signatures Collective and individual signatures identical to acceptance report

Common Pitfalls and Field Notes

  • Skipping the safety generation step. Compiling the standard program only does not touch the F-shared DB. The download proceeds, the CPU restarts, and the safety portion is silently absent.
  • Mixing toolset versions across PGs. If one PG signs the project with F-Library V1.3 SP2 and a second PG with V1.3, the second download raises a signature mismatch that looks like a network fault.
  • Editing safety blocks in the standard editor. SIMATIC Manager allows you to open F-blocks in the standard LAD/FBD editor when the F-option is not installed. Any change made there is overwritten the next time the safety program is generated.
  • Online delta download on the master only. On an H-station, you must download to both rack slots or use Download to Both; otherwise the redundant pair can drift into different F-signature states and refuse a subsequent LINK-UP.
  • Card swap on a running system. Removing a Flash MC from a CPU that is in RUN on the other master can drop the safety portion. Always perform a controlled switchover before card work.
  • Password drift. S7 F Systems uses a separate safety password distinct from the CPU password. Forgetting it blocks every subsequent Edit Safety Program even when the toolset is correctly installed.
Safety notice: The temporary workaround of copying the offline project to the Flash MC keeps the plant running but does not constitute a valid safety download. Schedule a controlled download with the correct toolset and a fresh signature report at the next opportunity, and file the deviation with the plant's functional-safety record per IEC 61511 / IEC 62061.

Frequently Asked Questions

Why does SIMATIC Manager report "F-shared DB does not exist" even though the project opens without errors?

STEP 7 does not generate the F-shared DB during a normal compile. It is produced only by Options → Edit Safety Program → Generate Safety Program. Running a standard download leaves the F-container empty, and the F-CPU detects the missing F-DB at the next safety restart and forces the safety portion to STOP.

What is the practical difference between S7 Distributed Safety and S7 F Systems for a CPU 412-3H?

S7 Distributed Safety targets S7-300F and single-station S7-400F in factory automation. S7 F Systems targets S7-400F and the redundant S7-400FH family (CPU 412-3H, 414-3H, 416-3H, 417-4H) in process automation. A CPU 412-3H will only accept safety edits/downloads from a PG that has S7 F Systems installed; S7 Distributed Safety is unsupported on this CPU.

Why do my F-DI modules show hardware OK but every input reads 0?

Channel-level passivation is driven by the F-runtime, not by the module's hardware diagnostic. When the F-shared DB is missing or its signature is invalid, the F-runtime passivates all F-DI channels. The module's backplane handshake and SF/ON LEDs remain green because the hardware is healthy; the application is not.

Can I skip the safety generation step and still get a clean restart?

Sometimes the F-CPU will appear to start, but the safety portion is inoperative. The next power-cycle, MRES, or firmware update will trigger an F-stop. Treat the Generate Safety Program step as mandatory before every download that touches the safety program.

How do I recover if the safety password for S7 F Systems is lost?

The safety password is stored only on the F-CPU and in the project archive. If both copies are lost, Siemens support cannot recover the password; the safety program must be re-engineered and re-commissioned with a new password. Always archive the safety password with the same rigor as the safety program source.

Back to blog