Manual Mode

Manual is enabled when all mode key switches relevant to the hardware zone are set to Manual as shown below.

Copy

// Manual Mode
   {region "Description Mode Selection MANUAL"}
   (*
   Manual is enabled when any mode keyswitches relevant to the hardware zone are selected to manual as shown below.
   *)
   {endregion}
   aManualModeSelectMatrix[0] := GVL_<HwZone_name>_IOs.xManualModeKeySwitch AND NOT GVL_<HwZone_name>_IOs.xAutomaticModeKeySwitch ;

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

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

Last updated

Was this helpful?