WinCC Flexible 2008 SP2 Simulation Buttons Not Working: Complete Troubleshooting Guide
Symptom: In WinCC flexible 2008 SP2, the Start Runtime System and Start Runtime System with Simulator toolbar buttons in the ES (Engineering System) suddenly stop launching the WinCC flexible RT. The buttons dim briefly, the Save button also greys out for a moment, but no *.RTF runtime is produced and no simulator window appears. Other projects (newly created) still simulate correctly on the same PC, isolating the problem to a single corrupted project file or to a stale state in the WinCC flexible 2008 SP2 development environment itself.
This reference documents the root cause hierarchy observed in field escalations, the exact repair sequence, and the verification steps that confirm the runtime is healthy again. It is written for HMI commissioning engineers and PLC integrators working with SIMATIC panels configured through Siemens Industry Online Support deliverables.
1. Affected Environment and Versions
| Component | Version / Build | Notes |
|---|---|---|
| WinCC flexible ES | 2008 SP2 (HF7 and earlier hotfixes) | Engineering software used to compile .RTF for the panel |
| WinCC flexible Runtime | 2008 SP2 (RT x64 / RT x86) | Local PC runtime that hosts the simulator |
| SIMATIC Panels supported | K-TP, OP 73 / 77, TP 170/177, OP 170, MP 177/277/377, Comfort Panels via legacy import | Simulation only; production loading uses ProSave or TIA Portal |
| OS tested | Windows XP SP3, Windows 7 SP1 (x86/x64) | Runtime is the same image WinCC flexible installs |
2. Problem Description (Observed Behavior)
- Engineer opens a previously working
*.hmiWinCC flexible 2008 SP2 project. - Engineer clicks Start Runtime System (F5) or Start Runtime System with Simulator (Shift+F5).
- The toolbar buttons dim. The Save button also greys out briefly. The status bar shows a transient message but no
*.RTFis produced and no runtime window opens. - Creating a new project in the same WinCC flexible instance simulates normally. The defect is therefore project-scoped or start-center-scoped, not a global RT installation failure.
- Symptom is intermittent: a previously saved project that simulated earlier in the same day no longer simulates after a few hours of editing, after a forced crash, or after Windows updates.
3. Root Cause Hierarchy
Five root causes have been confirmed across multiple engineering escalations. Apply the fixes in the listed order — the most common cause is listed first.
3.1 Corrupted WinCC flexible start center state
WinCC flexible 2008 SP2 stores user-specific state (recent project lists, last-open paths, project view cache) in the user's profile. When this XML-based state file becomes inconsistent, the ES can open the project but the action handlers wired to the simulation toolbar buttons are not registered, producing the dim-and-no-action behavior. This is the dominant root cause when a reboot does not resolve the issue but a different project still simulates correctly.
3.2 Stale temporary project files in the project directory
Each *.hmi project maintains a \tmp\, \lck\ and \backup\ subfolder. If WinCC flexible crashes (BSOD, forced task kill, power loss), these folders can retain an incomplete compile output that blocks subsequent recompiles. The simulation button fails silently because the compile prerequisite step does not complete.
3.3 Project file references orphaned integrated components
References to a deleted or renamed ProTool project, an OPC Scout configuration, or a STEP 7 / SIMOTION integrated project can leave dangling pointer entries in *.hmi. WinCC flexible 2008 SP2 attempts to resolve these references on every compile and aborts without surfacing an error dialog when the project was opened silently via the recent files list.
3.4 WinCC flexible RT service cache in a bad state
WinCC flexible 2008 SP2 installs two Windows services: CCAgent and CCEServer. The simulator talks to CCAgent over local DCOM. When CCAgent holds a stale license handle or its %PROGRAMDATA%\Siemens\Automation\WinCC flexible 2008\Runtime cache is corrupted, the simulator launch returns a non-fatal error to the ES and the button appears to do nothing.
3.5 User rights / DCOM permissions on the local PC
If the user account was changed (domain migration, UAC elevation, or Local Users and Groups cleanup), the DCOM launch permissions on CCAgent.exe can be lost. The toolbar buttons run synchronously, fail to instantiate the RT process, and time out silently. This is the most common cause on Windows 7 x64 after a Windows Update cycle that resets DCOM defaults.
4. Diagnostic Workflow
Run the following checks before applying any fix. Each test isolates one root cause from the list above.
-
Recent files test: Close the broken project. Use File → Open (do not use the recent files list) and reopen the same
*.hmi. If simulation now works, the root cause is the start-center state (cause 3.1). - New project test: Create an empty project with one screen and one button. Attempt simulation. If it succeeds while the original project still fails, the root cause is project-scoped (3.2 or 3.3).
-
Service status check: Open
services.mscand verify SIMATIC WinCC flexible CCAgent and SIMATIC WinCC flexible CCEServer areRunningwithAutomaticstartup. If CCAgent is stopped, start it manually and retry simulation (cause 3.4). -
DCOM permission check: Run
dcomcnfg→ Component Services → Computers → My Computer → DCOM Config. Locate the CCAgent application, open Properties → Security, and confirm the launching user has Local Launch and Local Activation rights. Reset using the defaults if unsure (cause 3.5). - Compile output inspection: Open the project, press Project → Compiler → Check Consistency. Any error referencing an unresolved tag, screen, or alarm must be resolved before the simulation buttons will operate.
5. Solution Sequence (Apply in Order)
5.1 Step 1 — Clear temporary files inside the affected project
- Close WinCC flexible 2008 SP2 completely, including the start center.
- Open Windows Explorer and navigate to the project folder.
- Delete the contents of the following subfolders (do not delete the folders themselves):
\tmp\\lck\\backup\-
\MetaTags\(only if present and if you have a backup)
- Inside the project folder, also delete the
*.RTF,*.log, and*.bakfiles generated by the last compile attempt. - Reopen the project and choose Options → Delete temporary files from the menu to clear any internal caches the ES holds in memory.
- Choose Project → Compiler → Rebuild All and verify the compile finishes without errors.
- Click Start Runtime System with Simulator. The simulator window should appear within 5–10 seconds on a typical engineering PC.
5.2 Step 2 — Reset the WinCC flexible 2008 SP2 start center
If step 1 did not restore simulation, the start-center state itself is corrupted. Reset it as follows:
- Close WinCC flexible 2008 SP2 completely.
- Open Start → Programs → Siemens Automation → SIMATIC → WinCC flexible 2008 → WinCC flexible. Right-click the shortcut and choose Properties.
- In the Shortcut tab, locate the target path. The reset switch is invoked by appending a flag to the executable.
- Modify the target to:
"C:\Program Files\Siemens\Automation\WinCC flexible 2008\HMI\HmiES.exe" -resetcenter - Launch the shortcut once. The start center opens with default factory state. Close it.
- Restore the original target line (remove the
-resetcenterflag) so future launches behave normally. - Reopen the project via File → Open (not via the recent files list) and attempt simulation.
The reset restores default user preferences, recent project lists, view layouts, and the registry entries the simulation action handlers depend on. The reset does not delete any project data; it only affects the %APPDATA%\Siemens\Automation\WinCC flexible 2008 user profile.
5.3 Step 3 — Repair the WinCC flexible 2008 SP2 installation
If the toolbar buttons still fail after steps 1 and 2, repair the installation to replace corrupted runtime binaries and DCOM configuration files:
- Open Control Panel → Programs and Features.
- Select SIMATIC WinCC flexible 2008 SP2 and click Repair. Accept the prompt to retain license keys.
- Reboot the PC when the repair finishes.
- After reboot, verify both CCAgent and CCEServer services are
Runninginservices.msc. - Reopen the project and attempt simulation.
5.4 Step 4 — Re-register the DCOM application IDs
If simulation still fails, the DCOM AppIDs for WinCC flexible components may be unregistered. Repair normally fixes this, but on a heavily customized Windows 7 image the fix is incomplete.
- Open an elevated command prompt (Run as administrator).
- Navigate to the WinCC flexible 2008 binary folder:
cd "C:\Program Files\Siemens\Automation\WinCC flexible 2008\HMI" - Re-register the runtime server DLLs:
regsvr32 /s CCEServer.dll regsvr32 /s CRtxAgent.dll regsvr32 /s HmiRTm.exe - Reboot the PC.
- Retry simulation.
5.5 Step 5 — Recreate the project from an integrated backup
If the project itself is corrupted and cannot be repaired, use the most recent *.hmi.bak backup file. WinCC flexible 2008 SP2 stores rolling backups in the \backup\ subfolder.
- Open Windows Explorer and navigate to
<project>\backup\. - Identify the most recent
*.hmi.bakfile with a timestamp matching the last known good compile. - Copy the file to the project root and rename it
<project>.hmi(after backing up the broken file). - Reopen the project. Recompile and attempt simulation.
6. Verification Procedure
After applying any of the solutions above, run the following verification checklist before returning the engineering station to the developer.
- Start center launches: Open WinCC flexible 2008 SP2 and confirm the start center renders the recent files list correctly. If the recent files list is empty after a reset, this is expected behavior; the list will repopulate as projects are opened.
- Toolbar button responsiveness: Open the previously broken project. Click Start Runtime System with Simulator. The button should not dim without producing a runtime; the simulator window should appear within 10 seconds.
- Tag simulation works: In the simulator, change a tag value via the simulator control panel. Confirm the value updates in the active screen.
- Alarm simulation works: Trigger a configured alarm from the simulator and confirm the alarm view populates.
- Compile cycle: Stop the runtime, return to the ES, modify a property on any object, and recompile. The compile should complete without errors and the toolbar button should immediately re-arm.
-
Service health: Open
services.mscand confirm CCAgent and CCEServer are stillRunning. They should remain running between simulation sessions. - Event log review: Open Event Viewer → Windows Logs → Application and filter for source CCAgent or HmiES. No error events with timestamp matching the last simulation attempt should be present.
7. Parameter and Service Reference
| Item | Path / Identifier | Default Value |
|---|---|---|
| CCAgent service name | Siemens SIMATIC WinCC flexible CCAgent | Automatic, Running |
| CCEServer service name | Siemens SIMATIC WinCC flexible CCEServer | Automatic, Running |
| Runtime cache | %PROGRAMDATA%\Siemens\Automation\WinCC flexible 2008\Runtime |
Populated on first simulation |
| ES user profile | %APPDATA%\Siemens\Automation\WinCC flexible 2008 |
Holds start center state |
| Project compile output | <project>\*.RTF |
Regenerated on every compile |
| Rolling backups | <project>\backup\*.hmi.bak |
Last 5 generations retained |
| ES executable | HmiES.exe |
Hosts all toolbar action handlers |
| Reset center switch | HmiES.exe -resetcenter |
One-shot, must be removed afterwards |
8. Common Error Patterns and Mappings
| Symptom | Likely Cause | First Action |
|---|---|---|
| Buttons dim, no runtime, no error dialog | Start center state corruption (3.1) | Run -resetcenter
|
| Buttons dim, status bar shows "Compile aborted" | Stale project temp files (3.2) | Delete \tmp\, \lck\, recompile |
| Buttons dim, log shows "OPC server not reachable" | Orphaned integrated reference (3.3) | Re-link or remove the OPC reference |
| Buttons dim, log shows "RT license unavailable" | CCAgent license handle stale (3.4) | Restart CCAgent service |
| Buttons dim, log shows "DCOM launch denied" | Local account DCOM rights lost (3.5) | Reset DCOM permissions on CCAgent |
| Buttons dim and entire ES freezes for 30s | Network drive hosting *.hmi dropped |
Copy project to local SSD, retry |
9. Preventive Maintenance Recommendations
-
Local project storage: Keep WinCC flexible 2008 SP2
*.hmifiles on a local NTFS volume, not on a network share. Network latency and dropped connections are the most common silent cause of corrupted compile output. -
Exclusion list: Configure Windows Defender or any third-party AV to exclude
%APPDATA%\Siemens,%PROGRAMDATA%\Siemens, and the project root folder. Real-time scanning of the*.RTFand*.hmifiles during compile produces exactly the dim-and-no-action symptom described in this article. - Scheduled service restart: Create a weekly scheduled task that restarts the CCAgent and CCEServer services. Both are stable for days at a time, but periodic restarts eliminate stale license handles and prevent the issue from surfacing during commissioning.
-
Project baseline backup: After every successful simulation, copy the
*.hmito*.hmi.bakin the same folder. WinCC flexible 2008 SP2 keeps only 5 generations; an additional manual baseline guarantees a recovery point. -
Disable Windows Search indexing on the project folder. Search indexer interference with
*.hmiand*.RTFcan also produce the same dim-and-no-action symptom.
10. Migration Path to TIA Portal
WinCC flexible 2008 SP2 is in the Siemens product lifecycle phase "discontinued" for new sales, with support delivered through Service Pack hotfixes. If the engineering station must continue running a long-term program, migrate the HMI configuration to TIA Portal V17 or later:
- In WinCC flexible 2008 SP2, choose Project → Migration → Migrate project to TIA Portal. The wizard produces a
*.ap17archive. - Open TIA Portal and import the archive. Confirm that all panels, tags, alarms, and screens resolve without errors.
- Switch to the TIA Portal RT simulation model. Note that the toolbar buttons described in this article do not exist; the equivalent operations are Online → Simulation → Start and the panel simulator integrated with TIA Portal.
- For Basic Panels, review the function key behavior in Function Keys (Basic Panels) - WinCC to confirm globally assigned keys trigger the same action on the HMI device and PLC regardless of the displayed screen.
Function key assignments migrate 1:1 from WinCC flexible 2008 SP2 to TIA Portal for OP 77, TP 177, and OP 170 projects. For MP 277 / MP 377 / Comfort Panel projects, the migration tool emits a warning that must be reviewed manually because K-TP function key F-keys have different PLC address mapping in TIA Portal.
11. Frequently Asked Questions
Why do the simulation buttons in WinCC flexible 2008 SP2 dim but do nothing?
The dim-and-no-action pattern indicates the action handler registered the click but failed to launch the WinCC flexible RT. The most common cause is a corrupted start-center state; reset it with the HmiES.exe -resetcenter command. Stale temporary files in the project directory and orphaned integrated references (OPC, STEP 7) are the next-most-common causes.
Do I need to uninstall and reinstall WinCC flexible 2008 SP2 to fix the simulation buttons?
No. A repair install via Control Panel → Programs and Features replaces the runtime binaries and DCOM configuration without affecting the license. Reserve a full reinstall for cases where the repair does not restore the CCAgent service to Running.
Can antivirus software cause the WinCC flexible simulation buttons to fail?
Yes. Real-time scanning of *.hmi, *.RTF, and the user profile folder during compile can produce exactly the dim-and-no-action symptom. Add %APPDATA%\Siemens, %PROGRAMDATA%\Siemens, and the project root to the AV exclusion list to eliminate this cause.
How do I know whether the problem is the project or the WinCC flexible installation?
Create a new project with a single screen and a single button. If the new project simulates correctly while the original project does not, the installation is healthy and the problem is project-scoped. If the new project also fails, the WinCC flexible installation or the CCAgent service is the problem; proceed with the repair and DCOM re-registration steps.
Will resetting the start center delete my project data?
No. The -resetcenter flag only clears the user-profile state held under %APPDATA%\Siemens\Automation\WinCC flexible 2008. It does not touch *.hmi, *.RTF, or any project backup. The recent files list in the start center repopulates as you reopen projects.
Does this issue affect TIA Portal V17 or later?
No. TIA Portal uses a different simulation model launched through Online → Simulation → Start. The toolbar buttons described in this article exist only in WinCC flexible 2008 SP2 and earlier. Projects migrated to TIA Portal follow the troubleshooting path described in the TIA Portal help, not the WinCC flexible 2008 SP2 path.