WinCC Professional V17 Runtime Stuck at 60% During Tag Logging: Root Cause and Recovery
When WinCC Professional V17 Runtime (RT) activation halts at exactly 60% while initialising the tag logging subsystem, the project is typically not the cause. The 60% threshold corresponds to the start-up phase in which WinCC opens the MS SQL Server Express instance, mounts the RT project database, and starts the TagLogging and AlarmLogging services. A freeze at this milestone usually indicates a corrupted runtime database, stale InMemory (IM) files, blocked WinCC services, or a missing TIA Portal V17 update that patches the tag logging start-up sequence.
This reference documents the field-proven recovery path for engineering stations running TIA Portal V17 with WinCC Professional RT or RT Advanced, the official reset scripts, the IM file locations, the Windows features that interact with the logging service, and the verification steps that confirm a clean start.
1. Problem Description
Symptom observed on the engineering station:
- RT Professional starts, the splash progress bar advances to 60%, then halts indefinitely.
- The status line reports a state associated with "Tag Logging initialise" / "Database open".
- Deactivating the project from the WinCC RT start-up dialog is not possible; the process must be killed via Task Manager.
- A full TIA Portal "Rebuild all" does not resolve the issue.
- Behavior reproduces on a freshly created test project with minimal HMI tags.
2. Affected Versions and Configuration
| Component | Version / Detail |
|---|---|
| TIA Portal | V17 (all updates up to and including Update 8 recommended) |
| WinCC Professional / RT | V17, part of TIA Portal V17 installation media |
| Runtime | WinCC RT Professional (PC-based) or RT Advanced (Panels) |
| Database engine | Microsoft SQL Server 2019 Express, installed by TIA V17 setup |
| Tag logging backend | SQL Server instance WINCCPLUS for RT Professional |
| OS | Windows 10 LTSC 2019 / Windows 10 21H2 / Windows 11 (TIA V17 supported) |
3. Root Cause Analysis
Siemens' official KB article 109766432 - Activating WinCC Runtime freezes during Alarm/Tag Logging classifies the 60% freeze as a known behavior triggered by one or more of the following conditions:
-
Corrupted runtime database in the local RT project folder (typically
<Project>\<Station>\Hmi\<HmiStation>\IMfor RT Professional, or%ProgramData%\Siemens\Automation\WinCC RT Professional\<ProjectName>\IMafter RT compile). -
Stale lock files left over from a previous RT process that was killed instead of deactivated cleanly (file extension
.LDF,.ldf,.MDFcompanions, and*.lockmarkers). - Background tasks interfering with the SQL instance (antivirus, disk-imaging, Windows Search indexer, OneDrive sync on the project folder).
- Windows feature "SMB 1.0/CIFS File Sharing Support" or the WinCC add-on "SQL Server full-text search" left in a half-installed state.
- Missing TIA V17 updates that patch the TagLogging start-up race condition (Update 5 onwards, with Update 8 being the most stable for tag logging fixes in 2023-2024 deployments).
4. Solution: Step-by-Step Recovery
Execute the steps in order. Do not skip the SQL service restart; it is required to release any orphaned handles on the WINCCPLUS database files.
4.1 Prerequisites
- Local administrator rights on the engineering station.
- All WinCC RT processes closed (check Task Manager for
CCEServer.exe,WinCC_RT_Professional.exe,SQLSERVR.EXEinstances namedWINCCPLUS). - TIA Portal V17 project backed up (
.ap17archive).
4.2 Step 1 - Close All WinCC Processes and Services
- Open Task Manager > Details.
- End the following processes if present:
WinCC_RT_Professional.exe-
CCEServer.exe(Component Configuration Editor) -
SQLSERVR.EXE(only the instance whose command line includes-sWINCCPLUS) -
Siemens.Automation.Portal.exe(TIA Portal)
- Stop the Windows services:
-
Siemens Automation License Manager(only if you need to reconfigure licensing) -
SQL Server (WINCCPLUS)viaservices.msc
-
4.3 Step 2 - Execute the Official WinCC Reset Script
Siemens ships a VBScript that resets the local WinCC runtime registry entries, file mappings, and the Component Configuration Editor state. It is documented in Entry ID 109766432.
- Navigate to the WinCC RT install path, default:
C:\Program Files\Siemens\Automation\WinCC RT Professional\Bin. - Locate
WinCC_Reset.vbs. - Right-click > Run as administrator. Confirm any UAC prompt.
- Wait for the script to complete; it will print status lines to a console window.
- Reboot the workstation (mandatory - the script edits COM+ and DCOM permissions that only load on a clean start).
4.4 Step 3 - Delete the IM (InMemory) Folder
The IM folder contains the runtime mirror of the project database and is the most common culprit for a 60% freeze.
- Open File Explorer and navigate to:
- RT Professional local cache:
%ProgramData%\Siemens\Automation\WinCC RT Professional - Project source IM (post-compile):
<ProjectPath>\<Station>\Hmi\<HmiStation>\IM
- RT Professional local cache:
- Delete the entire
IMfolder of the affected HMI station. Do not delete the project itself. - Empty the Recycle Bin.
4.5 Step 4 - Verify and Re-apply TIA V17 Update
- Open Control Panel > Programs and Features.
- Locate
Totally Integrated Automation Portal V17and confirm the installed version string includes Update 8 (build17.0.0.8or higher). - If Update 8 is not present, download the latest V17 cumulative update from the Siemens Industry Online Support portal (article ID 109769928 series for TIA V17 updates).
- Run the update as administrator; it patches the tag logging start-up logic and the SQL connection retry counter.
4.6 Step 5 - Check Windows Features
Per the Siemens KB, certain Windows features must be in a defined state to avoid interference with the WinCC SQL instance.
- Open Control Panel > Programs and Features > Turn Windows features on or off.
- Disable the following if present:
- "SMB 1.0/CIFS File Sharing Support" (only if no legacy NAS requires it).
- "Windows Identity Foundation 3.5" if not used by WinCC User Administrator.
- Ensure the following is enabled:
- ".NET Framework 4.8 Advanced Services > ASP.NET 4.8" (WinCC RT WebUX depends on it).
4.7 Step 6 - Exclude Project and SQL Paths from Antivirus
Real-time scanning of the SQL transaction log (*.ldf) inside the IM folder is a documented cause of 60% freezes.
- Add the following paths to the antivirus exclusion list (Windows Defender or third-party):
%ProgramData%\Siemens\AutomationC:\Program Files\Siemens\Automation\WinCC RT Professional-
C:\Program Files (x86)\Siemens\Automation(x86 COM components)
- Also exclude the file extensions
*.ldf,*.mdf,*.log,*.imwhile WinCC RT is running.
4.8 Step 7 - Recompile and Start RT
- Open the project in TIA Portal V17.
- Right-click the HMI station > Compile > Software (rebuild all).
- Start WinCC RT Professional. The progress should now pass 60% within 10-30 seconds and reach 100%.
5. Verification
Confirm the fix using the following checks:
| Check | Expected Result |
|---|---|
| WinCC RT progress bar | Reaches 100% without manual intervention; typical 20-45 s on a modern SSD |
| Tag logging runtime window | Shows "active" status for each configured logging tag; segment times are timestamped |
SQL instance WINCCPLUS
|
Database RTDB shows ONLINE in SQL Server Management Studio (if installed) |
| File system | New IM folder is re-created on first start and contains TlgF_*.db segment files |
| Event Viewer (Application log) | No entries with source CCEServer or WinCC TagLogging at level "Error" |
| Test project | Newly created empty RT project starts cleanly - confirms local environment is healthy |
6. Diagnostic Deep Dive: Tag Logging Architecture in WinCC RT Unified / Professional
Understanding the tag logging boot sequence helps isolate remaining issues. Per the Siemens TIA documentation on data logging (RT Unified), the logging subsystem follows this start-up order:
The 60% milestone corresponds to the "IM db segment open" stage. If the SQL instance cannot acquire a clean write lock on the segment file, the service stalls and the progress bar stops advancing.
7. Common Error Codes and Their Meaning
| Event Viewer Source / Code | Typical Meaning | Corrective Action |
|---|---|---|
| CCEServer - Event 1 (start aborted) | Component Configuration Editor cannot register a DCOM interface | Run WinCC_Reset.vbs and reboot |
| SQL Server (WINCCPLUS) - Error 9001 | Transaction log not available; *.ldf inaccessible or locked |
Delete IM folder, exclude path from AV |
| SQL Server (WINCCPLUS) - Error 945 | Database cannot be opened due to insufficient disk space or torn file | Check disk space (> 5 GB free on system drive), clear IM |
| TagLogging - Event 1001 | Logging segment timeout (default 30 s) | Increase TagLoggingTimeout in wincc.ini or clear IM |
| WinCC RT - Progress stuck < 60% | SQL service not started | Set SQL Server (WINCCPLUS) service start type to Automatic (Delayed Start)
|
8. Alternate Diagnosis: Project vs. Environment
Use the matrix below to classify the failure path quickly.
| Test | Result if Environment is Faulty | Result if Project is Faulty |
|---|---|---|
| Create empty RT project with no tags | Still freezes at 60% | Starts cleanly to 100% |
Run WinCC_Reset.vbs + delete IM |
Freeze cleared | Freeze may persist on the original project |
| Copy project to second PC, start RT | Freeze present on PC1 only | Freeze present on both PCs |
| Check Event Viewer for SQL error 9001 / 945 | Errors present | No SQL errors |
9. Field-Engineer Tips
- Never kill
WinCC_RT_Professional.exewith Task Manager during a tag logging write burst. Use the WinCC RT tray icon > Stop Runtime. A hard kill leaves the*.ldfin a recovering state and often triggers the next 60% freeze. - Schedule tag logging segment rotation (Configuration > Tag Logging > Properties > Segment change) to a size that fits the available disk; default 1 MB segments on a 10-tag project will create thousands of files within hours.
- If the station runs 24/7, set SQL transaction log to Simple recovery via TIA Portal > Runtime settings > Database. This avoids
ldfgrowth stalls. - Disable Windows Search indexer on the project and IM folders:
right-click > Properties > Advanced > "Allow files in this folder to have indexed contents" unchecked. - Reserve at least 8 GB free space on the drive hosting
%ProgramData%\Siemens; SQL Express enforces a 10 GB per-database cap and a corrupted write near the cap will lock the segment.
10. When to Escalate to Siemens Support
Open a ticket via Siemens Industry Online Support (product: "SIMATIC WinCC Runtime Professional") and attach the following before sending:
-
WinCCDiag.xmlfromC:\Program Files\Siemens\Automation\WinCC RT Professional\Diag(or WinCC > Help > Save diagnostic files). - Application and System event logs filtered by source CCEServer, SQLSERVER (instance
WINCCPLUS), and WinCC TagLogging. - Screenshots of the freeze and the
IMfolder contents. - The TIA Portal project archive (
.ap17) with the password set if WinCC User Administrator is configured. - Output of
SELECT @@VERSIONagainst theWINCCPLUSinstance and a screenshot of the installed TIA V17 build number.
FAQ
Why does WinCC Professional V17 RT freeze exactly at 60%?
The 60% milestone corresponds to the start-up of the tag logging subsystem opening the IM (InMemory) database segment on the WINCCPLUS SQL instance. A freeze here typically indicates a corrupted IM folder, a SQL transaction log lock (error 9001 / 945), or a Windows background process holding the segment file.
Where is the WinCC RT IM folder located?
For WinCC RT Professional, the IM folder lives at %ProgramData%\Siemens\Automation\WinCC RT Professional\<ProjectName>\IM. Deleting this folder and recompiling forces the runtime to recreate the segment files on the next start, which clears most 60% freezes.
Does the WinCC_Reset.vbs script require a reboot?
Yes. The script modifies DCOM/COM+ permissions and several registry keys that are only read at boot. After running WinCC_Reset.vbs as administrator, restart the workstation before attempting to start WinCC RT again.
Which TIA V17 update resolves the tag logging freeze?
Siemens recommends TIA Portal V17 Update 8 (build 17.0.0.8) or later. Earlier updates (Update 1 through Update 7) shipped incremental fixes to the TagLogging start-up race condition; Update 8 consolidates them. Download from the Siemens Industry Online Support portal.
Can a 60% freeze be caused by antivirus software?
Yes. Real-time scanning of *.ldf and *.mdf files inside the IM folder is a documented trigger. Exclude %ProgramData%\Siemens\Automation and the SQL Express data directory from the antivirus real-time scan, and exclude the extensions *.ldf, *.mdf, *.log while WinCC RT is active.