How to Repair Broken S7-PLCSIM and WinCC Graphics Designer After Windows .NET Updates

How to Repair Broken S7-PLCSIM and WinCC Graphics Designer After Windows .NET Updates

When SIMATIC PCS 7 V9.1 engineering tools suddenly fail on Windows 10 Enterprise LTSC following cumulative Windows or Microsoft .NET Framework updates—causing S7-PLCSIM to freeze, the AS-OS Compiler to crash with multiple errors, and WinCC Graphics Designer to fail with "STEP 7 Symbol Server" exceptions—the cause is corrupted Component Object Model (COM) registrations and broken .NET Framework interop bindings. Windows cumulative quality rollups frequently re-register core system runtime libraries, breaking the binary interop layer between STEP 7's 32-bit symbol servers, Microsoft SQL Server, and WinCC. To restore system stability, re-register the STEP 7 COM servers, repair the Siemens SQL Server instances, and apply the certified Siemens Compatibility Hotfixes.

Table of Contents

The Fragility of COM/.NET Interoperability in PCS 7 Engineering

The SIMATIC PCS 7 engineering suite is a complex ecosystem comprising dozens of interconnected software services:
- STEP 7 Core: Manages project databases, symbol tables, and CFC compilers via 32-bit COM/ActiveX components (s7hcfgx.exe, s7tgtopx.exe).
- WinCC Graphics Designer: Modernized with Microsoft .NET Framework controls, WPF elements, and dynamic tag browsing interfaces.
- The Symbol Server Bridge: When an engineer browses S7 variables inside WinCC or compiles the OS, WinCC queries the STEP 7 Symbol Server through a shared COM/DCOM interface.
- The .NET Impact: When Windows Update installs monthly cumulative updates (specifically updates targeting .NET Framework 4.8 or Windows Security baseline rollups), binary assembly registrations in the Windows Registry can be reset or redirected to unmanaged stubs, severing the interop bridge.

Symptoms of Update-Induced Component Breakdown

Following an unvetted Windows quality rollup on an engineering workstation:
1. S7-PLCSIM Unresponsive: Launching S7-PLCSIM causes the application window to open with an empty gray canvas and freeze ("Not Responding") before establishing loopback memory couplings.
2. AS-OS Compile Crashes: Executing Compile OS halts within seconds, generating hundreds of database access errors: Internal Error: Symbol Server cannot be initialized or Fatal error in s7ascom.dll.
3. Graphics Designer Tag Browsing Failure: In WinCC Graphics Designer, clicking the tag browser for dynamic dialogs hangs the editor or throws an unhandled exception: Error connecting to STEP 7 Symbol Server.

Root Causes: Symbol Server Disconnection and SQL Instance Lockup

Reinstalling PCS 7 over an existing broken installation frequently fails to resolve the issue because the underlying registry hooks and database services remain in an invalid state:
* Deregistered S7 Symbol Proxy: Windows Update replaces or overrides shared C++ runtime DLLs, unregistering the COM server s7ascomx.dll and s7wsvaps.dll.
* Corrupted Microsoft SQL Server User Instances: Cumulative security patches can alter local account security policies (e.g., NT AUTHORITY\SYSTEM or SIMATIC HMI group privileges), preventing the WinCC SQL Server instance (WINCC) from executing inter-process communication with STEP 7.
* Corrupted .NET Machine.Config: Windows updates often recreate machine.config in the Microsoft .NET directory, stripping Siemens-specific XML cryptographic bindings.

Method: Step-by-Step Restoration and Component Re-Registration

Follow this comprehensive repair procedure to restore all engineering components without reinstalling the entire operating system:

Step 1: Re-Register STEP 7 COM Components and Symbol Servers

  1. Close all Siemens software, SIMATIC Manager, PLCSIM, and WinCC.
  2. Open Windows Command Prompt as Administrator.
  3. Navigate to the STEP 7 binary installation directory:
    cmd cd /d "C:\Program Files (x86)\Siemens\Step7\S7BIN"
  4. Re-register the core symbol server and communication DLLs:
    cmd regsvr32.exe /s s7ascomx.dll regsvr32.exe /s s7wsvaps.dll regsvr32.exe /s s7tgtopx.dll regsvr32.exe /s s7wsvapx.dll
  5. Navigate to the shared Siemens common components directory:
    cmd cd /d "C:\Program Files (x86)\Common Files\Siemens\S7Common" regsvr32.exe /s s7otbxs.dll

