Skip to main content

Creating an Alarm Class

In the section below, you configure an example alarm class PartsShortage in which all of its derived alarms inherit its properties. Triggered alarms of this class lead to the variable bPartsShortage being set to TRUE. If the Alarm Table visualization element is programmed, then the triggered alarms are highlighted in red and the unacknowledged alarms are highlighted in yellow.

  1. In the device tree, select the Alarm Configuration object.

  2. Click Project → Add Object → Alarm Class. For the example, specify the name PartsShortage.

    After it is added, the new alarm class PartsShortage is displayed in the device tree. The object opens in the editor.

  3. . Set the following parameters for the class:
    • Priority: 10

    • _cds_icon_checked.png Archiving

      All alarms, for which this alarm class is set, are archived.

      Note: If you create an alarm group with alarms for which this alarm class is set, then you have to create and configure an object for the alarm storage for the archiving.

      At runtime, all state transitions of alarms of this alarm class are then permanently stored in a (SQLite) database. The database contents can simultaneously be displayed within an alarm table. The requirement is that the History control variable of the alarm table is set (TRUE).

    • Acknowledgement method: REP_ACK (alarm inactive after rectification of the cause and acknowledgment)

    • _cds_icon_checked.png Acknowledge separately

  4. In the following, you define that the variable bPartsShortage has the value TRUE when alarm messages occur: In the Notification Actions group, double-click in the Action column.

    Select the Variable action and press the Enter key.

    The action is inserted. All options are enabled.

  5. Leave the Activate option selected, and clear the Deactivation and Confirm options.

  6. Click in the Variable input field and specify bPartsShortage as the name or use the Input Assistant to select the variable.

    Specify the value TRUE in the field on the right.

    The statement bPartsShortage := TRUE is displayed in the Details column.

  7. In the Display Options group, in the Active row, select "Red" as the Background Color.

    In the Display Options for Alarm Table / Alarm banner group, in the Wait for confirmation row, select "Yellow" as the Background Color.