Relative Positioning with MC_MoveRelative

MC_MoveRelative is used to move an axis to a position relative to its current position. This function block will move the axis into DiscreteMotion state. MC_MoveRelative can be executed without the axis being homed.

  • A positive distance value will move in the forward direction.

  • A negative distance value will move in the negative 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.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LM510