Get all pending alarms

Find and share HowTos to various installations / configurations!
Search

Post Reply
7 posts • Page 1 of 1
aleksandar.postolov
Posts: 19
Joined: Thu Sep 05, 2013 3:51 pm

Get all pending alarms

Post by aleksandar.postolov »

What's the query like, to get all pending alarms? it doesn't matter if they are acknowledged or not.
Or is there a function which can be used?

Best regards
aleks

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Get all pending alarms

Post by leoknipp »

With the function dpQuery("SELECT ALERT ....); you can get all pending alerts based on the definition of the query string.

Best Regards
Leopold Knipp
Senior Support Specialist

aleksandar.postolov
Posts: 19
Joined: Thu Sep 05, 2013 3:51 pm

Re: Get all pending alarms

Post by aleksandar.postolov »

Thank you for you reply!

I already tried with SELECT ALERT. But wich statement should I use?
If I use the following query, I recive more alarms, than there should be.

dpQuery("SELECT ALERT '_alert_hdl.._value FROM *.in.*.value)

best regards
Aleks

aleksandar.postolov
Posts: 19
Joined: Thu Sep 05, 2013 3:51 pm

Re: Get all pending alarms

Post by aleksandar.postolov »

I found the solution. I need to add a WHERE to filter alarms and events.
SELECT ALERT '_alert_hdl.._prior' FROM '*.in.*.value' WHERE '_alert_hdl.._prior' > 5 AND _DP NOT LIKE "_rm*"

Thank you for the hint
Aleks

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Get all pending alarms

Post by leoknipp »

Just for clarification (for other users in the WinCC OA forum) in WinCC OA the name "event" is used for a value change (_original config).
The Event Screen is displaying value changes = events.
The Alert Screen is displaying alarms/alerts.

In this special cases the customer has used the name "event" for an alarm with low priority.

Best Regards
Leopold Knipp
Senior Support Specialist

YedilethContreras
Posts: 6
Joined: Thu Sep 03, 2020 7:28 am

Re: Get all pending alarms

Post by YedilethContreras »

Hi,

Is it posible to join events (Value changes) and alerts (Alarms/Alerts) in an unique list/table?
I would like to unify the info columns shown and, to join events and alerts in the same list.
Regards,

Yedi

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Get all pending alarms

Post by leoknipp »

There is no standard solution available to display alerts and events in one table.
You can build a solution on your own. You have to take into account that alerts and events have different attributes and you will have to use 2 query connect functions to get all the data.

Best Regards
Leopold Knipp
Senior Support Specialist

Post Reply
7 posts • Page 1 of 1