Adding Elements for Scrolling the Active Alarms
Elements can be added to an alarm banner for switching the display between the individual active alarms. You can control the scrolling with visu-local variables or application variables.
Select the added "Alarm Banner" visualization element. Select the Add elements for controlling alarms command in the context menu.
The Alarm Banner Wizard opens.
Select the element type for the scroll elements: Button or Rectangle.
Activate the action(s) for which a control element should be added: Scroll to next alarm, Scroll to previous alarm.
Specify a Boolean variable that gets the value
TRUE
when multiple active alarms are present. If you have already configured a project variable in the element properties, then it is also specified here in the wizard. Otherwise CODESYS automatically creates the visu-local variable xMultipleAlarmsActive.In the next step, check the configuration of the element properties of the extended alarm banner.
Select the alarm banner element and look at the section Handling of multiple active alarms in the Properties view. You have two options:
Option 1: The display should switch automatically. Activate the Switch automatically property.
Now, in Every N seconds you define the time interval after which the display in the alarm banner in online mode should switch to the next alarm.
Option 2: The display should be controlled by means of the application. Deactivate the Switch automatically property.
Switching between the active alarms can be controlled by two variables. By default,
xNext
andxPrev
are created for scrolling to the next or previous alarm. You can replace these variables with custom your own defined application variables.