Any Sequence in Ghost Mode

Any Sequence in Ghost Mode Der folgende PLC-Code zeigt, ob sich eine mit dieser Hardwarezone verbundene Sequenz im Ghost-Modus befindet.

Copy

// --------------------------------Any Sequence in Ghost Mode--------------------------------
   {region "Description Any Sequence in Ghost Mode"}
   (*
   The following plc code indicates if ANY sequence associated with that hardware zone is in Ghost Mode.
   *)
   {endregion}
    aAnySeqGhostModeOn[0] := GVL_<Sequence_name>_HMI.stHmiIf.xHmiPbGhostModeRelease;


   FOR  iIndex := 0 TO 0 DO
      IF aAnySeqGhostModeOn[iIndex]THEN
         GVL_<HwZone_name>.stHwzIf.xAnySeqGhostModeOn := TRUE;
         EXIT;
      ELSE
         GVL_<HwZone_name>.stHwzIf.xAnySeqGhostModeOn := FALSE;
      END_IF
   END_FOR

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

Zuletzt aktualisiert

War das hilfreich?