MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ MoveCamCubic()

void MoveCamCubic ( int32  masterAxisNumber,
RSIAxisMasterType  masterFeedbackSource,
double *  masterDistances,
double *  slavePositions,
double *  gearRatios,
int32  pointCount 
pure virtual

Enable this Axis to be cubic follower (slave) using an electronic cam.

MoveCamCubic enables this Axis to be cubic follower (slave) using an electronic cam.
masterAxisNumberWhich Axis is the master? (0 to 31).
masterFeedbackSourceA RSIAxisMasterType value.
*masterDistancesRelative distance btween points on the master.
*slavePositionsPosition of the slave at given master distances.
*gearRatiosThe derivative of the slave with respect to the master.
pointCountNumber of points in the cam table.
Sample Code:
double masterDistances[] = { 10, 20, 10 };
double slavePositions1[] = { 5, 35, 10 };
double gearRatios[] = { 0, 0, 0 };
// configure this Axis to follow Axis 0's Actual Position through a cubic cam
axis->MoveCamCubic(0, RSIAxisMasterTypeAXIS_ACTUAL_POSITION, masterDistances, slavePositions1, gearRatios, 3);
MoveCamCubic is only functional in RapidCode 03.03.XX releases.
See also
MoveCamLinear, FrameBufferSizeGet and FrameBufferSizeSet