Question:
How can I display only alarms with higher severity in E3Alarm? For example, between an alarm with high severity and another one with medium/low, I’d like to show only the high severity one, and between an alarm with medium security and another one with low, only the medium one should be displayed.
Solution:
To do so, you must create a user event in E3Alarm that checks the existence of any active alarm for the alarm area in question.
Example used in the user event‘s Property or Expression field: AlarmConfig.AreaName.ActiveAlarms
In this script’s event, run the following script. It tests the active alarm’s severity and changes the property showing it:
if Application.GetObject(“ConfigAlarmes1.severity”).ActiveHighAlarms>=1 then ‘if there is an active high severity alarm
ShowHighPriority = true ‘display the high severity alarms on the E3Alarms
ShowMediumPriority = false ‘medium severity alarms are not displayed on the E3Alarms
ShowLowPriority = false ‘low severity alarms are not displayed on the E3Alarms
elseif Application.GetObject(“ConfigAlarmes1.severity”).ActiveMedAlarms >= 1 then
ShowHighPriority = false
ShowMediumPriority = true
ShowLowPriority = false
else
ShowHighPriority = false
ShowMediumPriority = false
ShowLowPriority = true
end if
End Sub
For more details, check the attached demo application developed with E3 v. 3.2 build 260.