$NewAlarm System Tag
- Last UpdatedJun 20, 2024
- 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 selects 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 selects the button.
Ack $System;
$NewAlarm=0;
HideSelf;
When the operator selects on the button, all alarms are acknowledged, the $NewAlarm system tag is reset to 0, and the alarm acknowledgement window is hidden from view.