the attribute _alert_hdl.._archive is not an attribute for an alert. It is only an attribute for the configuration of the _alert_hdl config.
If you want to get the historical alerts you have to use one of the attributes which are set when an alert is generated, e.g. _alert_hdl.._value.
In the "Reference tables" in the WinCC OA help you can see which attributes can be used at which command.
Also the usage of SELECT ALL ALERT is not necessery when reading alert information. If you want to get information for alerts you have to use SELECT ALERT.
Best Regards
Leopold Knipp
Senior Support Specialist
Alert system
- renelorenz
- Posts:8
- Joined: Fri Sep 04, 2015 11:01 am
Re: Alert system
another question regarding Alarms:
having to two "atime" variables of one alarm (came and gone time as a result of a dpQuery of _value parameter of alert_hdl), is there a possibility to calculate the duration between these two values? (in order to get the time duration when the alarm was "active").
In other words, is there a possibility of extracting "time" objects of the "atime" values and work with them?
having to two "atime" variables of one alarm (came and gone time as a result of a dpQuery of _value parameter of alert_hdl), is there a possibility to calculate the duration between these two values? (in order to get the time duration when the alarm was "active").
In other words, is there a possibility of extracting "time" objects of the "atime" values and work with them?
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Alert system
You can get the time out of a variable of type atime by writing the value to a variable of type time.
Best Regards
Leopold Knipp
Senior Support Specialist
Best Regards
Leopold Knipp
Senior Support Specialist
- renelorenz
- Posts:8
- Joined: Fri Sep 04, 2015 11:01 am
Re: Alert system
Easy and simple-many thanks! 
- a_labropoulos@akatt.gr
- Posts:25
- Joined: Sun Nov 06, 2016 2:02 pm
Re: Alert system
Hello!!
I wonder if there is any way to insert a time delay (for example 2 sec) to an _alert_hdl config. I need to raised the alert message if the condition persist for this time(2 sec).
I wonder if there is any way to insert a time delay (for example 2 sec) to an _alert_hdl config. I need to raised the alert message if the condition persist for this time(2 sec).
- rglock
- Posts:19
- Joined: Wed Sep 08, 2010 9:54 am
Re: Alert system
Hello,
currently there's no standard solution available for alarm delays. Some customers implemented own alert tables and filtered the alarms (to be shown) via scripts (oder databases behind), but the easiest way would be, not to let such "peak signals" coming inside (with the advantage, that the Event manager would not be stressed by "unnecessary" alarm updates), by using the smooth config at the Datapoint-Elements, where the signals/data are coming in. A possible smoothing type could be "increase-dependent". Details: WinCCOA help -> Module PARA -> Data point configs -> _smooth
best regards
Rainer
currently there's no standard solution available for alarm delays. Some customers implemented own alert tables and filtered the alarms (to be shown) via scripts (oder databases behind), but the easiest way would be, not to let such "peak signals" coming inside (with the advantage, that the Event manager would not be stressed by "unnecessary" alarm updates), by using the smooth config at the Datapoint-Elements, where the signals/data are coming in. A possible smoothing type could be "increase-dependent". Details: WinCCOA help -> Module PARA -> Data point configs -> _smooth
best regards
Rainer