MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ CompensatorConfigSet() [2/4]

void CompensatorConfigSet ( int32  compensatorNumber,
Axis firstInputAxis,
RSIAxisMasterType  firstInputAxisType,
double  firstInputAxisMinimum,
double  firstInputAxisMaximum,
double  firstInputAxisDelta,
Axis secondInputAxis,
RSIAxisMasterType  secondInputAxisType,
double  secondInputAxisMinimum,
double  secondInputAxisMaximum,
double  secondInputAxisDelta,
Axis outputAxis,
RSICompensatorOutputType  outputType,
double *  table 
)
pure virtual

Configure a 2D compensator.

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

Parameters
compensatorNumberwhich compensator to configure?
firstInputAxisThis specifies the axis of the first compensating Axis object. The position from this Axis will be used to index a single dimension of the compensation table. This number must correspond to a valid (existing) and enabled Axis on the controller.
firstInputAxisMinimumThe minimum feedback position (COUNTS) along the first compensation axis where compensation will occur.
firstInputAxisMaximumThe maximum feedback position (COUNTS) along the first compensation axis where compensation will occur.
firstInputAxisDeltaSpacing between compensation positions on the compensating axis. positionDelta must meet some specifications: positionDelta must be an exact multiple of the range (i.e. ((range.positionMax - range.positionMin) / positionDelta) must be an integer value). positionDelta must be greater than zero. positionDelta must be greater than (positionMax - positionMin).
secondInputAxisNumberThis specifies the axis number of the second compensating Axis object. The position from this Axis will be used to index a single dimension of the compensation table. This number must correspond to a valid (existing) and enabled Axis on the controller.
secondInputAxisMinimumThe minimum feedback position (COUNTS) along the second compensation axis where compensation will occur.
secondInputAxisMaximumThe maximum feedback position (COUNTS) along the second compensation axis where compensation will occur.
secondInputAxisDeltaSpacing between compensation positions on the secondcompensating axis. positionDelta must meet some specifications: positionDelta must be an exact multiple of the range (i.e. ((range.positionMax – range.positionMin) / positionDelta) must be an integer value). positionDelta must be greater than zero. positionDelta must be greater than (positionMax - positionMin).
outputAxisThis specifies the axis of the Axis to be compensated by the Compensator object. This number must correspond to a valid (existing) and enabled Axis on the controller.
outputTypeSets the behavior of a compensator. SINGLE: Only the most recent compensator configured to output on a specific axes will be applied ADDITIVE: The output of the compensator will be added with the result form the previously applied compensator on the specific axis.
tablethe points which will be written to the table
See also
CompensatorCountSet