Any sequences in single step mode

Any Sequences in Single Step Mode The following PLC code indicates whether a sequence associated with this hardware zone is in single-step mode.

Copy

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


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

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

Last updated

Was this helpful?