Alarms acknowledgement via scripts.

How can a specific alarm be acknowledged inside E3Alarm via scripts?

Alarm acknowledgement via scripts has been a feature of E3 since its version 3.2. To do so, three new methods were added to E3Alarm:

AckSelected: acknowledges the selected alarm.
AckCurrentFilter: acknowledges all alarms in the current filter.
AckAll: acknowledges all alarms.

An example of script used for acknowledging a specific alarm inside E3Alarm is this (executed at E3Alarm’s DblClick event):

Sub E3Alarm1_DblClick()
 Set alarme = GetFocusedEvent() ‘ takes data from the alarm selected at E3Alarm and saves it at Alarm object
 If TypeName(alarm)=”IEventStatus” then ‘ tests the alarm type

Application.GetObject(alarm.FullAlarmSourceName).Ack(Application.User)
‘ acknowledges according to the information at alarm object

 End if
End Sub


NOTE: Attached to this article is a sample application developed with E3 version 3.2 Build 229.

Attachments:

AckAlarmsByScript

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 *