◆ FeedRateSet()

virtual void FeedRateSet ( double  rate)
pure virtual

Set the feed rate for an Axis.

ℹ This function is avaliable in RapidCode and RapidSequencer

Part of the Action method group.

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