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.
In the device tree, select the Alarm Configuration object.
Click
. For the example, specify the namePartsShortage
.After it is added, the new alarm class
PartsShortage
is displayed in the device tree. The object opens in the editor.- . Set the following parameters for the class:
Priority: 10
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)Acknowledge separately
In the following, you define that the variable
bPartsShortage
has the valueTRUE
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.
Leave the Activate option selected, and clear the Deactivation and Confirm options.
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.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.