Automatic Lamp Indication

Automatic Lamp Indication Der folgende SPS-Code wird verwendet, um die automatischen Startlampen für diese Zone zu aktivieren. Wenn ALLE zugehörigen Sequenzen startbereit sind, blinken die Lampen. Wenn alle zugehörigen Sequenzen eine automatische Freigabe haben, leuchten die Lampen kontinuierlich, um anzuzeigen, dass alle zugehörigen Sequenzen in Ordnung sind. Der Lampentestkontakt wird einfach verwendet, um zu testen, ob die Lampen funktionieren.

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;

<***>Variablen Name, Kommentar und Datentyp werden aus dem Studio automatisch übernommen

Zuletzt aktualisiert

War das hilfreich?