WinCC Active Alarms Number / Unacknowledged Alarms Number
Recovering other pending practices from last year...
Sometimes we are interested in knowing if we have any alarms, or any unacknowledged alarms in our system without having to go to the Alarm control; this has been possible since version 6.2 with the following code shown below. For this, we will use two input/output fields, where we will associate the code where the tag we are interested in would go.
As can be seen, it is configured in Decimal format and in integer format.
The code must be in ANSI C and would be as follows:
We will also configure the Event to trigger our code cyclically every Image cycle, although we adapt it to our interest.
To know the Number of Unacknowledged Alarms, we proceed as before and the code is as follows.
Finally, we just need to put it in Runtime and check its functionality.
January 21, 2017
If you liked it or found it useful, share it...