📖HomeBack ClearSCADA's Alarm Response functionality, which allows users to associate a text string with an alarm without affecting the state of that alarm, is limited to acting on a single alarm entry at a time. However, this can easily be extended via Global Script's
functionality to allow an Alarm Response to be configured for multiple alarms in a single action.
Global Script can be accessed via the Database Explorer's Root Group by a user with 'Configure' permission on the database.
Once the Global Script window is displayed, the following script can be used to add the new Response functionality:
If AlarmBanner.SelectedAlarms.Count > 1 Then AlarmBanner.AddMenuItem "Response...","SetResponse" End If End Function
Form.Init("Alarm Response") Set Description = Form.AddStaticText(1,1, "The following Response will be applied to all selected Alarms:") Set sAlarmResponse = Form.AddEditBox(1,3,60,1) Set bOK= Form.AddPushButton(30, 5, "OK") Set bCancel= Form.AddPushButton(47, 5, "Cancel") Form.Show
If Form.Selection = "OK" Then For each Alarm in AlarmBanner.SelectedAlarms Alarm.Object.Interface.SetAlarmResponse Alarm.Condition, sAlarmResponse Next End If
The Alarm Pick Menu
Once saved, the
Function is triggered when the Alarm Pick Menu is displayed from either the Alarm Banner or an Alarm List. The above script results in a new 'Response...' option appearing when multiple alarms are selected, as below:
The New Response Dialog
When the new Response... menu item is selected, the following Response dialog is displayed:
When the desired text is entered and OK is selected, this response will be applied to all selected alarms.