Cicode Programming Reference > Cicode Function Categories > Alarm Functions Introduction > AlarmActive

AlarmActive

Determines if any alarms are active in the user's area. Call this function from the Page Strings database, to display an alarm message at a specified AN on a graphics page. You can specify the type of alarms, for example, active hardware alarms or disabled non-hardware alarms.

Syntax

AlarmActive(Type [, ClusterName] )

Type:

The type of alarms to check:

Non-hardware alarms

0 - Active alarms

1 - Unacknowledged alarms, ON and OFF

2 - Highest priority unacknowledged alarm

3 - Disabled alarms

Hardware alarms

5 - Active alarms

6 - Unacknowledged alarms, ON and OFF

ClusterName:

The name of the cluster to check for active alarms. If this argument is blank or empty, the function will check the connected clusters.

Return Value

Example

Strings

AN

9

Expression

AlarmActive(5)

True Text

"Hardware Alarms Active"

False Text

"No Active Hardware Alarms"

Comment

Display the alarm status at AN 9

See Also

Alarm Functions