Auto / Manual Mode Selected

The following PLC code provides information about whether the hardware zone is in automatic or manual mode.

Copy

// Auto / Manual Mode Selected
   {region "Description Mode"}
   (*
   The following plc code determines if the status of the Hardware zone is in Automatic or in Manual mode.
   *)
   {endregion}

   IF GVL_<HwZone_name>.stHwzIf.xManualModeOn AND NOT  GVL_<HwZone_name>.stHwzIf.xAutomaticModeOn THEN
      GVL_<HwZone_name>.stHwzIf.xAutomaticSelected := FALSE;
      GVL_<HwZone_name>.stHwzIf.xManualSelected := TRUE;
   ELSIF GVL_<HwZone_name>.stHwzIf.xAutomaticModeOn AND NOT GVL_<HwZone_name>.stHwzIf.xManualModeOn THEN
      GVL_<HwZone_name>.stHwzIf.xAutomaticSelected := TRUE;
      GVL_<HwZone_name>.stHwzIf.xManualSelected := FALSE;
   END_IF

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

Last updated

Was this helpful?