TagEnableAlarms Function

Help Contents


The TagEnableAlarms Function enables the alarms associated with an Alarm Tag.

The function disables alarms using the EnableAlarms Tag Command. Code execution is suspended until the tag command completes.

Functions and Function Blocks

The TagEnableAlarms Function is intended for use in an Operator Action. Operator Actions run in response to user input gestures in the Operator Interface. In an Operator Action, code execution is suspended until the function completes.

If you want to enable alarms from a Program Tag, running on the SCADA Server, use the TagEnableAlarmsFB Function Block.


Informal Syntax:

TagEnableAlarms( TagName )

Formal Syntax:

TagEnableAlarms( TagName:=Expression )


TagNameANY_STRINGThe full name of the tag.

The TagEnableAlarms Function sends the EnableAlarms Tag Command to the database tag.

The user must have the Enable Alarms privilege for the database tag.

Return Value


Further Information

EnableAlarms Tag Command

To learn about the EnableAlarms Tag Command.

TagEnableAlarmsFB Function Block

To learn how to enable alarms from a Program Tag.

Operator Actions

To learn where you can use this function.

Structured Text Function Call

To learn about calling a function from IEC 61131-3 structured text.

IEC 61131-3 Expressions

To learn about the different types of expression to use as function parameters.


For the meaning of terms used in Fernhill SCADA.