Start-up alarm

Start-up Alarm To start all sequences that are associated with this hardware zone, you must press the release pushbutton for 3 seconds (default) and all gates of the zone must be closed. During this delay the start-up alarm is enabled when the button is pressed and can then be used to activate a siren. When the button is released the timer is reset and the ZONE RELEASE output is not activated.

Copy

// --------------------------------Start-up Alarm--------------------------------
   {region "Description Start-up Alarm"}
   (*
   To start all sequences associated with this zone, the release pushbutton must be pressed, and all gates for the zone closed. 
   If a gate has been opened, the release pushbutton must be held in for five seconds before the ZONE RELEASE output is activated. 
   During this delay, if a gate had previously been opened and any associated sequences are ready to start, while the pushbutton is pressed the Start-up alarm is enabled, 
   this is then used to operate a siren. The Release pushbutton must be held in for the duration of the delay timer for the sequences associated with this zone to start. 
   If the pushbutton is released, the timer is reset and the ZONE RELEASE output will not be activated.
   *)
   {endregion}
   
   fbTonGlobalRelease(IN:= NOT GVL_<HwZone_name>.stHwzIf.xGateFortressFault AND GVL_<HwZone_name>.stHwzIf.xAutomaticModeOn AND GVL_<HwZone_name>.stHwzIf.xAnySeqReadyToStart AND GVL_Global.stGlobalIf.xRelease , 
   PT:= GVL_Global.stGlobalIf.timGlobalPresetDelay, Q=> GVL_<HwZone_name>.stHwzIf.xAutoReleaseRequest);
   GVL_<HwZone_name>.stHwzIf.xStartUpAlarm := NOT fbTonGlobalRelease.Q AND GVL_<HwZone_name>.stHwzIf.xAutomaticModeOn AND GVL_<HwZone_name>.stHwzIf.xAnySeqReadyToStart AND GVL_Global.stGlobalIf.xRelease;

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

Last updated

Was this helpful?