Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

Run a script when a new alarm is detected

  • Last UpdatedJun 19, 2024
  • 1 minute read

You can configure the Alarm Viewer control to run an ActiveX event script when the Alarm Viewer control detects a new unacknowledged alarm (that is, any alarm that transitions from a normal state to an unacknowledged state and meets the control's query and priority filtering criteria).

The NewAlarmEventMode property controls triggering the NewAlarm event.

  • If you set NewAlarmEventMode property to 0, the NewAlarm event does not trigger. This is the default.

  • If you set the NewAlarmEventMode property to 1, and a new alarm occurs:

    • An event is triggered.

    • The ActiveX event script associated with the NewAlarm event runs.

    • The NewAlarmEventMode property is set to 0.

      You must change the NewAlarmEventMode property back to 1 to process subsequent events.

      Use this setting if the application performs an action that should not be performed again until the condition has been corrected or acknowledged. For example, when the event triggers, the ActiveX script can play an alarm sound until the alarm is acknowledged. Then the alarm sound can play again the next time a new alarm is received.

  • If you set the NewAlarmEventMode property to 2, the NewAlarm event is active and continually triggers when at least one new unacknowledged alarm arrives. You do not need to change the value to process subsequent events. The new event triggers at most one time per second, regardless of how many additional new alarms arrive in the same second.

TitleResults for “How to create a CRG?”Also Available in