APIs, concepts, guides, and more

◆ FeedRateSet()

void FeedRateSet ( double rate)
FeedRateSet sets the feed rate for an Axis, the default is 1.0 (100%).
rateAcceptable values for rate are -2.0 to 2.0 (-200% to 200%).

Part of the Action method group.

Sample Code:
Feed Rate
Console.WriteLine("Start Motion");
axis.MoveSCurve(100); // Call MoveScurve to move to a position.
// set feedrate for axis to 150%
while (axis.CommandPositionGet() < 5)
Thread.Sleep(1); // Wait here until we reach position "15".
axis.Stop(); // Stop the axis/motor.
axis.MotionDoneWait(); // Wait for move to complete.
axis.FeedRateSet(-1); // Change FeedRate to reverse motion.
axis.Resume(); // Start Reverse Motion.
Console.WriteLine("New Feed Rate Start");
axis.FeedRateSet(1); //restore default
See also
MotionModify.cs, and UserLimit.cs.