$NewAlarm System Tag
- Last UpdatedNov 07, 2016
- 1 minute read
Set to 1 if a new alarm occurs in a running application. The $NewAlarm system tag is not set for remote alarms.
Syntax
$NewAlarm=value;
Data Type
Discrete (read/write)
Valid Values
0 or 1
Remarks
Associate the $NewAlarm system tag with an animation object in an application window. For example, associate the tag with an acknowledgment button that an operator clicks to reset the value of the tag to 0 and acknowledge the alarm. You can also link the $NewAlarm system tag to the PlaySound logic function to sound an audible warning when an alarm occurs.
Example
Add a button to an alarm acknowledgement window and attach the following action script that runs when the operator clicks the button.
Ack $System;
$NewAlarm=0;
HideSelf;
When the operator clicks on the button, all alarms are acknowledged, the $NewAlarm system tag is reset to 0, and the alarm acknowledgement window is hidden from view.