Configuring WinCC OPC A&E Server and Custom Event Attribute Mapping
When a third-party OPC client receives process tags via OPC DA but fails to receive alarm events from the WinCC OPC Alarms and Events (A&E) Server, the issue is caused by missing SIMATIC WinCC/Connectivity Pack licensing, restrictive DCOM access permissions, or unconfigured event subscription filters. Furthermore, the standard OPC A&E event structure populates szSource with the computer/area name and szMessage with the block instance rather than the compiled PCS 7 alarm text. The full descriptive alarm text, event state, and operational attributes reside within WinCC's Vendor-Specific Custom Event Attributes, requiring third-party clients to query QueryEventAttributes to extract complete diagnostic records.
Table of Contents
- WinCC OPC A&E Server Architecture and Licensing
- Resolving Alarm Transmission Failures to Third-Party Clients
- Understanding Standard Fields vs Custom Event Attributes
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
WinCC OPC A&E Server Architecture and Licensing
The WinCC OPC A&E Server (OPCServer.WinCC-AE) is a standardized COM/DCOM service that exposes real-time process alarms, operator actions, and system events to external supervisory systems (e.g., enterprise alarm historians, paging systems, third-party SCADA).
Unlike OPC Data Access (DA) which is included with base WinCC runtime, OPC Alarms & Events requires the SIMATIC WinCC/Connectivity Pack license key. If the Connectivity Pack license is missing from Automation License Manager (ALM), the OPC A&E server rejects external client subscriptions or terminates after a demo timeout.
Resolving Alarm Transmission Failures to Third-Party Clients
To establish reliable alarm delivery to third-party clients (such as Matrikon OPC Explorer):
WinCC/Connectivity Pack license key to the OS server via ALM.OPCServer.WinCC-AE.dcomcnfg, grant Launch, Activation, and Access permissions to the client user account and the SIMATIC HMI group.Understanding Standard Fields vs Custom Event Attributes
Engineers frequently struggle with field mapping in WinCC OPC A&E. The classic OPC A&E specification defines fixed standard fields that do not naturally map to the rich multi-parameter structure of SIMATIC PCS 7 alarms:
Standard OPC A&E Fields:
- szSource: Displays the Event Provider / WinCC Area Name (e.g., 'localhost' or 'Area_1').
- szMessage: Displays the CFC Block Instance Name (e.g., 'Plant1/UnitA/TI_101/MonAnL').
- Severity: Displays numerical alarm priority (1 to 1000).
- Time: Event generation timestamp.
WinCC Custom Event Attributes (Vendor Specific):
The full descriptive message text configured in CFC/Alarm Logging is exposed via Custom Attributes:
- Attribute 1: Process Value at Alarm Time
- Attribute 2: Alarm Class (e.g., 'Alarm High', 'Warning')
- Attribute 3: Message Text / Event Description (The human-readable alarm message!)
- Attribute 4: Batch ID / Step Number
Third-party clients must call IOPCEventServer::QueryEventAttributes and request these custom attribute IDs to display the full descriptive alarm text alongside the block name.
Verification
To verify OPC A&E alarm delivery from WinCC:
- Open Matrikon OPC A&E Explorer on the client workstation.
- Connect to server
OPCServer.WinCC-AE(orOPCServer.WinCC-AE.1). - Create an active subscription for all event categories and check Select All Attributes.
- In PCS 7 CFC or WinCC Runtime, force a high-limit process alarm.
- Verify that the alarm arrives immediately in the client event window.
- Expand the event details: confirm that the custom attributes column displays the compiled PCS 7 alarm text.
Limitations and Operational Precautions
Operational boundaries for OPC A&E:
- OPC A&E is Event-Driven: OPC A&E does not continuously publish static alarms. Events are only transmitted when a state transition occurs (incoming, outgoing, acknowledged).
- DCOM Complexity: Connecting across workgroup boundaries requires identical Windows user accounts and passwords on both server and client machines, or deployment within an Active Directory domain.
- Modern Replacement: For modern DCS deployments, Siemens recommends migrating from classic COM-based OPC A&E to OPC UA (Alarms & Conditions).
Engineer FAQ
Why does WinCC OPC A&E szSource show 'localhost' instead of the PLC name?
By default, the WinCC OPC A&E server reports the local WinCC event provider station as the source. In PCS 7, the exact technological tag hierarchy is mapped into the message attributes.
How can a third-party client read the actual alarm message text?
The client must subscribe to the WinCC Vendor-Specific Custom Event Attributes. WinCC stores the formatted alarm description inside custom attribute fields rather than the standard szMessage field.
Does WinCC OPC A&E require a separate license?
Yes, accessing alarms and events via the WinCC OPC A&E Server requires the SIMATIC WinCC/Connectivity Pack software license installed on the OS Server.
Can OPC A&E acknowledge alarms remotely from the third-party client?
Yes. If the client account has operational rights, it can call the AckCondition() method on the OPC A&E server to acknowledge the alarm in WinCC Runtime.
Technical References
- Siemens SIMATIC HMI WinCC V7.4 Openness: Connectivity Pack Manual (A5E37536416)
- OPC Foundation: OPC Alarms and Events (A&E) Specification Version 1.10
- Siemens Industry Online Support Entry ID 38132261: WinCC OPC Integration Guide
Related Articles
- Interfacing SIMATIC PCS 7 AS 410 Controllers with Third-Party OPC DA Servers
- Selecting Between WinCC IndustrialDataBridge and Connectivity Pack for External SQL Export
- Purging and Managing Non-Acknowledgeable and Orphaned Alarms in SIMATIC PCS 7 OS Runtime
Related Tags
- OPC-A&E
- WinCC-Openness
- Connectivity-Pack
- Alarm-Logging
- Custom-Attributes
- DCOM