STEP 7 V5.4 SP3: Fix Access Protection Error Opening S7-300 Project
Symptom. SIMATIC Manager (STEP 7 V5.4 SP3) refuses to open a previously valid S7-300 or S7-400 project or library with the dialog: “The project or library was changed using tools of the Windows Explorer. The data for access protection has been modified to such an extent that it is no longer possible to open the project or library.” This reference covers the underlying integrity check, the file-level root cause, and the full hierarchy of recovery paths: the Reorganize command, opening as a library, upload from the PLC, manual file repair, and Siemens Support escalation.
1. Problem Overview
STEP 7 V5.4 SP3 (SIMATIC Manager) runs a self-consistency check on the project container every time a *.s7p (S7-300/S7-400 project) or *.s7l (library) is opened. The check covers the binary database files stored inside the project container, the integrity of the Windows shell shortcut (*.lnk) files created on first open, and the access-protection metadata (an HMAC-style hash of the container plus its permission record). When a process other than SIMATIC Manager modifies any of these objects, the integrity check fails and the project refuses to open.
The English-language dialog text in STEP 7 V5.4 SP3 is:
“The project or library was changed using tools of the Windows Explorer. The data for access protection has been modified to such an extent that it is no longer possible to open the project or library.”
The German original (Help text in step7hlp.chm) reads:
“Das Projekt oder die Bibliothek wurde mit Werkzeugen des Windows Explorers geändert. Die Daten für den Zugriffsschutz sind so verändert worden, dass das Projekt oder die Bibliothek nicht mehr geöffnet werden kann.”
The error is fatal from SIMATIC Manager's perspective; the dialog provides only OK. There is no bypass or “ignore and continue” option. Recovery requires either repairing the integrity hash, restoring the missing or corrupted files from a known-good backup, or rebuilding the project by uploading from the connected PLC.
2. Affected Software and Hardware
| Item | Value |
|---|---|
| STEP 7 version | V5.4 SP3 (release 2008, build K5.4.3.0), V5.4 SP4, V5.5, V5.5 SP1, V5.5 SP2, V5.5 SP3, V5.5 SP4 (final V5.x release) |
| Engineering tool | SIMATIC Manager (the MDI shell that hosts the project browser) |
| PLC families | SIMATIC S7-300 (CPU 312, 312C, 313, 313C, 314, 314C, 315, 315-2 DP, 315-2 PN/DP, 317-2 DP, 317-2 PN/DP, 319-3 PN/DP), SIMATIC S7-400 (CPU 412-1, 412-2, 414-2, 414-3, 416-2, 416-3, 417-4) |
| Project container |
*.s7p (S7-300/S7-400 project), *.s7l (S7 library) |
| OS support | Windows XP SP3, Windows 7 (32/64 bit), Windows Server 2003 / Server 2008 (32/64 bit). V5.5 SP4 adds limited Windows 10 support |
| License key | STEP 7 V5.4 floating or local license on parallel-port, USB, or network dongle |
STEP 7 V5.4 SP3 reaches end of standard Siemens product lifecycle. Sites still running V5.4 are advised to plan a move to V5.5 SP4 (the last V5.x release) or to TIA Portal V17 / V18 / V19, which can import *.s7p via Project → Migrate project → STEP 7 V5.x. The current delivery list and service packs are published at the Siemens Industry Online Support portal.
3. Root Cause Analysis
SIMATIC Manager opens a project by validating a chain of internal database files. Each file carries an internal CRC and a timestamp that the parent container persists in the project Global folder. The integrity check fails when one or more of the following conditions are detected:
- A file inside the project container is modified by a process other than SIMATIC Manager. Common culprits: Windows file copy (Robocopy, Xcopy), archiver tools (7-Zip, WinRAR) that touch
LastWriteTime, and disk-cleanup utilities. - An antivirus or endpoint protection product quarantines one or more of the binary database files. Trend Micro, Symantec, McAfee, and Windows Defender all flag unsigned STEP 7 binaries and strip or rename them.
- A “registry cleaner” or “disk defragmenter” touches
%LOCALAPPDATA%\..\Siemens\Automation\and the project workspace, deleting the*.lnkshortcuts SIMATIC Manager uses for last-opened tracking. - NTFS compression, EFS encryption, or OneDrive/SharePoint file-on-demand is applied to the project container. SIMATIC Manager cannot write its modification markers when the file is locked.
- The user deletes the
*.lnkshortcut files at the project root. - A backup tool performs a differential copy and writes only changed files, leaving the container in a half-updated state with a mismatched hash.
- STEP 7 V5.4 and V5.5 are installed side-by-side on the same workstation. The newer build writes a hash the older build cannot validate on next open.
The phrase “data for access protection has been modified” refers specifically to the integrity hash stored in \s7proj\. If the hash file is missing or its content does not match the recomputed value, SIMATIC Manager assumes an unauthorized modification has occurred and refuses to open.
S7WORK and the PG/PC interface mapping, hiding the existing project tree until remapped via Options → Set PG/PC Interface.4. STEP 7 V5.x Project File Structure
A STEP 7 V5.4 project is a directory tree containing binary database files. The master container (MyProject.s7p or MyLib.s7l) is itself a subdirectory; SIMATIC Manager exposes it as a single file via Windows shell extension.
| Path | Purpose |
|---|---|
\Global\ |
Cross-station symbols, sources, libraries |
\s7asrvcx\ |
Archive services database |
\s7cfg\ |
Configuration (PC station, OPC, S7 connections) |
\s7hdatap\ |
Hardware catalog database |
\s7hnas\ |
Network attachment storage data |
\s7hsinfo\ |
Hardware system info |
\s7l\ |
Library database (only in *.s7l) |
\s7link\ |
Link database (cross-references between blocks) |
\s7p\ |
Program database (blocks, sources) |
\s7proj\ |
Project structure (stations, modules, comments) — also stores the access-protection hash |
\s7wbm\ |
Workstation manager database (per-user settings) |
At the project root, SIMATIC Manager creates the following Windows shell artifacts on first open:
-
*.lnk— shortcut links to the underlying files -
~RFtmp.tmp,~RFtmp0.tmp…~RFtmpN.tmp— temp files used by the Reorganize atomic rename
5. Pre-Recovery Checks
Run the following checks before attempting any recovery procedure:
-
File permissions. Right-click the project folder → Properties → Security. The user opening the project needs
Full Controlon the folder and all child objects. A backup service running as SYSTEM can leave ACLs that block the interactive user. -
Read-only attribute. Clear the read-only attribute on
*.s7p/*.s7land all subfolders (attrib -R /S /D <project>). - Disk space. At least 500 MB free on the drive holding the project. SIMATIC Manager writes temp files during open and fails silently if the disk is full.
- Network share latency. If the project lives on a UNC path, copy it to a local SSD before opening. SMB latency above ~50 ms causes the internal timeout to fire and the integrity hash check to be skipped — producing a different error but a similar inability to open.
-
Antivirus exclusion. Add the project directory and
%ProgramFiles(x86)%\Siemens\Automation\to the AV exclusion list. Re-scan only on write, not on read. -
STEP 7 build verification. Open Help → About and confirm the exact build. STEP 7 V5.4 SP3 is build number
K5.4.3.0. Mixing V5.4 SP3 with V5.5 on the same project is not officially supported and produces the same hash-mismatch error on the next open.
6. Recovery Procedure 1 — Reorganize the Project
The Reorganize function rebuilds the project container's database files in place. It is the only non-destructive operation that can rescue a project whose access-protection hash is internally consistent but whose physical file layout has drifted.
- Make a full copy of the project folder (e.g.,
MyProject_backup.s7p). - Open SIMATIC Manager via the
step7.exeshortcut (not from the Windows shell preview). -
File → Open → User Projects — select the original
*.s7por*.s7l. When the access-protection dialog appears, click Cancel. - From the menu: File → Reorganize. A dialog confirms the target project; click OK.
- SIMATIC Manager writes the reorganized container to a temp file (
~RFtmp.tmp) then atomically renames it back over the original. - Reopen the project. If the integrity check now passes, commit a new baseline with File → Save As.
When Reorganize fails. The container is structurally damaged; the integrity hash covers corrupted files. Proceed to Procedure 2.
7. Recovery Procedure 2 — Open As Library
SIMATIC Manager's “Open as library” path skips the access-protection check on the program container and only validates the library sub-container. This is sufficient when the project's \s7proj\ is damaged but the library blocks remain intact.
- Right-click the
*.s7pin Windows Explorer → Open with → SIMATIC Manager (do not double-click). - If the access-protection dialog appears, click Cancel.
- File → Open → Library → navigate to the project and select it. SIMATIC Manager opens the contents as a library and lets you extract blocks.
- Drag the recovered blocks into a new, empty S7-300 project (File → New → S7-300 Project).
Limitation. Symbols, comments, and HW Config (hardware configuration) are not preserved through “Open as library”. The PLC program logic is recovered but documentation is lost.
8. Recovery Procedure 3 — Upload From the PLC
When the offline project cannot be recovered, the online PLC remains the canonical source of the running program. STEP 7 V5.4 SP3 provides PLC → Upload Station to PG, which reads all blocks, the system data (SDB), and the hardware configuration from the CPU.
- Verify the CPU is reachable: PLC → Accessible Nodes should list the CPU with its MPI / PROFIBUS / TCP-IP address.
- Create a fresh empty S7-300 or S7-400 project matching the target CPU.
- In the new project, double-click the placeholder station → Hardware → close HW Config.
- Select the station node in the project tree.
- PLC → Upload Station to PG. SIMATIC Manager pulls all blocks and SDBs from the CPU and writes them into the empty project.
What survives the upload: OB, FB, FC, DB, SFB, SFC, SDB (system data blocks including HW Config), and the CPU diagnostic buffer.
What is lost:
- Symbol table (only present offline)
- Block comments and network titles
- Source files (STL/SCL sources)
- The version history of the blocks (STEP 7 V5.4 only tracks the current version online)
Restoring symbols. If a symbol file was previously archived as CSV or SEQ, import it via Options → Symbol Table → Import. The mapping (symbol, address) pairs must match exactly; mismatched addresses will be flagged in the consistency check.
9. Recovery Procedure 4 — Escalation to Siemens Support
When Reorganize, Open-as-library, and Upload all fail or are not viable (e.g., the PLC is no longer available), escalate to Siemens Industry Online Support.
Information to provide in the support request:
- STEP 7 build (Help → About → “Version: K5.4.3.0”)
- CPU order number (MLFB), firmware version, and serial number
- The exact error text in English and the original German text from
step7hlp.chm - Last known-good backup date
- Whether the project was ever opened in a different STEP 7 version (V5.3, V5.5, TIA Portal)
- Output of Start → Programs → Siemens Automation → SIMATIC → S7PCT (S7 Project Consistency Tool), if available
Siemens Support has internal tools (the S7 Project Doctor) that can rebuild \s7proj\ from the underlying \s7p\ block databases. Typical turnaround is 3–10 business days and the project must be supplied as a single ZIP file under 2 GB.
10. Recovery Procedure 5 — Manual File Repair
When a known-good backup of the project exists but the current container is partially damaged, manual file replacement is possible.
- Compare the directory tree of the damaged project against the backup using a diff tool that handles binary files (e.g., WinMerge with the “Compare binary contents” plugin).
- Identify the differing files.
\s7proj\and\s7wbm\are workstation-specific and can usually be replaced from the backup. - Make a copy of the damaged project. Replace
\s7proj\from the backup. Reopen in SIMATIC Manager. - If the project opens, immediately run File → Reorganize to recompute the integrity hash.
Risks.
- Block versions in the backup may differ from the running PLC. Verify with PLC → Compare Online/Offline.
- Symbol tables and comments are merged on replace; pre-existing entries in the damaged project are lost.
- The integrity hash must be recomputed by Reorganize; manual edits to
\s7proj\will leave the project unopenable until Reorganize is run.
11. Prevention Best Practices
-
Project location. Store projects on a local SSD path such as
D:\Siemens\Projects\. Never place a project on a network share, OneDrive, DropBox, or any sync folder. -
Backup cadence. Use SIMATIC Manager's File → Archive (creates a single
*.zipor*.arjarchive) at the end of each engineering session. Archives are immune to the access-protection error because the integrity hash is recomputed on archive open. -
Antivirus exclusions. Add
%ProgramFiles(x86)%\Siemens\Automation\,%LOCALAPPDATA%\Siemens\, and the project working directory to the AV exclusion list. Real-time scanning of*.s7pfiles is the single most common cause of the error in production environments. - User training. Train engineers to never copy, rename, or move project files via Windows Explorer. Use File → Save As inside SIMATIC Manager for all renames.
-
Disable Windows Search indexing on the project directory. The indexer rewrites
LastWriteTimeon project files when scanning, which triggers the integrity check failure. -
Disk cleanup. Never run third-party “registry cleaners” or “disk optimisers” on a workstation that hosts STEP 7. These utilities routinely delete the
*.lnkshortcut files SIMATIC Manager uses. - Single STEP 7 version per workstation. Install only one STEP 7 version per engineering workstation. Side-by-side installations of V5.4 and V5.5 cause the integrity hash to mismatch on the next open.
12. Migration Options
STEP 7 V5.4 SP3 projects can be migrated to current platforms as follows:
| Target | Migration path | Comments |
|---|---|---|
| STEP 7 V5.5 SP4 | Open the *.s7p in V5.5 SP4 directly; File → Save As; rebuild the access-protection hash |
Same *.s7p format, no conversion needed |
| TIA Portal V16 / V17 / V18 / V19 | Project → Migrate project → STEP 7 V5.x from TIA Portal | Loss of source files, comments, and password protection unless re-applied manually |
| S7-300 → S7-1500 | TIA Portal migration + manual block rewrite for unsupported instructions | Some S7-300-specific SFCs do not have 1:1 equivalents; consult the S7-1500 migration guide |
13. Verification Checklist
After any successful recovery, perform the following verification before returning the project to production:
- Open the project in SIMATIC Manager without errors.
- Run PLC → Compare Online/Offline against the live CPU — all blocks should report “Identical”.
- Run Options → Block Consistency Check — all blocks should report “OK”.
- Open HW Config and verify the rack matches the physical configuration.
- Open the symbol table and confirm all imported symbols resolve.
- Run a CPU diagnostic buffer clear and verify the CPU goes to RUN.
- Archive the recovered project immediately with File → Archive.
14. Troubleshooting Matrix
| Symptom | Likely cause | First action |
|---|---|---|
| Access-protection dialog on every open | Hash mismatch from Windows / antivirus / disk tool | Procedure 1 (Reorganize) |
| Dialog persists after Reorganize | Structural damage to \s7proj\
|
Procedure 2 (Open as library) or Procedure 5 (manual replace) |
| Project opens but blocks are empty | Blocks intact, comments / symbols missing | Procedure 3 (upload from PLC) + re-import symbol CSV |
| PLC unreachable, project unopenable | Both offline and online paths lost | Procedure 4 (Siemens Support) with full archive |
| Reorganize loops or hangs | Disk full or network share latency | Procedure 5 pre-checks; copy locally first |
| Error after migrating between V5.4 and V5.5 | Build mismatch on hash | Always open & save in the newer build first |
15. Frequently Asked Questions
What does the error “The data for access protection has been modified” mean exactly?
SIMATIC Manager maintains an integrity hash of the project container in the file \s7proj\. The hash is recomputed at every open. When the recomputed hash does not match the stored value, SIMATIC Manager assumes an unauthorized modification (Windows tool, antivirus, disk utility) and refuses to open the project.
Can I still upload the program from the connected PLC?
Yes. Use PLC → Upload Station to PG in SIMATIC Manager to read all OBs, FBs, FCs, DBs, and SDBs from the live CPU. Symbol tables, comments, and source files are not stored on the CPU and must be restored from a separate archive or re-entered manually.
Will TIA Portal open a STEP 7 V5.4 SP3 project directly?
No. TIA Portal V16 / V17 / V18 / V19 uses the Migrate project function under Project → Migrate project → STEP 7 V5.x. The *.s7p file must first be opened (and saved) in STEP 7 V5.5 SP4 to be eligible for TIA Portal migration.
How do I prevent this error on a production engineering workstation?
Add the project folder and %ProgramFiles(x86)%\Siemens\Automation\ to the antivirus exclusion list, disable Windows Search indexing on the project directory, and enforce a policy that all renames and copies happen through SIMATIC Manager's Save As function rather than Windows Explorer.
Is the project permanently lost if Reorganize, Open-as-library, and Upload all fail?
Not necessarily. Escalate to Siemens Industry Online Support with the project archive, the CPU order number, and the STEP 7 build. Siemens Support's S7 Project Doctor can rebuild \s7proj\ from the underlying block databases. Password-protected blocks cannot be recovered without the password.