axis.MoveSCurve(15); // Call MoveScurve to move to position 15.
while (axis.ActualPositionGet() < 10) { } // Once position "10" is reached:
axis.Stop(); // Stop the axis/motor. (This will use the value from StopTimeSet())
axis.MotionDoneWait(); // Wait for axis to stop completely.
axis.FeedRateSet(-1); // Change FeedRate to reverse motion.
axis.Resume(); // Start Reverse Motion.
while (axis.ActualPositionGet() > 5) { } // Once position "5" is reached:
axis.Stop(); // Stop the axis/motor. (This will use the value from StopTimeSet())
axis.MotionDoneWait(); // Wait for axis to stop completely.
axis.FeedRateSet(1); // Change FeedRate to default value.
axis.Resume(); // Resume the MoveScurve Motion that was commanded initially..
axis.MotionDoneWait(); // Wait for MoveScurve to complete.