Citect SCADA allows you to add dynamic symbols to an alarms list that indicates the priority and state of an alarm.
To achieve this, you need to perform the following tasks.
The Genie requires a root level object named "Shape".
A small, simple shape that supports a fill color is recommended.
dspAnGetMetaData(dspGetAnCur(), "State")
6 = On and Unacknowledged
7 = Off and Unacknowledged
8 = On and Acknowledged
9 = Disabled/Shelved.
If required, you can configure flashing colors for a state via the Edit Favorite Colors Dialog Box, which is accessible via the Edit button on the drop-down Color Picker.
Note: Array colors 1 - 4 are reserved for use with the flag on an Alarm Indicator.
Alarm flag Genies use functionality provided by the Cicode function DspSym. You need to perform the remaining steps to enable DspSym support for the Genie.
On the File menu, select Properties.
Or:
Right-click on the Genie background and select Page Properties.
Note: When saving an alarm flag Genie, use a name that is unique across all included projects that share the same primary project.
To add a Priority and State column to an alarms list, you need to add the display field "{PriorityAndState}" to the alarm format used by the list.
For example, in a project created from a Situational Awareness Starter Project, the parameter [Format]FormatName is used as a project database parameter to define the following alarm formats:
Format Name |
Display Fields |
---|---|
Alarm |
{PriorityAndState,50}{Date,80}{Time,90}{Name,250}{Cluster,100}{State,40}{Type,70}{UserName,100}{Tag,250}{AlmComment,250}{Priority,60}{Quality,60} |
Top5Alarm | {PriorityAndState,24}{Date,90}{Time,90}{Name,220}{Desc,300}{State,50} |
SOE |
{PriorityAndState,50}{Date,160}{Time,160}{Tag,100}{Message,640}{State,160}{Classification,130}{UserName,160}{UserLocation,160} |
TopActiveAlarms_UHD4K |
{PriorityAndState,24}{Date,120}{Time,130}{Name,190}{Desc,180}{State,50} |
InfoAlarm_HD1080 |
{PriorityandState,24}{Time,90}{Item,160}{Name,180} |
This places the Priority and State symbol in the first column of these alarm lists.
You can edit the alarm formats for a Situational Awareness project in the Setup activity (see Project Database Parameters).
For other projects, see Format an Alarm Display.
A default set of priority and state symbols are provided in the SA_Include project in a library called "sa_priorities". They represent the top three alarm priorities, and are named as follows:
See Also
Published June 2018