MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ MoveCamLinear()

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

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

MoveCamLinear enables this Axis to be linear 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.
pointCountNumber of points in the cam table.
Sample Code:
double masterDistances[] = { 10, 20, 10 };
double slavePositions1[] = { 5, 35, 10 };
// configure this Axis to follow Axis 0's Actual Position through a cam
axis->MoveCamLinear(0, RSIAxisMasterTypeAXIS_ACTUAL_POSITION, masterDistances, slavePositions1, 3);
MoveCamLinear is only functional in RapidCode 03.03.XX releases.
See also
MoveCamCubic, FrameBufferSizeGet and FrameBufferSizeSet
Camming.cpp, and Camming.cs.