Clearing Alarms

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
kkwon2
Posts: 26
Joined: Thu Dec 13, 2012 2:07 pm

Clearing Alarms

Post by kkwon2 »

Hi,
Would like to use a tag to indicate clear all acknowledged inactive alarms.
When that tag is set, all acknowledged inactive alarms are removed from the alarm window; would like this to be automatic without the operator having to press a Clear button.

Is there a way to programmatically clear individual alarms when they are acknowledged and inactive?

User avatar
Chris T.
Posts: 109
Joined: Mon Nov 20, 2017 5:29 pm

Re: Clearing Alarms

Post by Chris T. »

kkwon2,

This can definitely be done. I am attaching a zip file of a project that will show you how to accomplish this. But here is the scripting that makes it tick.

********NOTE********
This script must

Acknowledge_1 and Acknowledge_All are tags i generated and can be renamed to tags that suits you.

Default_AlarmItem0 is a combination of Alarm server and the specific Alarm item so (Alarmserver)_(AlarmItem) this name may need to be modified to suit your needs.

Make sure that the Globals.AlarmServer.Default.Acknowledge(); is modified to change the alarm server name (if necessary from default)

*******End Note********

void Acknowledge_1_ValueChange(System.Object sender, Neo.ApplicationFramework.Interfaces.Events.ValueChangedEventArgs e)
{
if (Globals.Tags.Acknowledge_1.Value==1)
{
Globals.AlarmServer.Default_AlarmItem0.Acknowledge();
}
}

void Acknowledge_All_ValueChange(System.Object sender, Neo.ApplicationFramework.Interfaces.Events.ValueChangedEventArgs e)
{
if (Globals.Tags.Acknowledge_All.Value==1)
{

Globals.AlarmServer.Default.Acknowledge();
}
}
Attachments
Ack_Alm_Tag.zip
(37.78 KiB) Downloaded 610 times
Best regards,
Christopher
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply