1. Problem Definition: WinCC Runtime Simulation Fails with OpenGL Exception
When launching the integrated WinCC Runtime Simulation from TIA Portal V14 SP1 (engineering frame version V14.0.1.0) on a Windows 10 (build 1607 or newer) or Windows 7 SP1 host, the HMI runtime starts, displays a black or gray window, and then immediately terminates with an OpenGL initialization exception. The reported behavior is consistent across both basic panels (KTP600 Basic, KTP1000 Basic, KTP1200 Basic) and comfort panels (TP700 Comfort, MP277) when the project targets an HMI image that requires 2D vector or 3D rendering.
The error dialog references a missing or unsupported OpenGL implementation. The exception is raised before any tag polling, screen fetch, or connection to PLCSim is established, which confirms the failure is local to the engineering workstation and not to the simulated S7-1200/S7-1500 controller.
Typical platform fingerprints where this issue has been reproduced in the field:
| Component | Configuration A (NVIDIA Optimus) | Configuration B (AMD Enduro) |
|---|---|---|
| Discrete GPU | NVIDIA GeForce GTX 960M (driver 21.21.13.7654 / 372.70) | AMD Radeon R5 M330 (driver 16.300.2501.0) |
| Integrated GPU | Intel HD Graphics 530 (driver 21.20.16.4550) | Intel HD Graphics 520 (driver 21.20.16.4542) |
| OS | Windows 10 Pro 64-bit (1607 / 1703) | Windows 7 Professional SP1 64-bit |
| .NET | 4.7 | 4.7 |
| TIA Portal | V14 SP1 Upd1 (build 14.0.1.2) | V14 SP1 Upd1 |
| Runtime target | KTP600 Basic firmware 12.0.0.0 | TP700 Comfort firmware 14.0.0.0 |
The same error appears when the project is hosted inside a VMware Workstation/ESXi guest, where the virtual display adapter reports a generic Microsoft Basic Render Driver that lacks hardware-accelerated OpenGL.
2. Root Cause Analysis
The OpenGL initialization failure is caused by a mismatch between the minimum OpenGL capability required by the WinCC RT simulation DLL (CCRtSim.exe) and the runtime capability exposed by the active graphics adapter. WinCC V14 RT uses the ANGLE layer (libGLESv2.dll) on top of Direct3D 11 for shader translation, but it still queries the underlying driver for an OpenGL 4.0 context with the following mandatory extensions:
WGL_ARB_create_contextWGL_ARB_pixel_formatGL_ARB_framebuffer_objectGL_EXT_framebuffer_sRGB
Three independent failure paths have been confirmed against the engineering workstation:
- Hybrid graphics driver deselection: On NVIDIA Optimus and AMD Enduro laptops, Windows defaults the WinCC simulation executable to the integrated Intel GPU. The shipped Intel HD 530/520 driver on Windows 10 build 1607 only exposes OpenGL 4.0 with a software fallback for the framebuffer object extension, which WinCC rejects. NVIDIA's discrete GPU is never consulted, even when the user changes the global default GPU.
-
Stalled driver rollback: Rolling the NVIDIA driver to a legacy version removes the OpenGL ICD (Installable Client Driver) registration. The Microsoft OpenGL fallback (
opengl32.dll) wraps Direct3D 9 and only exposes OpenGL 1.4, which is below the required 2.1 floor. -
VMware 3D acceleration disabled: The virtual SVGA II/3D adapter reports OpenGL not supported unless the VM is configured with
mks.enable3d = TRUE
3. Diagnostic Procedure
Before applying any fix, capture the exact OpenGL capabilities reported by the active adapter. Use the toolset below to record the baseline:
- Download and launch GPU Caps Viewer (OpenGL renderer information utility) on the engineering host.
- Open the OpenGL tab and record: Renderer string, Vendor string, OpenGL version, GLSL version, and the list of supported extensions.
- Open the Display tab and note which GPU is marked as active for the current desktop session.
- Inside TIA Portal, right-click the HMI device and select Start runtime. While the runtime window is open (before it crashes), re-open GPU Caps Viewer and verify whether
CCRtSim.exeis bound to the discrete NVIDIA/AMD adapter or the Intel HD adapter. Use the Processes tab. - If the binding is on the Intel HD adapter, the failure is path (1) above. If GPU Caps Viewer reports an OpenGL version below 2.1, the failure is path (2). If the host is a VMware guest, the failure is path (3).
Cross-reference the captured values with the following table:
| Captured Value | Expected for WinCC V14 RT | Failure Path |
|---|---|---|
| OpenGL version | 4.0 or higher | Driver rollback / VMware |
| Active GPU for CCRtSim.exe | NVIDIA or AMD discrete | Optimus / Enduro default |
| WGL_ARB_create_context | Present | Legacy driver / Basic Render Driver |
| Renderer string contains "Intel" | Must NOT be primary | Hybrid graphics misrouting |
4. Solution A: Force Discrete GPU on Hybrid-Graphics Laptops
Windows 10 per-application GPU selection must be configured at the executable level, not the global default level. Perform the following steps on a clean user profile:
- Close TIA Portal V14 SP1 completely, including the tray-resident
S7Help.exeandCCAgent.exeservices. - Open NVIDIA Control Panel (right-click desktop → NVIDIA Control Panel). Navigate to Manage 3D settings → Program Settings.
- Click Add and browse to
C:\Program Files\Siemens\Automation\WinCC RT V14\Bin\CCRtSim.exe. If the runtime is installed under a custom path, locate the matchingCCRtSim.exefrom the TIA Portal installation medium. - Set Select the preferred graphics processor for this program to High-performance NVIDIA processor.
- Click Apply and exit NVIDIA Control Panel.
- Repeat the same procedure for the TIA Portal main executable
TIA_Portal.exelocated in...\Siemens\Automation\Portal V14\Bin. Some screen editor operations are also OpenGL-accelerated.
For AMD Enduro systems, use AMD Radeon Settings → Switchable Graphics → Graphics Profiles and assign High Performance to both CCRtSim.exe and TIA_Portal.exe.
5. Solution B: Repair the OpenGL ICD Registration
If a driver rollback removed the OpenGL ICD entry, the Microsoft GDI Generic driver takes over and exposes only OpenGL 1.4. Repair by reinstalling the discrete GPU driver with the clean-install option:
- Download the latest WHQL-certified driver for the discrete GPU from the manufacturer support portal. For GTX 960M, use NVIDIA driver 372.70 or later from the NVIDIA driver download page. For AMD R5 M330, use AMD Radeon Software 16.300.2501.0 or later.
- Run the installer with administrator privileges and select Clean Installation (NVIDIA) or Factory Reset (AMD).
- Reboot the workstation before launching TIA Portal.
- Verify the ICD registration in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers. TheR9(Radeon 9xxx+) andR16values must reference the manufacturer OpenGL ICD, not the Microsoft default. - Confirm with GPU Caps Viewer that OpenGL version is now 4.5 or higher and that the extensions listed in Section 2 are reported as present.
If the registry entries remain pointed at the Microsoft default after the clean install, manually reinstall the OpenGL component by running pnputil /scan-devices followed by pnputil /enable-device on the display adapter instance ID.
6. Solution C: VMware 3D Acceleration Workaround
When TIA Portal V14 SP1 is hosted inside a VMware Workstation 12.x or ESXi 6.0 guest, the WinCC runtime requires the virtual display adapter to expose hardware-accelerated OpenGL. Apply the following VMX configuration changes to the guest's .vmx file (power off the VM first):p>
- Add or update the following keys:
mks.enable3d = "TRUE" mks.glMode = "auto" vga.enable3d = "TRUE" svga.vramSize = "268435456" - Inside the guest, install the latest VMware Tools (build 12.0.0 or later). The Tools bundle contains the
vm3dgl.dllOpenGL ICD required by the guest. - Set the host-side 3D graphics memory to at least 256 MB through VMware Workstation → Settings → Display → 3D Graphics.
- Reboot the guest and verify in GPU Caps Viewer that the renderer string now reports
VMware SVGA 3Dand OpenGL version 3.3 or higher.
7. Solution D: Update Intel HD Graphics Driver (Last-Resort Path)
If the workstation must run the simulation on the integrated Intel HD adapter alone (no discrete GPU available, such as a docking-station scenario), install the latest Intel generic graphics driver:
- For Intel HD 530 (Skylake), use driver 21.20.16.4550 or later from the Intel Download Center, filtering for 6th generation Intel Core processors.
- For Intel HD 520 (Skylake-U), use the same driver family, matching the device ID reported by Windows Device Manager.
- After installation, set OpenGL performance mode to Maximum Performance in the Intel HD Graphics Control Panel → 3D settings.
- Disable any active power-saving scheme that down-clocks the iGPU during simulation. Use the Windows High Performance power plan.
8. Verification Procedure
After applying any of the solutions above, validate that WinCC RT simulation starts cleanly:
- Open TIA Portal V14 SP1 and load the project that previously failed.
- Right-click the HMI device (for example, KTP600 Basic, firmware 12.0.0.0) and select Start runtime.
- Confirm the runtime window opens within 5 seconds, displays the configured start screen, and remains stable for at least 60 seconds without an OpenGL exception dialog.
- Force a screen change by clicking a configured button with a screen-change event. Confirm the transition renders without graphical artifacts.
- Open Task Manager → Details and verify
CCRtSim.exeis bound to the discrete GPU. On Windows 10 build 1709 or later, the GPU Engine column reports which adapter is active per process. - Stop the runtime and re-launch a second time to confirm the fix persists across sessions.
9. Compatibility Matrix: Affected Versions and Fix Applicability
| Scenario | TIA Portal Version | Recommended Fix | Risk Level |
|---|---|---|---|
| Optimus laptop, default Intel | V14 SP1 / V14 SP1 Upd1 | Solution A | Low |
| AMD Enduro laptop, default Intel | V14 SP1 / V15 | Solution A (AMD profile) | Low |
| Rolled-back NVIDIA driver | Any V14 build | Solution B | Low |
| VMware Workstation guest | V14 SP1 / V15 | Solution C | Medium (V15+) |
| No discrete GPU, Intel only | V14 SP1 only | Solution D | Medium |
| Windows 10 1809 + V14 SP1 | V14 SP1 | Solution A + Update 2 | Low |
If the simulation still fails after applying Solutions A–D on TIA Portal V14 SP1, escalate the case through the official Siemens Industry Online Support service request system. Attach the TIA Portal installation log (%LOCALAPPDATA%\Siemens\AutomationLog), the GPU Caps Viewer report, and the active Windows event log entry for the Application Error source.
Which Siemens HMI panels are affected by the TIA Portal V14 SP1 OpenGL error?
All WinCC V14 RT simulation targets are affected when the host GPU cannot expose OpenGL 4.0 or higher. Field reports most often reference the KTP600 Basic, KTP1000 Basic, KTP1200 Basic (Basic Panels 2nd Generation) and the TP700 Comfort panel running firmware 12.0.0.0 and 14.0.0.0 respectively.
Does the OpenGL error occur in VMware Workstation with TIA Portal V14 SP1?
Yes. The VMware SVGA II adapter disables 3D acceleration by default, which exposes only the Microsoft Basic Render Driver (OpenGL 1.4). Enable 3D acceleration in the .vmx file (mks.enable3d = TRUE) and install the matching VMware Tools to resolve the error.
Can the Intel HD 530 or HD 520 integrated GPU run WinCC V14 RT simulation alone?
Only with the latest Intel generic graphics driver (21.20.16.4550 or later), the High Performance power plan, and maximum 3D performance mode enabled in the Intel HD Graphics Control Panel. Comfortable operation still requires a discrete GPU.
Why does the OpenGL error return after rolling back the NVIDIA driver?
Rolling back the NVIDIA driver removes the OpenGL Installable Client Driver registration from the Windows registry. The Microsoft GDI Generic fallback only exposes OpenGL 1.4, which is below the WinCC V14 RT minimum of OpenGL 2.1 with WGL_ARB_create_context support. Perform a clean install of the latest WHQL driver to restore the ICD.
Does the per-application GPU setting in Windows 10 Settings override the NVIDIA Control Panel?
No. On NVIDIA Optimus systems, the NVIDIA Control Panel profile always wins over the Windows 10 Settings → Display → Graphics settings preference. Always configure CCRtSim.exe and TIA_Portal.exe through NVIDIA Control Panel → Manage 3D settings → Program Settings for reliable results.