The RMP Motion Controller APIs

◆ MotionDoneWait() [1/2]

int32_t MotionDoneWait ( )
Description:
MotionDoneWait Will poll the Axis to see when the motion is complete and settled.
Returns
elapsed milliseconds
Remarks
This function is also available in RapidSequencer.

Part of the State and Status method group.

Sample Code:
Motion: Point-to-Point
axis.MoveTrapezoidal(Constants.POSITION, Constants.VELOCITY, Constants.ACCELERATION, Constants.DECELERATION);// Command simple trapezoidal motion.
axis.MotionDoneWait();// Wait for motion to be done
Note
This method polls the state of the axis, and sleeps the task for 10 milliseconds each time the state is checked. You might want to create your own version of this method if you are running in a single threaded environment, so you could do other things while waiting for a motion to complete.
MotionDoneWait is true when all the settling criteria has been met. MotionDoneWait is also true if an axis gets ERROR or STOPPED state - StateGet().
See also
InterruptWait, MotionDoneGet
Examples
GearingCamming.cs, Motion.cs, MotionHold.cs, MotionHoldReleasedBySoftwareAddress.cpp, MotionModify.cs, MotionStreaming.cs, MultiAxisMotion.cs, MultiaxisMotion.cpp, PVTmotionMultiAxis.cpp, PathMotion.cpp, SingleAxisSyncOutputs.cpp, SyncOutputWithMotion.cpp, UpdateBufferPoints.cpp, and UserLimit.cs.