MC_SetControlMode

Function block MC_SetControlMode
Sets a control mode of an axis at run time. The control mode must be compatible with the current access mode. Not all axes support control mode changes at run time.
VAR_IN_OUT
V AxisIn AXIS_REF Reference to an axis.
VAR_INPUT
V Execute BOOL Start setting a control mode for an axis.
V ControlMode MC_ControlMode A control mode for an axis.
VAR_OUTPUT
V Done BOOL A control mode is set.
V Busy BOOL The function block is not finished and new output values are to be expected.
V Error BOOL Signals that an error has occurred within the function block.
V ErrorID MC_Error Error identification.
  • Select different control modes for each axis, or change between control modes for different operations.
  • Use this function only when an axis is disabled, or if the synchronized control mode is enabled.

 

  MC_SetControlMode  
AXIS_REF   AxisIn   Axis   AXIS_REF
BOOL   Execute   Done   BOOL
MC_ControlMode   ControlMode   Busy   BOOL
        Error   BOOL
        ErrorID   MC_Error