Geo SCADA Knowledge Base
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Link copied. Please paste this link to share this article on your social media post.
Originally published on Geo SCADA Knowledge Base by Anonymous user | June 10, 2021 03:15 AM
📖 Home Back
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
BuildAlarmMenu
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:
Function BuildAlarmMenu
If AlarmBanner.SelectedAlarms.Count > 1 Then
AlarmBanner.AddMenuItem "Response...","SetResponse"
End If
End Function
Function SetResponse
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
End Function
As follows:
Once saved, the
BuildAlarmMenu
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:
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.
Go: Home Back
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.