MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ MoveSCurve() [1/2]

void MoveSCurve ( double *  position,
double *  vel,
double *  accel,
double *  decel,
double *  jerkPct 
)
pure virtual

Point-to-point S-Curve Move.

Description:
MoveSCurve calls a point-to-point S-Curve velocity profile move.
Parameters
*positionArray of target positions (in UserUnits for each Axis).
*velArray of velocities (UserUnits).
*accelArray of accelerations (UserUnits).
*decelArray of decelerations (UserUnits).
*jerkPctArray of jerk percents, which defines the percentage of acceleration time which is smoothed, 0.0 to 100.0
Sample Code:
// Assume 2 axes.
double positions[2] = {1000.0, 2000.0};
double velocities[2] = {1000.0, 1000.0};
double accels[2] = {10000.0, 10000.0};
double decels[2] = {10000.0, 10000.0};
double jerkPcts[2] = {50.0, 25.0};
multiAxis->MoveSCurve(positions, velocities, accels, decels, jerkPcts);
See also
MotionAttributeMaskGet
 
Examples
MultiaxisMotion.cpp, PointToPointMultiaxisMotion.cpp, and PointToPointMultiaxisMotion.cs.