Problem Description
Orphaned DP master systems in SIMATIC Manager (STEP 7 Classic) hardware configuration present a stubborn configuration-management problem that is reported across STEP 7 V5.4, V5.5, V5.6, and PCS7 V8.x/V9.x projects. The orphan manifests as a top-level PROFIBUS-DP > DP Master System entry in the project tree that has no parent SIMATIC station and no associated CPU. Engineers encounter the same three symptoms regardless of STEP 7 service pack:
- Right-click on the orphaned DP master shows the Delete option disabled or grayed out. Sometimes a context menu appears but selecting Delete produces no event in the application log and no change in the project tree.
- Selecting an individual slave on the orphan (a DP/PA coupler, a DP/PA link, an ET200PA station, or a single PA transmitter such as a pressure or level device) and right-clicking yields a fully disabled context menu. The Delete option is not only grayed out — it is absent.
- Attempting to Export the hardware configuration aborts with the message:
"Your Configuration contains orphaned DP master and/or Profinet IO systems that cannot be exported."The project may use only PROFIBUS, no PROFINET IO, and still fail because the export check is conservative about both bus families. - Running File > Save As > With Reorganization (slow) can drive the SIMATIC Manager process (
S7Proj.exe) into a Not Responding state for an extended period, particularly on PCS7 multi-projects with multiple AS (Automation Station) members.
The typical underlying network in these reports is a Profibus PA segment tied to a DP master that no longer references any station. Pressure and level transmitters (PA profile 3.0, 3.01, 3.02 devices from vendors such as Endress+Hauser, Siemens, Yokogawa, ABB, Rosemount, and Honeywell) are frequent inhabitants of the orphan because they are often configured downstream of a DP/PA coupler or DP/PA link that has been removed during a plant reconfiguration. The PA slaves remain in the project database while the upstream master loses its parent station, leaving the master and all its downstream PA devices stranded.
Root Cause Analysis
Orphaned DP master systems are almost always caused by an incomplete transaction against the S7 project database. STEP 7 Classic persists the hardware configuration in System Data Blocks (SDBs) inside each station's S7HWCONF folder and tracks DP master relationships through a separate project-tree node. If the station deletion, paste, or project merge is interrupted — by a power loss, a forced process termination, a STEP 7 crash, or an operator clicking through a confirm dialog too quickly — the tree pointer is severed but the SDB references linger.
| Trigger | Mechanism | Likely Project Type |
|---|---|---|
| Station deleted after SDB write | Tree node removed, SDB remains under orphaned DP master | Single STEP 7 project |
| DP/PA link or DP/PA coupler deleted | Master system remains, downstream PA devices become orphans | STEP 7 and PCS7 |
| Project merge or import from another PG | Conflicting DP master IDs leave unmapped masters | PCS7 multi-project |
| Version downgrade (e.g., V5.5 to V5.4) | Database schema mismatch produces ghost systems | Any |
| Backup restore to a different PG with different drive letters | PG-specific absolute paths in global.ini not rewritten |
Any |
| Incomplete Save As with Reorganization | SDBs partially copied, references dangling | Large or multi-project |
| Library import containing master systems | Master imported without parent station context | PCS7 with APL or Siemens library |
| Partial TIA Portal migration | Original STEP 7 master retained, new TIA controller not back-synced | Mixed STEP 7 / TIA Portal |
The SDB structure for a PROFIBUS DP master is a self-contained block. SDB 1000 through SDB 1099 typically hold the DP master system definitions, while SDB 2000 through SDB 2099 are reserved for PROFIBUS PA data. When a station is deleted, STEP 7 is supposed to remove the corresponding SDBs; the orphan is the failure mode where the SDBs are retained but the parent station pointer in the project tree is gone. The export utility performs a tree consistency check before writing the .cfg file; an unreferenced master system fails the check and aborts the export with the message above.
Pre-Cleanup Verification
Before attempting any cleanup, capture the current state so that a recovery path exists if the database becomes further corrupted. The cleanup procedures below are reversible only up to the point of the first reorganization pass; after that, the original on-disk state is overwritten.
- Close SIMATIC Manager completely. Confirm the process is gone via Task Manager. The process names vary by version:
CCWin.exefor older managers,S7Proj.exefor STEP 7 V5.5 and later,PCS7.exefor PCS7 engineering. - Make a full file-system copy of the project directory. For multi-projects, copy the entire
.S7Fcontainer including all.S7Pmembers. Place the copy on a separate physical drive if possible. - Record the STEP 7 version: Help > About. The fix path varies between V5.4, V5.5, V5.6, and V5.7. PCS7 V8.x and V9.x projects add the multi-project layer and require the multi-project reorganization path in addition to the single-project one.
- Note the orphaned master's PROFIBUS address and the slave count. Open HW Config > right-click on the orphan > Object Properties to read the master's FDL address, the configured bus parameters (baud rate, Tslot, min TSDR, max TSDR, TTRT, TQUI, TSET, GAP factor), and the list of configured PA slaves.
- Check Options > PG/PC Interface and confirm the assigned access point. Disconnect any online interface to prevent accidental online SDB overwrites. Setting the access point to None blocks all online traffic.
- For PCS7: confirm the multi-project is opened from the
.S7Ffile, not from an individual.S7P. Multi-project-level operations are only available from the container.
Solution Path 1: Project Reorganization (Slow)
The canonical SIMATIC Manager recovery function rebuilds the entire project database, normalizing all internal references. This is the first procedure to try on a copy of the project. It is invoked from the File menu and is distinct from the regular Save operation, which only persists incremental changes.
- Open the working copy in SIMATIC Manager.
- From the menu, select File > Save As….
- Enter a new project name and target directory. The default save location should be a local SSD with at least 2 GB free. Avoid network drives; reorganization is single-threaded and any network latency will be amplified across the project.
- Check the With reorganization (slow) checkbox. This triggers the underlying routine (implemented in
s7wbaprx.dlland the database engine inS7DBE.DLL) to walk every database record, validate foreign keys, and rewrite the SDB references. - Click OK. The dialog disappears and the SIMATIC Manager window may show a blank state for an extended period — this is normal. Do not click anywhere on the SIMATIC Manager UI; the routine must run to completion without contention.
S7Proj.exe in Task Manager — disk I/O on the target directory and steady CPU usage on a single core are the activity indicators. A truly hung process shows 0% disk and 0% CPU for more than 10 minutes.If the process is genuinely hung, terminate the process, restore the working copy from the archive, and apply the targeted fixes below before attempting another reorganization. Killing the process mid-reorganization leaves the project database in a partially rewritten state that is more difficult to recover from than the original orphan.
After the reorganization completes, open the resulting project, then open HW Config and perform Station > Save and Compile on every station to regenerate the SDBs. Verify the orphan is gone by performing the verification checks at the end of this article.
Solution Path 2: Targeted SDB and Database Cleaning
When reorganization is impractical — because the project is too large, the routine is genuinely hanging, or a specific cleanup is required for a regulated change-control process — surgical removal of the orphan is possible by working with the S7 project database directly. This is the approach that has been field-proven on a PCS7 multi-project with two AS stations where the orphan was attached to the secondary AS.
2.1 Project Structure Reference
Navigate to the project root on disk. A STEP 7 V5.x project has the following layout:
ProjectName.S7P
├── Global
│ ├── 3S_Lang\_Langs.dat
│ ├── Language\_Langs.dat
│ ├── Symbols
│ │ └── S7SymTab.sdf
│ ├── S7gtopx
│ │ ├── S7GTopx.sav
│ │ └── S7GTopx.bak
│ └── S7HCom\_hcom.sav
├── SIMATIC 400(1)
│ ├── CPU 410-ER
│ │ └── S7 Program
│ │ ├── Blocks
│ │ └── Sources
│ └── Hardware
│ └── S7HWCONF
│ ├── SDB 1000.sdb
│ ├── SDB 1001.sdb
│ └── SDB 2000.sdb
├── SIMATIC 400(2)
│ └── ...
└── (orphaned DP master reference, if registered at the project root)
The orphaned DP master's SDBs may live under one of the SIMATIC x00 station folders (typically the AS that previously hosted the DP/PA link or coupler), or they may sit in the root project tree as a free-standing entry that has lost its parent. Search the entire project tree for SDBs whose PROFIBUS master address matches the orphan's FDL address. Use HW Config > DP Master System > Object Properties to read the master FDL address; cross-reference the SDB list against this address using a hexadecimal search in the binary SDB files if the parent cannot be located visually.
2.2 Manual SDB Disassociation
- Close SIMATIC Manager completely.
- Make a second file-system backup of the working copy. The first backup is the untouched archive; this is the pre-manipulation backup of the working copy.
- Open the station's
S7HWCONFfolder in Windows Explorer. Rename SDBs that reference the orphan toSDB_OLD_<number>.sdb. The format is proprietary — do not edit the file content with a text editor. The SDB file is a binary record with internal length fields; modifying the content will produce a parse error and HW Config will refuse to load the project. - Open the project in SIMATIC Manager. The HW Config editor will report a missing SDB and prompt to recompile the station. Accept the recompile.
- Open HW Config, perform Station > Save and Compile. The compile operation regenerates SDBs based on the in-memory configuration. If the orphan is no longer represented in memory, it is dropped.
- Close HW Config, then File > Save As > With Reorganization (slow) on a fresh copy to normalize the database and write the cleaned SDB set.
S7HWCONF folder for SDB files matching the expected numbering pattern. Files with a non-matching prefix are ignored. Renaming creates a deliberate gap in the SDB numbering; the recompile fills the gap with a freshly written SDB that contains only the in-memory configuration, which excludes the orphan if the orphan is no longer present in the in-memory model.2.3 Identification by Symbolic Name
If the project uses symbolic names for the PA transmitters (typical in PCS7 with the APL — Advanced Process Library), the orphan's slaves are referenced by symbolic name. Open the global symbol table (S7SymTab.sdf in the Global\Symbols folder) and search for the symbolic names of the pressure and level transmitters reported in the orphan. The presence of symbols pointing to an address range that is not assigned to any active AS is a strong indicator of a residual orphan link.
Solution Path 3: PCS7 Multi-Project Recovery
PCS7 multi-projects coordinate individual AS projects through an .S7F container. Orphaned DP masters in PCS7 most often appear at the multi-project container level, not inside any individual AS project. The container holds a Global folder with the multi-project's master symbol table and a Library folder for shared PCS7 libraries. Orphaned references can persist in any of these locations.
- Open the multi-project in SIMATIC Manager by double-clicking the
.S7Ffile. Do not open an individual.S7P— multi-project operations are only available from the container. - Identify which AS project contains the orphan. The orphan's slaves (DP/PA link, ET200PA, individual PA devices) reveal the parent AS by their PROFIBUS address range. Open each AS project's HW Config and compare the bus topology against the orphan's reported master address.
- Apply the targeted SDB cleanup (Path 2) to the offending AS project, then close the multi-project.
- Reorganize the multi-project container: File > Multi-Project > Save As with Reorganization. This is distinct from the single-project reorganization; the multi-project operation rebuilds the
.S7Fcross-references and the global symbol table consistency. - Reopen the multi-project and verify by attempting the original export: HW Config > Options > Export. The export error should no longer appear.
- Run Options > Check Project Consistency on the multi-project. Resolve every reported warning; the orphan will surface here if it is still present in any AS.
S7HWCONF folder first, then attempt the IM node deletion in HW Config. The grayed-out state resolves once the SDB reference is broken.Solution Path 4: Cross-Project Migration
When all cleanup paths fail, the nuclear option is to migrate the project into a freshly created S7 project. The new project starts with an empty database; only stations and programs you actively transfer are populated, so orphans cannot be carried over. This procedure is the most reliable fix for projects that have undergone multiple STEP 7 upgrades, partial TIA Portal conversions, or PCS7 version transitions.
- Create a new STEP 7 project: File > New > Project. Match the target AS count if the source is PCS7. For a PCS7 multi-project, create a new
.S7Fcontainer first, then add the same number of.S7PAS projects. - Open the source project side-by-side in a second SIMATIC Manager instance.
- For each SIMATIC station: select the station in the source project, Edit > Copy, then in the destination project select the appropriate AS container and Edit > Paste. The station's hardware configuration, S7 program, and connections are transferred.
- For each S7 program: copy the
S7 Programcontainer, including blocks, symbols, and source files. Use Options > Cross-References on every program in the destination to confirm all references resolve. - Open the destination project's HW Config, perform Station > Save and Compile for each station.
- Save the new project, then Save As with Reorganization (slow) to finalize the database.
- For PCS7: open the new multi-project, run Options > Check Project Consistency, and resolve every warning before declaring the migration complete.
Cross-project migration is the most reliable fix for projects that have undergone multiple upgrades, partial TIA Portal conversions, or PCS7 version transitions. The cost is time: 2 to 6 hours for a typical PCS7 multi-project with two AS and 30,000 tags. The benefit is a clean database with no residual references.
Why "Save As With Reorganization (Slow)" Hangs on Large Projects
Three contributing factors stack to make reorganization slow to a degree that resembles a hang. The user reports in the field report are consistent with these factors, particularly on multi-AS PCS7 projects.
| Factor | Effect | Mitigation |
|---|---|---|
| Database size > 1 GB | Linear scan time exceeds patience threshold | Wait > 60 min; confirm disk I/O activity in Resource Monitor |
| Anti-virus scanning the temp directory | Reorganization writes to %TEMP%\S7TMP; AV intercepts every write |
Exclude %TEMP%\S7TMP and project directory from AV in real-time scan policy |
| PG low on RAM < 8 GB | Paging thrash during block marshaling | Run on PG with ≥ 16 GB RAM; pre-set page file to 32 GB on a separate physical drive |
| Multiple S7 online sessions open | Database lock contention across processes | Close all online windows, set PG/PC interface to None |
| Windows Search Indexer active on project drive | Exclusive file locks on .sdb files |
Disable Search Indexer on the project drive |
| Project on network share (NFS / SMB) | Network latency amplified over thousands of SDB writes | Copy project to local SSD before reorganization |
| Virtual machine with dynamic memory | Balloon driver steals RAM mid-reorganization | Reserve static memory; disable balloon driver |
Verification
After cleanup, perform the following checks to confirm the orphan is gone and that the rest of the project remains intact. The verification sequence is ordered from the cheapest check (tree walk) to the most expensive (full project consistency check on a PCS7 multi-project).
- Tree check: In the project tree, confirm the orphaned DP master system entry is absent. The tree should show only DP master systems that have a parent SIMATIC station.
-
Export check: HW Config > Options > Export. The export must complete without the orphaned-system error. Save the export as a
.cfgfile for the project archive. The.cfgfile is a plain-text representation of the configuration and is human-readable for diffing against historical exports. -
Compile check: Open each station's HW Config and perform Station > Save and Compile. No warnings about missing SDBs or inconsistent master systems should appear. SDBs are written to
S7HWCONFand overwrite the on-disk copy. - Consistency check (PCS7): Options > Check Project Consistency. Resolve every reported warning; the orphan will surface here if it is still present. The consistency check walks the multi-project cross-references, the global symbol table, and the SDB ownership graph.
- Cross-reference check: Options > Cross-References on every S7 program. Any reference to the orphan's address range is a residual link that needs manual purging. Cross-references are computed from the symbol table and the block interfaces; a stale symbol entry will surface here.
- Offline / Online diff: If a CPU is available, bring the project online, perform PLC > Compile and Download Objects in dry-run mode, and compare the offline SDB set against the CPU's online SDB set. A clean project shows zero differences in the DP master configuration.
Troubleshooting Matrix
| Symptom | Likely Cause | Fix |
|---|---|---|
| Delete option grayed out on orphan | No parent station in tree | Path 1 (Reorganization) on working copy |
| Delete option grayed out on IM / DP-PA link | SDB reference from parent station | Path 2 (SDB disassociation) |
| Export fails with orphan error | Tree-SDB mismatch | Path 1 then Path 3 (PCS7 multi-project) |
| Reorganization hangs > 3 hours | AV / Search Indexer / RAM / network | Apply field-proven configuration; restart on local SSD |
| Orphan reappears after Save As | Original on-disk SDBs still referenced | Path 2 (manual SDB disassociation) |
| PCS7 multi-project loses AS link after cleanup | Multi-project .S7F not reorganized |
Path 3 (multi-project reorganization) |
| PA device symbol resolves to wrong address | Stale symbol entry in S7SymTab.sdf
|
Edit symbol table manually; run consistency check |
| Orphan appears in TIA Portal side of dual project | Hybrid STEP 7 / TIA project | Complete TIA migration or revert to STEP 7 only |
Preventive Best Practices
- Always "Save As with Reorganization" after every project merge, station delete, or library import. Treat the reorganization as a commit operation in a version-control workflow. The reorganization pass normalizes the database and surfaces inconsistencies before they become orphans.
- Use versioned backups (incremental or differential) before any HW Config change. PCS7 project files do not have an internal undo history; the on-disk SDBs are the only persistent state. A reliable backup lets you roll back to a known-good project state in minutes rather than days.
- Keep STEP 7 patched. V5.5 SP4 and later include database integrity checks that prevent many orphan conditions. V5.6 added explicit support for orphan cleanup in HW Config for some scenarios. The PCS7 V9.0 SP2 update specifically addressed orphan DP master scenarios in multi-project containers.
- Assign a single PROFIBUS master per AS. Dual-master configurations on a single AS (master + standby) can produce ambiguity that the database sometimes resolves into an orphan. If redundant masters are required, use the S7-400H or AS 410H redundant configuration, which has explicit ownership semantics.
- Document DP master FDL addresses in a project README. When an orphan appears, the address helps identify which station lost ownership and accelerates diagnosis.
- Never interrupt a reorganization. Once the routine is running, do not interact with the SIMATIC Manager UI. Wait for the dialog to close on its own. Clicking the UI forces a re-paint that competes with the single-threaded reorganization routine and can produce a hang.
- Run on a local SSD. Network shares and external USB drives introduce latency that is amplified across the reorganization's thousands of file operations. A local SATA or NVMe SSD with at least 2 GB free is the minimum recommended target.
-
Disable AV and indexer on the project directory. Add the project root, the
%TEMP%\S7TMPdirectory, and the SIMATIC Manager installation directory to the antivirus exclusion list. Disable Windows Search Indexer on the project drive letter. - Use the same STEP 7 version across the team. Mixed-version projects (one engineer on V5.5, another on V5.6) can produce schema mismatches that surface as orphans after a save from the higher-version PG.
- Close all SIMATIC Manager instances before file manipulation. A second instance holding an open handle on the project database will block any direct file-system operation and can corrupt the database if the operation proceeds.
Platform and Version Notes
The procedures above apply to the following Siemens platforms, with the version-specific notes indicated.
| Platform | Versions | Notes |
|---|---|---|
| STEP 7 Classic | V5.4, V5.5, V5.6, V5.7 | Reorganization routine and SDB layout stable across all four versions |
| PCS7 Engineering | V8.0, V8.1, V8.2, V9.0, V9.0 SP1, V9.0 SP2 | Multi-project layer requires Path 3 in addition to Path 1 |
| S7-300 / S7-400 CPU families | CPU 315, 317, 319, 412, 414, 416, 417 | DP master behavior identical across families |
| AS 410 / AS 410E | AS 410, AS 410E (PCS7 V9.0+) | Multi-project default; orphan cleanup benefits from Path 3 |
| PROFINET IO controllers | N/A — issue is PROFIBUS-specific | Similar orphan conditions exist in PROFINET but follow a different code path |
| TIA Portal | V13 SP1, V14, V15, V15.1, V16, V17, V18 | Different orphan symptoms; refer to TIA Portal-specific documentation |
PROFIBUS DP master systems configured as DPV0 or DPV1 behave identically with respect to the orphan condition; the issue is at the project database layer, not the protocol layer. DP/PA couplers (passive, non-intelligent) and DP/PA links (active, intelligent, with their own GSD file) both participate in the orphan condition if the upstream master is lost. ET200PA stations are typically connected to a DP/PA link and inherit the orphan from the link's upstream master.
FAQ
Why is the Delete option grayed out for an orphaned DP master in SIMATIC Manager?
The orphan has no parent station in the project tree, so SIMATIC Manager cannot determine the SDB owner and disables destructive actions. Apply File > Save As > With Reorganization (slow) on a project copy to drop the orphan. If the routine hangs, confirm the project directory is excluded from antivirus and the PG has at least 16 GB RAM before retrying. As a fallback, perform the targeted SDB disassociation procedure (Path 2) on the station that previously hosted the orphan's upstream link.
How do I stop SIMATIC Manager from "Not Responding" during a slow reorganization?
The hang is usually a long, single-threaded database rebuild. Verify activity by watching S7Proj.exe in Task Manager for disk I/O on the project directory. A 50,000-tag PCS7 multi-project typically takes 60 to 180 minutes. Do not kill the process unless disk activity is zero for more than 10 minutes. Preventive measures: exclude %TEMP%\S7TMP and the project directory from antivirus, disable the Windows Search indexer on the project drive, disable the SysMain service, and run on a PG with at least 16 GB RAM, a 32 GB page file, and a local SSD target.
Can I delete a DP/PA link or IM whose Delete option is grayed out in PCS7?
Yes, but the IM must be disassociated from the parent master first. Close the parent station's HW Config, rename the IM's referencing SDBs to SDB_OLD_<number>.sdb in the station's S7HWCONF folder, reopen HW Config, and perform Station > Save and Compile. The IM node then becomes deletable. Finish with File > Save As > With Reorganization (slow) on a project copy. The procedure applies to IM 153-2, IM 157, and IM 655 modules.
What does the export error "Your Configuration contains orphaned DP master and/or Profinet IO systems that cannot be exported" mean?
SIMATIC Manager refuses to export a hardware configuration that contains a DP master with no parent station, because the exported file would have no valid reference for that master. The check is conservative and applies to both PROFIBUS and PROFINET systems, even in projects that use only one bus family. Resolve the orphan through the procedures above and re-run HW Config > Options > Export to obtain a clean .cfg file.
Will this orphan issue occur in TIA Portal projects, or only in STEP 7 Classic?
Similar orphan conditions exist in TIA Portal but present differently because the portal enforces a stricter device-to-controller binding. The underlying STEP 7 Classic orphan described here is a STEP 7 V5.x and PCS7 V8.x/V9.x issue. Projects partially migrated to TIA Portal can produce a hybrid condition where the TIA side holds the active reference and the STEP 7 side holds a phantom. Completing the migration, rather than running both in parallel, is the reliable fix for the hybrid case.
How do I find which station previously owned the orphaned DP master?
Open HW Config on the orphan and read the master FDL address from Object Properties. Then search the project's S7HWCONF folders under each SIMATIC x00 station for SDBs whose master FDL address matches. A hexadecimal search in the binary SDB files is reliable because the master address is stored as a fixed-offset field. The owning station is the one whose SDB set still references the orphan's master address even though the project tree does not.