You can use the alarm table created in the following example to visualize the alarms of a specific alarm group.
Requirement: In your project, alarms are defined in alarm groups and they are assigned to an alarm class. The following instructions are based on the example that is described in the "Configuring Alarm Management" chapter.
-
Open the visualization editor.
-
Drag the “Alarm Table” element from the “Alarm Manager” group to the visualization editor.
The “Alarm Table” visualization element is visible in the editor.
-
In the “Alarm configuration” / “Alarm groups” property, define the alarm groups that you want to visualize. Click into the value field.
The “Select Alarm Group” dialog opens.
-
Clear the “All” option and select the “PartsShortage” alarm group. Click the
button to add the group to the selected alarm groups.
-
In the “Alarm configuration” / “Alarm classes” property, define the alarm classes that you want to visualize. Click into the value field.
The “Select Alarm Class” dialog opens.
-
Clear the “All” option and select the “PartsShortage” alarm class. Click the
button to add the alarm class to the selected alarm classes.
-
Add an additional column. Click the “Columns” / “Create new” button.
CODESYS adds the “[2]” column to the properties. The “Symbol” column is added to the table.
-
Select the “State” data type for column [2].
The default “State” column heading is shown in the table.
-
Name the “Column heading” column "Status".
-
Specify the appearance of the selected table cell. Set the “Selection” / “Selection color” property to “Green”.
-
In the “Control variables” / “Confirm selection” property, specify the variable
bQuitAlarmfor confirming messages. -
Adapt the other properties to their requirements. For a complete description of the properties, see the help for the “Alarm Table” visualization element.
-
Inserting elements for alarm acknowledgement