Automatic lamp indication

Automatic Lamp Indication The following PLC code is used to activate the automatic start lamps for this zone. If ALL associated sequences are ready to start, the lamps flash. If all associated sequences have automatic release, the lamps stay on continuously to indicate that all associated sequences are OK. The lamp test contact is simply used to test whether the lamps work.

Copy

// --------------------------------Automatic Lamp Indication--------------------------------
   {region "Description Automatic Lamp Indication"}
   (*
   The following PLC code is used to activate the start automatic lamps for that zone. 
   If ALL the associated sequences are ready to start then the lamps will flash. 
   If All the associated sequences have automatic release then the lamps will be on continuously to indicate that all associated sequences are ok. 
   The lamp test contact is simply used to test if the lamps work.
   *)
    {endregion}

   GVL_<HwZone_name>_IOs.xAutoLamp := (GVL_<HwZone_name>.stHwzIf.xAllSeqReadyToStart AND GVL_Global.stGlobalIf.xFlashOutput AND GVL_<HwZone_name>.stHwzIf.xAutomaticModeOn) OR GVL_<HwZone_name>.stHwzIf.xAllSeqAutoRelease OR GVL_<HwZone_name>.stHwzIf.xLampTest;

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

Last updated

Was this helpful?