The RMP Motion Controller API

◆ FeedRateSet()

virtual void FeedRateSet ( double  rate)
pure virtual

Set the feed rate for an Axis.

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%).

ℹ This function is avaliable in RapidCode and RapidSequencer

Part of the Action method group.

Sample Code:
// Start Motion
Console.WriteLine("Motion Start");
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");
See also