Any sequence in ghost mode

Any Sequence in Ghost Mode The following PLC code shows whether a sequence associated with this hardware zone is in ghost mode.

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

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

Last updated

Was this helpful?