Creating an Alarm Banner
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 which is described in the Creating an Alarm Management chapter.
The alarm banner displays an active alarm in online mode. If there are multiple active alarms, filtering takes place by means of the filter criteria set in the alarm banner (newest for filter criterion "Priority" and most important for filter criterion "Newest"). See the instructions below for adding scroll elements in order to switch the display between multiple alarms.
Open the visualization editor.
Drag the Alarm Banner element from the Alarm Manager group to the visualization editor.
The Alarm Banner 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 check box 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.
Set the Alarm configuration / Filter criterion property to Newest.
In online mode, the newest alarm message is always shown.
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.
In the Confirmation variable property, specify the variable
bQuitAlarm
for confirming messages.