# Alarm Status Change

The Alarm Status Change trigger runs the operation, when a variable configured in Variable satisfies the condition and alarm type.

##### Block

##### Text

onAlarmStatusChange(VARIABLE, $Enums.AlarmStatus.Active,$Enums.AlarmType.HiHi, ()=>{
1 2 3
});

onAnyAlarmStatusChange(VARIABLE,()=>{
1
});

1. Variable

2. Condition

3. Alarm Type

Variable | Select the variable.
Condition | Select the alarm status. ##### Block [Active] [Return] [Ack] [UnAck] [Change any status] ##### Text onAlarmStatusChange '$Enums.AlarmStatus.Active' '$Enums.AlarmStatus.Return' '$Enums.AlarmStatus.Ack' '$Enums.AlarmStatus.UnAck' onAnyAlarmStatusChange
Alarm Type | Select the alarm type. ##### Block [HiHi] [Hi] [LoLo] [Lo] ##### Text 'HiHi' 'Hi' 'LoLo' 'Lo'

(Example)

When the alarm for variable Var2 occurs, Var1 turns ON.

##### Block

##### Text

onAlarmStatusChange(Var2,$Enums.AlarmStatus.Active,$Enums.AlarmType.HiHi,()=>{
Var1 = true;
});