Step 2: Reset and Repair WinCC Component Registrations

  1. In the elevated Command Prompt, execute the Siemens WinCC Component Cleaner:
    cmd CCCleaner
  2. Navigate to the WinCC binary directory:
    cmd cd /d "C:\Program Files (x86)\Siemens\WinCC\bin"
  3. Re-register the WinCC Project and Tag Management servers:
    cmd regsvr32.exe /s CCProjectMgr.dll regsvr32.exe /s CCTagServer.dll

Step 3: Repair Microsoft SQL Server (WINCC Instance)

  1. Open Windows Settings -> Apps & Features.
  2. Locate Microsoft SQL Server 2017 (64-bit) (or version installed with V9.1).
  3. Click Uninstall/Change, select Repair, and choose the WINCC instance.
  4. Allow the repair utility to verify file integrity and re-establish database service accounts.
  5. Restart the computer upon completion.

Step 4: Reinstall S7-PLCSIM Cleanly

If S7-PLCSIM still freezes after reboot:
1. Open Windows Control Panel and uninstall S7-PLCSIM.
2. Manually delete residual folders:
C:\Program Files (x86)\Siemens\PLCSIM
3. Mount the PCS 7 V9.1 installation ISO or driver media.
4. Run the installer and install S7-PLCSIM V5.4 SP8 fresh.
5. Restart Windows.

Verification

To verify that all engineering functions are restored:
- Open SIMATIC Manager and launch S7-PLCSIM: verify that the simulator opens within 3 seconds with CPU LEDs in STOP mode without freezing.
- Download a test S7 program into PLCSIM: verify that the CPU switches to RUN and executes cyclic logic.
- In SIMATIC Manager, select an OS project and execute Compile OS: confirm that compilation processes all tags, SFCs, and messages without symbol server warnings, finishing with 0 Errors.
- Open WinCC Graphics Designer: open any picture and click the dynamic tag browser: verify that the STEP 7 project tag hierarchy populates instantly.

Limitations and Operational Precautions

  • Disable Automatic Windows Updates: Industrial DCS engineering workstations must NEVER be configured for automatic, unmonitored Windows Updates. Enforce Group Policies (GPO) to disable Windows Update or manage rollups exclusively through a validated local Windows Server Update Services (WSUS) server.
  • Siemens Compatibility Tool: Before applying any monthly Windows quality update, consult the official Siemens Compatibility Tool for Automation and Drive Technology to confirm that the specific Microsoft KB patch is released and tested for PCS 7 V9.1.
  • System Image Backups: Always capture a full disk image backup (using tools like Acronis, Veeam, or SIMATIC IPC Image & Partition Creator) before applying any operating system update.

Engineer FAQ

Why did uninstalling and reinstalling PCS 7 fail to fix the problem?

Standard uninstallation routines leave behind user settings, shared system registry keys, and SQL Server instances. If the registry corruption occurred in shared COM interfaces, reinstalling PCS 7 simply binds back to the damaged keys.

Can I roll back the specific Windows Update that caused the crash?

Yes. Go to Settings -> Update & Security -> View update history -> Uninstall updates. Identify the cumulative quality rollup or .NET Framework update installed on the date the problem started and uninstall it.

Does this issue affect WinCC OS Runtime clients as well?

Typically no. OS Clients and dedicated OS Servers do not host the STEP 7 Symbol Server; they run WinCC Runtime purely against local SQL databases. This failure primarily cripples the Engineering Station (ES).

What is the purpose of CCCleaner?

CCCleaner.exe is an official Siemens utility located in the WinCC installation directory that safely terminates hung WinCC runtime processes, disconnects stranded SQL database locks, and cleans temporary IPC memory.

Technical References

  • Siemens Industry Online Support: SIOS Entry 109742323 (PCS 7 Compendium Part A - Operating System and Software Updates).
  • Siemens Compatibility Tool: Testing Operating System Updates with SIMATIC PCS 7.
  • SIOS Entry 109809264: SIMATIC Process Control System PCS 7 Released Modules and Patches.
  • Microsoft Developer Network: Troubleshooting COM Interop and Registry Registrations in 64-bit Windows.

Related Articles

Related Tags

  • Windows Updates
  • .NET Framework
  • S7-PLCSIM
  • WinCC
  • Symbol Server
  • Troubleshooting
  • Industrial Automation
20 respuestas