Global Release

Der SPS-Code addiert die Freigabetasten aller Hardwarezonen. Auf diese Weise können alle Sequenzen in allen Zonen gleichzeitig automatisch gestartet werden, indem der globale Freigabeausgang in jedem Hardwarezonen-Netzwerk für die automatische Freigabe verwendet wird.

Copy

//--------------------------------Global Automatic Release--------------------------------
   {region "Description Global Automatic Release"}
   (*
   The PLC code sums together the release Push Button pressed Flag from all Hardware Zone. 
   This allows all sequences in all zones to be started in automatic simultaneously by employing 
   the Global Relaise Push Button pressed Output in every Hardware Zone Automatic Release network.
   *)
   {endregion} 
   aAutoRelMatrix[0] := GVL_Global_HMI.stHmiIf.xHmiAutomaticRelease;
   aAutoRelMatrix[1] := GVL_<HwZone_name>.stHwzIf.xReleasePbPressed;

   FOR  iIndex := 0 TO 1 DO 
      IF aAutoRelMatrix[iIndex] THEN
         GVL_Global.stGlobalIf.xRelease := TRUE;
         EXIT;
      ELSE
         GVL_Global.stGlobalIf.xRelease := FALSE;
      END_IF
   END_FOR

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

Zuletzt aktualisiert

War das hilfreich?