Fix PCS 7 'Runtime Group Does Not Exist' Error During PLCSIM Chart Download
The Runtime Group Does Not Exist error stops a PCS 7 S7 program download to S7-PLCSIM even when compilation reports zero errors and all @Charts are re-generated. The failure is not a compile fault — it surfaces only when STEP 7 / PCS 7 tries to load the resulting system data to the simulated CPU. The reason is structural: the S7 program has lost one or more runtime groups that the PCS 7 OS or the CFC editor must bind to during the download handshake. This reference walks through the runtime group architecture, the exact failure path, the diagnostic checklist, and the field-proven fix sequence.
1. Technical Background: Runtime Groups in PCS 7
A runtime group is a CFC/SFC construct that binds a logical task (cyclic interrupt, time-of-day interrupt, startup) to an organisation block (OB) of the S7 CPU. PCS 7 ships with a fixed set of standard runtime groups that map onto the process OB layer:
| Runtime Group | Bound OB | Class | Default Cycle / Phase |
|---|---|---|---|
| OB_1 | OB1 | Cyclic (free) | Continuous, priority 1 |
| Runtime 1 | OB35 | Cyclic interrupt | 100 ms (default), priority 12 |
| Runtime 2 | OB36 | Cyclic interrupt | 200 ms, priority 13 |
| Runtime 3 | OB37 | Cyclic interrupt | 500 ms, priority 14 |
| Runtime 4 | OB38 | Cyclic interrupt | 1000 ms, priority 15 |
| Startup | OB100 | Restart | Once on warm restart |
| Time-of-day | OB10 | Time-of-day interrupt | Configurable, priority 2 |
| Error | OB85 / OB121 | Error handling | Triggered on fault |
| @Charts container | n/a | System chart folder | Holds CFC / SFC references for OS link-up |
The @Charts container is a system-level CFC chart folder that is automatically generated by the PCS 7 plant view. It does not contain user logic; it contains the runtime group objects and the OS variable handover that WinCC Runtime needs to resolve when the OS server activates. When the CFC compiler runs Entire program → Compile and download objects, it expects every referenced runtime group to be present in the S7 program symbol table.
2. Symptoms and Error Context
The error appears under very specific conditions:
- The S7 project compiles without warnings or errors after a full Entire program compilation.
- All
@Chartshave been regenerated in the S7 program tree (visible in SIMATIC Manager under the chart container). - The user initiates PLC → Download to a S7-PLCSIM instance that is already running and in STOP or RUN-P.
- STEP 7 reports a dialog titled Download to target system — error, with the message body: "Runtime group does not exist" (German original: Laufzeitgruppe existiert nicht).
- The download aborts before any block (OB, FB, DB, SFB) is transferred to the simulated CPU.
The wording is generic — STEP 7 does not name the missing runtime group — so the engineer must reconcile the S7 program structure manually.
3. Root Cause Analysis
The error is raised by the STEP 7 download service (s7onlinx.dll) when it walks the S7 program header for the target CPU and cannot match the runtime group identifier (an internal CFC pointer) to a corresponding block in the offline program. Five root causes account for 95 % of field reports:
-
Deleted or missing
@Chartscontainer after a manual cleanup. The user re-creates the chart folder but does not regenerate the runtime group system data via CFC → Charts → Insert Runtime Group. - Master data library mismatch. The PCS 7 master data library used during the last compile differs from the one currently mounted. Runtime group symbols reference the library version and fail to resolve.
-
Incomplete "Compile and download objects" pass. Only the user charts were compiled; the system chart partition (
@Charts) was skipped because of a target system filter rule. - PCS 7 OS project not yet present. When the OS project is missing, the CFC compiler omits the OS linkage runtime group from the generated S7 program. STEP 7 then tries to download a runtime group identifier it never generated.
- PLCSIM instance wrong version. A PLCSIM V5.4 instance is paired with PCS 7 V9.x blocks that reference runtime groups not present in the older PLCSIM firmware stub.
4. Pre-Download Verification Checklist
Run the following checks before every PLCSIM download. Each pass reduces the chance of a partial download:
| Check | How to verify | Expected result |
|---|---|---|
| PLCSIM is RUN-P and reachable | PLC → Accessible nodes | Target CPU listed, online view opens |
| Target CPU firmware matches | HW Config → CPU properties → Version | MLFB matches the loaded PLCSIM firmware stub |
| Master data library mounted | Options → PCS 7 → Library | Library path resolves; no red entries |
| OS project present | Plant view → right-click hierarchy | WinCC OS object exists |
@Charts regenerated |
S7 Program → Charts → expand folder | All five standard runtime groups visible |
| Compile log clean | CFC → Logs → Entire compile log | 0 errors, 0 warnings |
| No pending block inconsistencies | PLC → Check block consistency | All blocks consistent |
5. Diagnostic Procedure
Follow this procedure in order. Stop after the first step that resolves the issue.
Step 5.1 — Confirm the missing runtime group identity
- Open the S7 program in SIMATIC Manager.
- Right-click Charts → Charts of the S7 program.
- Switch to the Runtime groups tab at the bottom of the CFC editor.
- Compare the listed runtime groups against the canonical list in Section 1 of this article.
- Mark every missing group. These are your suspects.
Step 5.2 — Read the STEP 7 download log
Activate the verbose download log via Options → Settings → Online → Trace. Reproduce the download and inspect %TEMP%\s7logs\*.log. Search for the pattern LZG (German abbreviation for Laufzeitgruppe) or RTG for the English keyword. The line above the error names the group.
Step 5.3 — Inspect the offline S7 program symbol table
- Open S7 Program → Symbols.
- Filter for entries beginning with
RG_orRTG_. - Cross-check each entry against the runtime groups identified in Step 5.1.
- A missing symbol entry confirms the CFC compiler did not emit the runtime group header for that group.
Step 5.4 — Verify the master data library version
- Open the PCS 7 plant view.
- Right-click the S7 program → Properties → PCS 7 tab.
- Note the Master data library path and version.
- Compare with the library mounted under Options → PCS 7 → Library. Mismatch → remount.
6. Solution Path: Restore Runtime Groups
Solution A — Insert missing runtime group manually
- Open the CFC editor for the S7 program.
- Right-click in the chart canvas → Insert runtime group.
- Choose the OB that maps to the missing group (e.g. OB35 → Runtime 1).
- Set the cycle time to the PCS 7 standard for that group (see Section 1 table).
- Save the chart. The
@Chartssystem data is regenerated. - Run Charts → Compile → Entire program again.
- Download to PLCSIM.
Solution B — Force regeneration of @Charts
- Close all CFC / SFC editors.
- In SIMATIC Manager right-click the S7 Program → CFC → Generate @Charts.
- Wait for the regeneration log. It should list each runtime group as "created" or "updated".
- Recompile entire program.
- Retry the download.
Solution C — Recreate the OS project linkage
- Plant view → right-click the hierarchy node → Insert new object → WinCC OS.
- Open OS Project Editor and confirm the server assignment.
- Recompile Entire program with OS (this is the option that re-emits the OS linkage runtime group).
- Download again.
Solution D — Match PLCSIM firmware to PCS 7 blocks
- Note the MLFB of the simulated CPU in HW Config.
- Open S7-PLCSIM and select the matching firmware version (e.g. CPU 417-4 V4.5 for PCS 7 V8.2).
- Restart PLCSIM, reset to factory defaults.
- Repeat the download procedure.
7. PLCSIM-Specific Considerations
S7-PLCSIM V5.4 emulates an S7-400 station. PCS 7 V9.0 and later expect OB83 / OB85 / OB121 runtime group support that PLCSIM exposes only from build V5.4 SP5 onward. If the PLCSIM build is older:
- Upgrade to S7-PLCSIM V5.4 SP7 or later via the PCS 7 installation media or the Siemens online software delivery.
- Confirm the PLCSIM instance is started with administrator rights; Windows UAC can block the RPC handshake used by STEP 7 download.
- Disable any third-party firewall rules on TCP port 102 (ISO-on-TCP) and TCP port 1030 (RFC 1006 extension). The Siemens Support Entry 88780011 (WinCC Runtime download) lists the same port prerequisites and is a useful cross-check.
PLCSIM supports only one active download session. If a previous download was interrupted, the simulated CPU may be in defective state. In that case:
- PLCSIM → MRES to clear memory.
- Switch to STOP.
- Retry the download.
8. Related OS Download Errors
Engineers frequently mix the runtime group download error with WinCC OS loading errors. The Siemens FAQ at Siemens Support Entry 88780011 — WinCC Runtime Professional download checklist lists the canonical OS-load prerequisites:
- Engineering station and operator station must be in the same Windows domain or use matching local accounts.
- The
SIMATIC WinCC Explorerservice must be running on the operator station. - DCOM and RPC ports must be open between the two stations.
- The OS project must be compiled before download; partial compilation raises an OS-side equivalent of the runtime group error.
- The
CCProjectMgr.exeactivator must have write access to the project path.
These checks apply only when the failure is on the OS side, not on the S7 / PLCSIM side. Diagnose the boundary first, then apply the matching fix path.
9. Verification Steps After the Fix
- Download completes without dialog errors.
- Open the online view of the S7 program: PLC → Monitor/Modify.
- Confirm each runtime group is present on the CPU by inspecting CPU → Operating mode → Information → OB usage.
- Switch PLCSIM to RUN-P and observe the cyclic OBs fire at the configured intervals.
- In the OS runtime, open the process picture and confirm the variables resolve (no red question marks).
10. Prevention and Best Practices
-
Never delete
@Chartsmanually. Use CFC → Charts → Delete runtime group only, and only after the corresponding OB is decommissioned in HW Config. - Use the PCS 7 Version Cross Manager to validate the master data library at every project promotion.
- Compile entire program before every download. Partial compilation can mask a missing runtime group header until the download pass.
- Maintain a project template with the standard runtime groups pre-populated, so new S7 programs start with the correct structure.
- Document the PLCSIM build in the project README so engineers do not roll the firmware back inadvertently.
- Apply Siemens hotfixes. The original report referenced Siemens Technical Forum thread 1739-20, which is pinned to the PCS 7 V8.2 hotfix bundle that first corrected the runtime group regeneration defect.
11. Troubleshooting Matrix
| Symptom | Likely cause | Fastest fix |
|---|---|---|
Error appears after manual @Charts deletion |
Missing runtime group header | Solution A — Insert runtime group |
| Error appears after PCS 7 upgrade | Master data library mismatch | Remount current master data library |
| Error appears after OS project recreation | Missing OS linkage runtime group | Solution C — Recreate OS linkage |
| Error appears with new PLCSIM install | Firmware / build mismatch | Solution D — Match PLCSIM build |
| Error appears after Windows update | UAC / DCOM permission reset | Run STEP 7 as administrator |
| Error appears only for specific CPU | HW Config OB priority conflict | Reassign OB priority in HW Config |
| Error intermittent | Active download session leak in PLCSIM | MRES and restart PLCSIM |
What does the "Runtime group does not exist" error mean in PCS 7?
It means STEP 7 tried to download a runtime group identifier that the CFC compiler did not emit into the S7 program header. The S7 program compiles cleanly because the missing identifier is resolved only at download time, not compile time. The most common trigger is a deleted or regenerated @Charts container without a corresponding runtime group re-creation. Re-insert the missing runtime group via CFC → Insert runtime group, recompile, and retry the download.
Can the error appear after an entire program compile that reports zero errors?
Yes. The CFC compiler validates block consistency and chart-level references, but the runtime group system data is produced in a separate pass that runs only when the chart container is regenerated. If that pass is skipped — for example because the target system filter excludes the system charts — the compile log is clean yet the download fails. Always recompile after any @Charts change.
Which PLCSIM version supports PCS 7 V9.x runtime groups?
Use S7-PLCSIM V5.4 SP7 or later. Older PLCSIM builds (V5.4 SP4 and earlier) lack the OB83 / OB85 / OB121 stubs that PCS 7 V9.0 and later reference in the runtime group system data. Upgrade via the Siemens online software delivery portal and confirm the firmware stub matches the simulated CPU MLFB.
Is the "Runtime group does not exist" error related to WinCC OS download failures?
The message wording is similar but the failure path differs. Runtime group errors are S7 / PLCSIM side and are resolved in the CFC editor. WinCC OS download failures occur between the engineering station and the operator station and are governed by Windows networking, DCOM, and the SIMATIC WinCC services. The Siemens Support Entry 88780011 covers the OS-side prerequisites in detail.
How do I prevent the error when promoting a PCS 7 project between engineering stations?
Always promote the entire project archive, including the @Charts container and the master data library. After extraction, run Options → PCS 7 → Library and remount the master data library matching the project version. Then run Charts → Compile → Entire program before any download to PLCSIM. This sequence guarantees that the runtime group headers match the symbol table.