There are times when we transition RMP from MOVING to STOPPED/IDLE. On some of those occasions, I want to wait for the transition to finish and wait for all the motion to have finished executing (so that I know that the motor is not moving).
What’s the best way to know that all my MovePT()
motion has executed?
The documentation doesn’t specifically answer my question. Here are some ideas I have:
Axis::FramesToExecuteGet()
- some mixture of
Axis::MotionIdExecutingGet()
andAxis::MotionElementIdExecutingGet()
(or forMultiAxis::
) withRapidCodeMotion::MotionIdGet()
RapidCodeMotion::StateGet()
- some combination of these?
Do you have a recommendation?