MC_SetPosition

Function block MC_SetPosition
Shifts the coordinate system of an axis by manipulating both the setpoint position as well as the actual position of an axis with the same value without causing any movement (recalibration with same following error).
VAR_IN_OUT
B AxisIn AXIS_REF Reference to an axis.
VAR_INPUT
B Execute BOOL Start setting a position for an axis.
B Position LREAL Position unit (it's the distance unit if Relative is TRUE).
E Relative BOOL TRUE if it's relative distance; FALSE if it's absolute position. By default, it is FALSE.
E ExecutionMode MC_ExecutionMode Defines the chronological sequence of the function blocks.
VAR_OUTPUT
B Done BOOL Position has a new value.
E Busy BOOL The function block is not finished and new output values are to be expected.
B Error BOOL Signals that an error has occurred within the function block.
E ErrorID MC_Error Error identification.
  • This function block can only be used in the Standstill or Disabled state.
  • Relative means that Position (distance unit) is added to the actual position of the axis at the time of execution. The resulting target position will be the actual position + distance. For example, the actual position is 50. Distance is 100. The target position will be 150. "Absolute" means that the actual position of the axis is the value specified in the Position parameter.

 

  MC_SetPosition  
AXIS_REF   AxisIn   Axis   AXIS_REF
BOOL   Execute   Done   BOOL
LREAL   Position   Busy   BOOL
BOOL   Relative   Error   BOOL
MC_ExecutionMode   ExecutionMode   ErrorID   MC_Error