Stop at end of cycle lamp indication

The PLC code is used to activate the End of Cycle lamps for this zone. When End of Cycle mode is turned on, the lamps flash. When all associated sequences have reached their End of Cycle step, the lamps remain lit continuously. The lamp test contact is used to test whether the lamps are working.

Copy

// Stop At End Of Cycle Lamp Indication
   {region "Description Stop at End Of Cycle Mode"}
   (*
   This is used below for the End of cycle lamp indicator.
   It is used to activate the End Of Cycle lamps for that zone. If End Of Cycle mode is ON then the End Of Cycle lamps will flash. 
   If all the associated sequences have reached their End Of Cycle, the lamps will be on continuously. 
   The lamp test contact is simply used to test if the lamps work.
   *)
   {endregion}
    
   GVL_<HwZone_name>_IOs.xEocLamp := (GVL_<HwZone_name>_HMI.stHmiIf.xHmiEocModeOn AND GVL_Global.stGlobalIf.xFlashOutput) OR GVL_<HwZone_name>.stHwzIf.xAllSeqEocReached OR GVL_Global.stGlobalIf.xLampTest;

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

Last updated

Was this helpful?