MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ MotionDoneWait() [1/2]

int32 MotionDoneWait ( )
pure virtual

Waits for a move to complete.

Description:
MotionDoneWait Will poll the Axis to see when the motion is complete and settled.
Returns
elapsed milliseconds
Sample Code:
axis->MoveTrapezoidal(1000.0, 1000.0, 10000.0, 10000.0);
printf("Motion is complete and Axis has settled\n");
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
AbsoluteMotion.cpp, AbsoluteMotion.cs, Camming.cpp, Camming.cs, FeedRate.cpp, FeedRate.cs, Gearing.cpp, Gearing.cs, MotionHoldReleasedByDigitalInput.cpp, MotionHoldReleasedByDigitalInput.cs, MotionHoldReleasedByPosition.cs, MotionHoldReleasedBySoftwareAddress.cpp, MotionHoldReleasedBySoftwareAddress.cs, MultiaxisMotion.cpp, PathMotion.cpp, PointToPointMultiaxisMotion.cpp, PointToPointMultiaxisMotion.cs, PTmotion.cpp, PTmotion.cs, PTmotionWhileStopping.cpp, PTmotionWhileStopping.cs, PVAJTmotion.cs, PVTmotion.cpp, PVTmotion.cs, PVTmotionMultiAxis.cpp, RelativeMotion.cpp, RelativeMotion.cs, SCurveMotion.cpp, SCurveMotion.cs, SingleAxisSyncOutputs.cpp, SingleAxisSyncOutputs.cs, SyncOutputWithMotion.cpp, and UpdateBufferPoints.cpp.