Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

AlarmDisable

  • Last UpdatedSep 09, 2025
  • 3 minute read

Disables alarms. You can disable the alarm where the cursor is positioned, one or more alarm lists on the active page, a whole category of alarms, or alarms of a particular priority.

You would normally call this function from a keyboard command. No action is taken if the alarms are already disabled. Use the AlarmEnable function to re-enable an alarm.

After you disable an alarm, the behavior is determined by the [Alarm]DisplayDisable parameter for your system to choose between taking the alarm off scan or suppressing it from the active alarm display.

If this function is not called from a foreground task, it becomes a blocking function.

Syntax

INT AlarmDisable(INT Mode, INT Value [, STRING ClusterName [, INT EndTime [, STRING Comment]]] )

Mode:

The type of disable:

0 - Disable a single alarm.

• Set Value to the AN where the alarm is displayed.

• Set Value to 0 to disable the alarm at the current cursor position.

1 - Disable a page of alarms. An alarm page can contain more than one alarm list:

• Set Value to the AN where the alarm list is displayed.

• Set Value to 0 to disable the (displayed) alarm list (on the active page) where the cursor is positioned.

• Set Value to -1 to disable all (displayed) alarm lists on the active page. This only applies to alarm lists created using AlarmDsp (and not those created using AlarmDspLast).

2 - Disable a category of alarms.

• Set Value to the alarm category (0-16375) of the alarms to be disabled. Please be aware that alarm category 0 indicates all categories; alarm category 255 indicates hardware alarms.

• Set Value to the group handle to disable a group of categories.

3 - Disable alarms of a specific priority.

Hardware alarms are not affected by priority.

• Set Value to the alarm priority (0-255) of the alarms to be disabled. Alarm priority 0 indicates all priorities.

• Set Value to the group handle to disable a group of alarms of different priorities.

Value:

Used to specify which alarms to disable.

ClusterName:

Used with Mode 2 or 3 to specify the name of the cluster where the alarms being disabled reside in. This argument is optional if the client is connected to only one cluster containing an alarm server, or if the alarm server is resolved via the current cluster context.

This argument is not required where the Mode is 2 and the value is 255 (hardware alarm category).

This argument is enclosed in quotation marks "".

EndTime:

A date/time variable that indicates when the alarm will no longer be disabled. If this parameter is omitted or set to 0, the alarm will be disabled indefinitely.

Comment:

An optional comment limited to 200 characters explaining why the alarm is disabled. If the comment exceeds 200 characters, hardware error 274 ("Invalid argument passed") will be displayed.

Return Value

Alarm commands on single clusters will return either 0 if successful or an error code if unsuccessful.

Alarm commands across multiple clusters may also return a partial success result, whereby a command has been successful on 'at least' one cluster but unsuccessful on another cluster.

GrpOpen, AlarmDisableRec, AlarmDisableTag, AlarmEnable, AlarmAck, AlarmClear

Examples

// Disable the alarm where the cursor is positioned
AlarmDisable(0, 0);

// Disable a page of alarms
AlarmDisable(1, -1);

// Disable category 3 alarms in cluster XYZ
AlarmDisable(2, 3, "XYZ");

// Disable the alarm where the cursor is positioned for the next 60 minutes
nEndTime = DateAdd(TimeCurrent(), 3600);
AlarmDisable(0, 0, "Cluster1", nEndTime, "Shelve alarm for 60 minutes.");

// Disable a page of alarms until 20 Dec 2016 6:30am local time
nEndTime = DateAdd(StrToDate("20/12/2016"), StrToTime("6:30"));
AlarmDisable(1, -1, "Cluster1", nEndTime, "Shelve alarms until 20 Dec 2016 6:30am");

See Also

Alarm Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in