Relative Positioning that ends with a velocity move using MC_MoveContinuousRelative

MC_MoveContinuousRelative will perform a relative move and transition to a velocity move when relative positioning is complete. The value in the input EndVelocity will be the final speed for the continuous speed portion of the movement. If the function block is executed again while performing a previous MC_MoveContinuousRelative operation, the changes in parameters will be applied. This function block will cause the axis to transition to ContinuousMotion state.

  • The sign of Distance will determine the direction of movement during the relative move portion.

  • A negative Distance value will move in reverse direction and a positive distance value will move in the forward direction.

  • The sign of the EndVelocity value will determine the direction of the speed move portion.

  • A negative EndVelocity value will move in the reverse direction and a positive EndVelocity value will move in the forward direction.

  • LS_Connect and MC_Power must be executed before this function block can be used.

  • The examples in this topic can be found in the XMC_SingleAxis_FBs.zip downloadable from Example Applications.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LM514