KB-29549: Displaying only alarms with high severity.

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:

Sub E3Alarm1_activealarms()
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.

Attachments:

severity.zip

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *