Alert with time hysteresis

Discussion about recent product features & solutions!
10 posts • Page 1 of 1
riccardo.crociani
Posts:34
Joined: Tue Mar 31, 2015 12:52 pm

Alert with time hysteresis

Post by riccardo.crociani »

Hi,
is there a way to implement a time filter on a datapoint with alert handler in WinCC OA 3.11 ?

For some data points we would like to see the alarm in the alarm page only if the alert condition last more then a x minute.

I know we can do it by a control script (enabling and disabling the alert handler), but we would like to do it in a smarter way.

Unfortunately I haven't found a built-in function to do it :( .

Does exists this functionality in the more recent versions of WinCC OA ?

Thanks

Riccardo

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: Alert with time hysteresis

Post by fmulder »

There is no standard mechanism. Although this is something that I've thought of and heard of many times. You'd have to script something.

The lab section has a document 'XFile - The Discrete'. It shows you how a discrete alarm works. You might try this. You could have a script that is connected to the boolean value of your alarm. When the alarm comes high, then your sript records the timestamp. After x minutes you can set the userbit that will actually 'activate' the alarm.

So in generel, you could use the userbits to :
- Enable/disable an alarm
- escalate an alarm
- Implement a delay

It'll be an interesting scripting job. Good luck !

riccardo.crociani
Posts:34
Joined: Tue Mar 31, 2015 12:52 pm

Re: Alert with time hysteresis

Post by riccardo.crociani »

Hi Frenk,

yes I've thought about a script with the functionality you described. Maybe I will have to implement it in the next future...

Thanks for the reply.
Bye

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Alert with time hysteresis

Post by Gertjan van Schijndel »

You could give the alert hdl a high '_min_prio' and lower it after a delay to activate the alert. The '_min_prio' does work with more alert types, then only a discrete alert.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Alert with time hysteresis

Post by leoknipp »

Hello,

there is no standard functionality available to raise an alert only if the alert condition is met for a given time.

for a customer/project a solution was implemented with 2 datapoint elements (for every alert) and script functionality.
If the value is received a timer is started and after the given time another dp-element is set if the value is still in the alert range. The additional dp-element has the _alert_hdl-config.

Best Regards
Leopold Knipp
Senior Support Specialist

ewoenne
Posts:62
Joined: Thu May 12, 2016 10:35 am

Re: Alert with time hysteresis

Post by ewoenne »

Hi Leopold,

Could you give some more details on the timers for that solution? We are looking to implement something similar and I'm unsure of the best way to script timers for all the alarms.

Thanks,
Ellen

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Alert with time hysteresis

Post by leoknipp »

Hello,

I do not know the implementation in detail.
The solution was made only for a few dp elements and not for all dp elements which have an _alert_hdl config.

You can write a function which checks in a defined interval (e.g. every 10 seconds) if the dp-element still has a value in the given alert range.
The list of dp-elements and their values is stored in a script global variable. The list is updated when a dp-element is set, e.g. with a dpQueryConnectSingle() function.

Best Regards
Leopold Knipp
Senior Support Specialist

AMRPatricio
Posts:61
Joined: Mon Dec 12, 2016 4:43 pm

Re: Alert with time hysteresis

Post by AMRPatricio »

Hi All,
is the solution described here still the best approach?

Regards,
Antonio

riccardo.crociani
Posts:34
Joined: Tue Mar 31, 2015 12:52 pm

Re: Alert with time hysteresis

Post by riccardo.crociani »

Hi,

afterall we decided to put the logic directly inside our devices on the field. So that we don't have dependecies from a ctrl script
Moreover in our case to duplicate all the DPEs whit alert handling would be not a good solution.

I think another approch could be a script that activates the alert handler config of the DPE only if its value remains over/below the threshold for a timeout.

Regards,
Riccardo

ewoenne
Posts:62
Joined: Thu May 12, 2016 10:35 am

Re: Alert with time hysteresis

Post by ewoenne »

Hi,
We ended up creating an alarm delay script which is initiated for each alarm with a delay. There are 2 data points associated with the script, the raw value and the delayed alarm which has the _alert_hdl config.

10 posts • Page 1 of 1