Startup Siren

If a sequence from a zone in which a gate was opened is ready to start, the start siren output is activated as soon as the release button is pressed.

Copy

//--------------------------------Start Up Siren--------------------------------
   {region "Description Start Up Siren"}
   (*
   When any sequence is ready to start from any zone in which a gate has been opened,
   the start-up siren output is activated when the release pushbutton is pressed.
   *)
   {endregion}
   aStartUpSirenMatrix[0] := GVL_<HwZone_name>.stHwzIf.xStartUpAlarm;

   FOR  iIndex := 0 TO 0 DO 
      IF aStartUpSirenMatrix[iIndex] THEN
         GVL_Global.stGlobalIf.xStartUpSiren := TRUE;
         EXIT;
      ELSE
         GVL_Global.stGlobalIf.xStartUpSiren := FALSE;
      END_IF
   END_FOR

<***>Variable name, comment and data type are automatically taken from the Studio

Last updated

Was this helpful?