◆ MoveVelocity() [2/2]

virtual void MoveVelocity ( double  velocity,
double  accel 
)
pure virtual

Command a constant velocity move (jog).

ℹ This function is avaliable in RapidCode and RapidSequencer

Part of the Motion method group.

Description:
MoveVelocity command a constant velocity move (jog). The axis will accelerate to the Target velocity and continue indefinitely.
Parameters
velocityTarget velocity, units/second.
accelMaximum accleration, units/second/second.
Note
In most cases, a servo motor has a feedback device mounted. Depending on feedback device resolution, one motor shaft rotation will produce fixed value of counts. Example: motor has a resolution of 8192 counts. This means if 8192 is entered as distance to move, motor will move single revolution. User can implement UserUnitsSet() to change to a different unit (ex: mm, inches, etc) from encoder counts.
Sample Code:
MoveVelocity
// Command a relative to the current position
axis.MoveVelocity(Constants.VELOCITY, Constants.ACCELERATION); // Command a relative to the current position
RapidSetup:
Go to axis screen->Motion Profile box (left) to select type of motion
Go to axis screen->Motion Parameters box (right) to select values for motion
Axis_Motion_Profile_and_Parameters.jpg
Motion Scope:
Velocity move (Trapezoidal type - 0% jerk) profile shown below:
Axis_Motion_Velocity_Trapezoidal.jpg
See also
Different Motion Types, MoveSCurve, MoveTrapezoidal, MovePT, MovePVT