APIs, concepts, guides, and more

◆ FeedRateSet()

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

Part of the Action method group.

Sample Code:
Feed Rate
axis.AmpEnableSet(true);
// start motion
axis.MoveSCurve(POSITION);
Console.WriteLine($"\tPosition commanded: {POSITION}");
// set feedrate to 150%
axis.FeedRateSet(1.5);
// wait here until we reach position 10
while (axis.CommandPositionGet() < 5)
Thread.Sleep(10);
// stop motion
axis.Stop();
axis.MotionDoneWait();
Console.WriteLine($"\tPosition after FeedRate (1.5): {axis.CommandPositionGet()}");
// set feedrate to reverse motion (-100%)
axis.FeedRateSet(-1);
// resume motion for a bit
axis.Resume();
Thread.Sleep(500);
Console.WriteLine($"\tPosition after FeedRate (-1): {axis.CommandPositionGet()}");
// restore feedrate (100%)
axis.FeedRateSet(1);
// wait for motion done
axis.MotionDoneWait();
Console.WriteLine($"\tPosition after FeedRate (1): {axis.CommandPositionGet()} (expected: {POSITION})");
See also
FeedRateGet
Examples
axis-motion-modify.cs, and userlimit-feedrate.cs.