MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ MoveTrapezoidal() [3/3]

void MoveTrapezoidal ( double  position,
double  vel,
double  accel,
double  decel,
double  finalVel 
)
pure virtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Description:
MoveTrapezoidal commands a point-to-point motion with a trapezoidal velocity profile. This has a trapezoidal shape for the velocity with constant acceleration and deceleration phases. This function ends the move with user defined finalVel
Parameters
positionTarget Position in units.
velMaximum velocity, units/second.
accelMaximum accleration, units/second/second.
decelMaximum deceleration, units/second/second.
finalVelVelocity the Axis will follow after completing the rest of the profile.
Note
This motion will not stop when it completes the initial profile.
Sample Code:
//Move at a Velocity of 2.0/second after reaching position 50.0.
axis->MoveTrapezoidal(50.0, 10.0, 100.0, 100.0, 2.0);