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?
Clearing Alarms
Re: Clearing Alarms
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();
}
}
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 609 times
Best regards,
Christopher
(801) 708-6690
Technical Support
Contact Us
Beijer Electronics AB
http://www.beijerelectronics.us
Christopher
(801) 708-6690
Technical Support
Contact Us
Beijer Electronics AB
http://www.beijerelectronics.us