Code an Alarm Banner Script
When you have displayed the Global Script Editor, you can use it to code a new Alarm Banner script or edit an existing Alarm Banner script. When you code an Alarm Banner script, you can use the script’s context swensitive menu to access useful features in the same way as when coding a Mimic script (see Using a Script’s Context Sensitive Menu).
To code an Alarm Banner script, you need to have an in-depth knowledge of VBScript. You also need an appreciation of the ClearSCADA-specific functions and properties that are available for use in your Alarm Banner scripts.
ClearSCADA provides a range of functions and properties that you can use in your Alarm Banner scripts. These ClearSCADA-specific functions and properties derive from ClearSCADA Script Objects, which include:
- Application objects
- Menu objects
- Form objects (some of the Form functions and properties return another type of object called a ControlObject which also has its own functions and properties).
- Alarm Banner objects (these objects have functions and properties that are only available for use in Alarm Banner scripts).
- Server objects (some of the server functions and properties return another type of object called a ServerObject which also has its own functions and properties). With Alarm Banner scripts, you can only use Server and ServerObject functions and properties if you have used the Server property of an alarm in an alarm collection. (The alarms in an alarm collection have a Server property that returns a ServerObject).
NOTE: There is also a Mimic object, but it is only available for use with Mimic Scripts.
Collectively, the categories of script objects are sometimes referred to as global objects.
So, in your Alarm Banner scripts, you can use the following functions and properties:
- Global Functions. These are functions that are available for each type of script object.
- Application Functions and Properties
- Menu Functions
- Form and Control Object Functions and Properties
- Alarm Banner Functions and Properties
- Server and ServerObject Functions and Properties. These functions and properties are only available if you have used the Server property of an alarm in an alarm collection (the alarm collection is returned by the Alarms or SelectedAlarms properties of the AlarmBanner object, and each alarm in the collection has a Server property which returns a ServerObject).