Delayed alarm

JavaScript for SCADA

Delayed alarm

Postby HIAJHI » Wed Apr 11, 2012 4:04 am

Hi,

what would be the best way to create delayed alarms (alarm bit sets if input is triggered an set for 30sec)?
I tried to use a script setTimeout/clearTimeout but could not get it run...

Thanks,


HIAJHI
HIAJHI
 

Re: Delayed alarm

Postby KOL » Sat Apr 14, 2012 5:33 am

Will dead-band for Time Delay solve your problem? Choose Deadband type: Time Delay for 30 seconds.
KOL
 

Re: Delayed alarm

Postby HIAJHI » Mon Apr 16, 2012 12:19 pm

Hi,

deadband/time delay does not solve it when I want to forward the alarm to a PLC. Or is there a way to get the alarm status and write it into a virtual tag?

-HIAJHI-
HIAJHI
 

Re: Delayed alarm

Postby KOL » Tue Apr 17, 2012 6:13 am

Hi,

Each alarm entry will have its status tag in build 3.71.4220, for instance, an entry of "abc" will produce a system tag called "app.alarm.GroupName.abc.status". It's not shown in watch list but you can use it in your script.

Be warned that this is not officially supported yet. As it's in trial stage, and the naming format may be changed to "app.alarm[GroupName.AlarmName].status" in the next release.
KOL
 

Re: Delayed alarm

Postby HIAJHI » Thu Apr 19, 2012 12:59 pm

That would be exactly what I'm looking for.

Thanks
HIAJHI
 


Return to Script /Logic



cron