MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ GearingEnable() [1/2]

void GearingEnable ( int32  masterAxisNumber,
RSIAxisMasterType  masterFeedbackSource,
int32  numerator,
int32  denominator 
)
pure virtual

Enable this Axis to be follower (slave) using electronic gearing.

Description:
GearingEnable enables this Axis to be follower (slave) using electronic gearing.
Parameters
masterAxisNumberAn index that represents the master axis.
masterFeedbackSourceA RSIAxisMasterType value.
numeratorMultiple of counts that slave follows relative to master.
denominatorDivisor of counts that slave follows relative to master.
Sample Code:
// Configure this Axis to follow AxisX Actual Position with a 3:1 ratio.
AxisY->GearingEnable(AxisX, RSIAxisMasterTypeAXIS_ACTUAL_POSITION, 3, 1);
Notes:

The gearing ratio will be numerator/denominator.

See also
GearingRatioChange
 
Examples
Gearing.cpp, and Gearing.cs.