Object: Alarm Group Template

Symbol: _vis_icon_alarmgrouptemplate.png

A library developer can use this object to define alarm conditions with variables of a custom type (function block or structure). The data type can be part of a development library. The variables of the function block can be checked for alarm conditions.

The object can be added in the device tree, POU tree, or in libraries. A text list object with the same name is automatically created when it is added.

Dialog: Alarm Group Template

Text list

Name of the text list assigned to the alarm group template object

Default name: AlarmGroupTemplate

By default, the automatically generated text list is specified here. You can also specify another existing text list.

Deactivation

Variable (BOOL) to control the deactivation of all alarms in this group

Note: Deactivated alarms are not reported, even if the alarm condition is fulfilled.

Type for alarm definition

Interface variable for alarm definitions

inst : <type>

Type (function block or structure) of the alarm instance

The interface variable means that the variables of the custom type can be accessed and alarm conditions can then be defined.

Table 58. Table of alarms

You enter the properties of the individual alarms in the corresponding table columns. Depending on the selected monitoring type, input fields are provided below the table for additionally required parameters.

ID

Automatically assigned alarm ID

The ID is a combination of the instance name and the ID from the library.

Example: GVL.g_modul1Fan1

Function block FAN_ALARM_PRIO with the resulting alarm ID GVL_g_modul1Fan1_ID_FAN_ALARM_PRIO

Observation Type

Monitoring type from the list box

Depending on the type, different editing fields are available below the table in order to define the condition for the alarm.

The fields describe an expression for triggering the alarm.

Details

Shows the configuration settings (defined in the fields below the table) for the selected alarm type

You can also specify the condition directly into the field. If you input an expression that does not match the currently selected observation type, the type is automatically adapted.

Deactivation

Optional

Variable for deactivating the alarm

Class

Assigned alarm class

Example: AGL.ACL.Error

Message

Required

Entry of a message text which is displayed in the Alarm Table visualization element in the event of an alarm. The text is automatically managed in the text list of the alarm group.

You can extend the message with information from latch variables.

You can insert line breaks by pressing Ctrl+Enter.

The following placeholders are also supported.

<DATE>

Date of the change to the current status

<TIME>

Time of the last status change

<EXPRESSION>

Expression (defined within the alarm) that triggered the alarm

<PRIORITY>

Priority of the alarm (defined in the alarm class)

<TRIGGERVALUE> *

Value that caused the alarm condition to become true

<ALARMID>

Alarm ID as displayed in the first column of the alarm table

<CLASS>

Name of the alarm class (defined in the alarm)

<ALLDEFAULT>

Complete information about the alarm is output

<CURRENTVALUE> *

Actual value of the monitored variable

<LATCH1> *

Value of the first latch variable at the time when the alarm was triggered

Note: You can also use more than two latch variables. To do this, insert additional columns from the context menu.

<LATCH2> *

Value of the second latch variable at the time when the alarm was triggered.

<ALARM>

TRUE in the case of "Active" alarm status

FALSE for every other alarm status

<STATE>

Alarm status:

0 = "normal"

1 = "active"

2 = "waiting for ACK"

3 = "active, acknowledged"

* For <TRIGGERVALUE>, <CURRENTVALUE>, and <LATCHn>, you can also use formatting specifications such as those which are valid for the C-function printf.

Example: "The value is <CURRENTVALUE %d>".

By default, only one column is available for message text. You can add more columns from the context menu which will be available in the Data type property for column configuration of the Alarm Table and Alarm Banner visualization elements.

Min. Pend. Time:

Defines the minimum duration for fulfilling the alarm condition until the alarm is triggered.

This can be used to suppress alarm conditions which occur for only a short time.

IEC 61131-compliant format (example: t#2ms).

Latch Var 1

Reserved for instance name

The instance name is generated as a STRING in LatchVar1 so that the alarms can be assigned to an instance.

Latch Var 2

Another latch variable in order to record additional values when the alarm becomes active.

Data type: Scalar (8 bytes) or of type STRING or WSTRING

The latch variable or the latch expression is automatically recorded when the alarm is activated. This provides additional information about the alarm.

By default, columns are available for two latch variables. You can use commands in the context menu to insert more columns which will be available in the Data type property for column configuration of the Alarm Table and Alarm Banner visualization elements.

Higher Prio. Alarm

When the alarm is triggered, it can be acknowledged by triggering another alarm.

Example: A temperature monitor should issue a warning at > 60 °C and an error at > 90 °C. If the temperature rises, then the warning is displayed starting at 60 °C. As of 90° C, the alarm is triggered for the error. This alarm automatically acknowledges the 60° warning.


Table 59. Observations types

Digital

Expression: Expression to be observed. On the right side, the expression for the comparison. In the middle, you select the desired comparison operator (= or <>).

Upper limit1)

Expression: As described for Digital, but with the compare options > or >= and optionally a Hysteresis in %.

Lower limit1)

Expression: As described for Digital, but with the compare options < or <= and optionally a Hysteresis in %.

Inside range1)

Expression: Expression to be observed.

Range: triggers the alarm when the monitored expression is within the range defined here. The left field defines an expression for the lower limit of this range. The right field defines an expression for the upper limit. The expression to be monitored is displayed in the field in-between. You have to set the comparison operators accordingly. You can define a Hysteresis in % optionally.

Outside range1)

Expression: Expression to be observed.

Range: triggers the alarm when the monitored expression is outside the range defined here. The left field defines an expression for the lower limit of this range. The right field defines an expression for the upper limit. The expression to be monitored is displayed in the field in-between. You have to set the comparison operators accordingly. You can define a Hysteresis in % optionally.

Change

Expression: Expression to be observed. triggers the alarm when its value changes.

Event

In this case, the application triggers the alarm (event alarm) by using functions from the library AlarmManager.library.

1) For this observation type, you can monitor the specified expression as absolute or relative. Absolute means that the limit value is defined by a fixed value or a variable that returns a fixed value. Relative means that the limit value depends on an expression; for example: upper limit: Variable x >= 0.9 * y.

Hysteresis in %: When you specify a hysteresis, the alarm condition is fulfilled until a certain deviation from the specified limit value is reached. The size of the deviation is specified as a percentage [%] of the limit value. Example:

Upper limit: i_temp >= 30 Hysteresis: 10%. The alarm is active as soon as the variable i_temp reaches or exceeds the value 30. The alarm is no longer active if the value falls below 27.


The context menu includes the following commands for adding and removing additional columns for messages and latch variables:

  • _cds_icon_add_message_column.png Add message column

  • _cds_icon_remove_message_column.png Remove message column

  • _cds_icon_add_latch_variable_column.png Add latch var column

  • _cds_icon_remove_latch_variable_column.png Remove latch var column

[Tip] Tip

Multiple selected rows in the table can be edited at the same time by means of the context menu.

Exporting and importing of alarms

In the context menu of the alarm table you will find commands for the export and import of alarms to and from a CSV file:

  • _cds_icon_export_alarms.png Export Alarms: The command opens the default dialog for saving a file in the file system. The default file type is Alarm Group Export File (*.csv). This way you can export the current alarm list to a CSV file.

  • _cds_icon_import_alarms.png Import Alarms: The command opens the default dialog for searching for a file in the file system. The default file type is Alarm Group Export File (*.csv) for describing alarm definitions.