1000 OR (IO.TS3003_OutT1>1000 AND IO.TS3007_OutT2>1000) THEN GVL.arAlarms[0].01 := TRUE; // If for any reason outside temperature is out of the reasonable range, set it -20°C ELSE GVL.arAlarms[0].01 := FALSE; END_IF*) fbGetCurTaskIdx(); IF _TaskInfo[fbGetCurTaskIdx.index].FirstCycle THEN events.SetAlarm(Trigger:=ADR(testAlarmZone),Object:='Zone 1 alarm',Description:='Test Alarm zone'); events.SetAlarm(Trigger:=ADR(testAlarmApt),Object:='Appartment 101 alarm',Description:='Test Alarm apt'); END_IF; events.Run(IsFirstCycle:=_TaskInfo[fbGetCurTaskIdx.index].FirstCycle ); ]]>