All Step Sequence Automatic Release

All Step Sequence Automatic Release Der folgende SPS-Code wird verwendet, um zu überprüfen, ob alle Sequenzen, die mit der Zone verbunden sind, automatisch freigegeben wurden und somit gestartet wurden. Eine wiederverwendbare Ausgabe ist für diese Funktion vorgesehen. Diese wird unten verwendet, um den Status der automatischen Lampe anzuzeigen.

Copy

// --------------------------------All Step Sequences Automatic Release--------------------------------
   {region "Description All Step Sequences Automatic Release"}
   (*
   The plc code below are used to check if all sequences associated with the zone have automatic release and hence have all started. 
   A reusable output is allocated for this function. This is used below for the automatic status lamp indicator.
   *)
   {endregion}
    aAllSeqAutoRelMatrix[0] := GVL_<Sequence_name>.stSeqIf.xSeqAutomaticReleased;

   GVL_<HwZone_name>.stHwzIf.xAllSeqAutoRelease := TRUE;
   FOR  iIndex := 0 TO 0 DO 
      IF NOT aAllSeqAutoRelMatrix[iIndex] THEN
         GVL_<HwZone_name>.stHwzIf.xAllSeqAutoRelease := FALSE;
         EXIT;
      END_IF
   END_FOR

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

Zuletzt aktualisiert

War das hilfreich?