01-06-2023 09:36 AM
I'd like to figure out how to select direction in case of Move_Absolute with Modulo axis.
Axis always moves in shortest direction.
I'm using version 1.18 with Motion App... not SoftMotion Add-On.
Many thanks for any support.
Solved! Go to Solution.
01-09-2023 10:55 AM
Like mentioned in this thread: "...ctrlX MOTION tries always to go shortest way to the commanded position..."
01-24-2023 10:03 AM - edited 01-24-2023 10:20 AM
I did a function MB_AxsPosAbs (see attachment), which extended the function ML_AxsPosAbs for the move direction of modulo axis.
(shortest way, positive, negative, current direction)
The function is done with the existing function of Motion library.
Because Plc is running on Core 2 and Motion on Core 3, there is a risk that fucntion block works with "old" value and so the result is wrong.
Restrictions of the function:
It is important to know, that the dynamic value (deceleration, jerkdec) of the actual active command must be equal to the dynamic value of the function MB_AxsPosAbs, because internal the actual braking distance is used.
Otherwise the function do not run in a proper way