Troubleshooting Unconnected OPC DA Tags ('???') Between Kepware and WinCC in PCS 7 V8.1
In SIMATIC PCS 7 V8.1 SP1 (WinCC V7.3), Kepware OPC DA tags showing '???' followed by blank fields indicate DCOM authentication denial, Windows Firewall dynamic port blocks, or missing user account parity between host machines. Resolve this by standardizing matching Windows local user credentials, configuring DCOM security permissions via dcomcnfg, enabling application rules in Windows Firewall, or migrating to modern OPC UA.
Table of Contents
- OPC DA Communication Failures and Diagnostic Indicators
- DCOM Security Architecture and PCS 7 V8.1 Hardening
- Step-by-Step DCOM and OPC Troubleshooting Workflow
- OPC DA vs OPC UA Architectural Comparison
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
OPC DA Communication Failures and Diagnostic Indicators
When integrating third-party systems (such as PLCs, weigh scales, or laboratory instruments) into SIMATIC PCS 7 V8.1 SP1 (WinCC V7.3) using Kepware (KEPServerEX) as a centralized OPC server on a separate PC, commissioning engineers frequently encounter communication failures:
* Tags are browsable in WinCC Tag Management under the OPC Channel.
* When WinCC Runtime starts, dynamic graphic displays show ??? on tag fields, followed after several seconds by blank values ().
* In the WinCC Channel Diagnosis tool (WinCCChannelDiagnosis.exe), the OPC connection status shows Disconnected or Connecting... with quality code 16#00 (Bad).
* The identical configuration functions without error on an older PCS 7 V8.0 workstation.
The initial appearance of ??? followed by blank fields indicates that WinCC attempted an initial synchronous read, failed to obtain data, and timed out. This symptom occurs because while the OPC Server allows tag browsing via the OPC Enum service, subsequent data streaming and asynchronous callbacks are blocked at the DCOM security or transport layer.
DCOM Security Architecture and PCS 7 V8.1 Hardening
The root cause of cross-workstation OPC DA communication failure in PCS 7 V8.1 stems from enhanced operating system and Siemens security hardening:
-
User Account and Security Identifier (SID) Mismatch:
* OPC DA (Data Access) relies entirely on Microsoft DCOM (Distributed Component Object Model).
* In a workgroup environment (non-domain), DCOM requires that the user logged into the WinCC client exists on the Kepware PC with the identical username and identical password.
* If credentials do not match, DCOM rejects incoming connection tokens withAccess Denied (HRESULT 0x80070005). -
DCOM Access, Launch, and Activation Limits:
* In PCS 7 V8.1, the Siemens Security Controller applies strict DCOM baseline templates.
* Remote activation of Kepware's COM object requires explicit permissions forANONYMOUS LOGON,Everyone, andInteractiveunder Machine Access Restrictions and Machine Launch Restrictions indcomcnfg. -
Dynamic RPC Port Dropping via Windows Firewall:
* DCOM establishes an initial handshake over TCP Port 135 (RPC Endpoint Mapper).
* The server then negotiates random high-numbered TCP ports (49152 to 65535) for data callbacks. If the Windows Firewall on either machine blocks dynamic ports or lacks application exceptions forserver_runtime.exe(Kepware) andCCClient.exe(WinCC), callback frames are silently dropped. -
OPC DA Callback Deadlocks:
* OPC DA 2.05a and 3.0 utilize bi-directional callbacks: the client calls the server, and the server initiates an independent TCP connection back to the client to push tag changes. If the client PC has a strict firewall, the callback cannot connect.
Step-by-Step DCOM and OPC Troubleshooting Workflow
1. Isolate the Fault Using a Third-Party OPC Client
- Download and run a standalone diagnostic client (such as Matrikon OPC Explorer or OPC Foundation Sample Client) directly on the WinCC workstation.
- Attempt to connect to the remote Kepware server.
- If the diagnostic client also displays connection failure, the issue resides entirely within Windows DCOM and network firewall configuration.
2. Harmonize Windows User Accounts
- Ensure both the Kepware machine and WinCC station have an identical local user account (e.g.
SimaticOperator). - Assign the identical password to both accounts.
- Add this user to the local Administrators and Distributed COM Users groups on both computers.
3. Configure DCOM Security Settings (dcomcnfg)
- On both the Kepware PC and WinCC PC, press Win + R, type
dcomcnfg, and press Enter. - Navigate to Component Services > Computers > My Computer.
- Right-click My Computer and select Properties.
- In the Default Properties tab:
* Verify Enable Distributed COM on this computer is checked.
* Set Default Authentication Level toConnect.
* Set Default Impersonation Level toIdentify. - In the COM Security tab:
* Under Access Permissions, click Edit Limits...: Grant Remote Access toANONYMOUS LOGON,Everyone, andInteractive.
* Under Launch and Activation Permissions, click Edit Limits...: Grant Remote Launch and Remote Activation toEveryoneandInteractive.
4. Configure Kepware DCOM Identity
- In
dcomcnfg, expand DCOM Config. - Locate KEPServerEX (or your specific Kepware version).
- Right-click, select Properties > Identity tab.
- Set Identity to The Interactive User (if running as a desktop app) or specify the dedicated shared service account.
5. Recommended Alternative: Migrate to OPC Unified Architecture (OPC UA)
To permanently eliminate DCOM complexity:
1. Enable the OPC UA Server interface inside Kepware (default port TCP 49320).
2. In WinCC Tag Management, add the OPC UA Channel (or use the OPC Channel configured for UA).
3. Connect using pure TCP/IP: opc.tcp://<Kepware-IP>:49320.
4. Exchange and trust digital certificates between WinCC and Kepware.
OPC DA vs OPC UA Architectural Comparison
opc.tcp://) or HTTPSVerification
- In WinCC Explorer, launch WinCC Channel Diagnosis (
Channel Diagnosis Control). - Open the OPC Channel tab; confirm the connection state displays
Connectedwith green checkmarks. - In WinCC Graphics Designer, launch Runtime.
- Verify that process variables from Kepware immediately display valid numerical values instead of
???or blank spaces. - Invert a test digital bit in Kepware; confirm the change updates on the WinCC screen in under 500 ms.
Limitations and Operational Precautions
- DCOM Hardening Vulnerability: Microsoft Windows cumulative security updates enforce DCOM hardening (KB5004442). Overly permissive DCOM settings (such as granting full access to
Everyone) violate industrial cybersecurity standards (IEC 62443). - Workgroup Security Fragility: Workgroup account synchronization breaks if password change policies are enforced on one machine and not the other. Domain environments are strongly recommended for multi-station architectures.
- Licensing Requirements: Ensure appropriate Kepware driver licenses and WinCC communication channel licenses are verified with authorized distributors.
Engineer FAQ
Why did the configuration work on PCS 7 V8.0 but fail on PCS 7 V8.1?
PCS 7 V8.1 introduces stricter Windows Firewall rules and Security Controller DCOM access restrictions that block remote unauthenticated callbacks by default.
What does quality code 16#00 mean in WinCC Tag Management?
16#00 represents 'Bad, Non-Specific'. It indicates the channel cannot establish communication with the OPC server or the server cannot poll the underlying device.
Can WinCC V7.3 act as an OPC UA client natively?
Yes, WinCC V7.3 / PCS 7 V8.1 includes native support for OPC UA Client connections in the WinCC communication channel suite.
Technical References
- SIMATIC Process Control System PCS 7 Compendium Part F - Industrial Security (V8.1)
- SIMATIC WinCC V7.3 Communication Manual - OPC Channel
- Kepware KEPServerEX DCOM Secure Configuration Guide
- Siemens Industry Online Support: DCOM Configuration for OPC DA (SIOS Entry ID 109483815)
Related Articles
- Configuring WinCC OPC UA Client Communication with Kepware
- Resolving DCOM Hardening Access Denied Errors in Industrial Networks
- Industrial Security Topologies for PCS 7 Plant Bus and Terminal Bus
Related Tags
- OPC DA
- Kepware
- DCOM
- WinCC V7.3
- PCS 7 V8.1
- OPC UA