MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ CompensatorCountSet()

void CompensatorCountSet ( int32  compensatorCount)
pure virtual

Set the number of Compensators available in the firmware.

Description:
CompensatorCountSet sets the number of Compensators enabled on the controller. This must be configured before creating Axis or MultiAxis objects, as these object counts change the dynamic memory allocation inside the controller's firmware.
Sample Code:
// -- C++ -- //
controller->CompensatorCountSet(2); // enable two compensators
// -- C# -- //
controller.CompensatorCountSet(2); // enable two compensators
Note
The firmware default is 0. This should be done after Creating the Controller and before any other RapidObject creation as it will invalidate non-Controller Objects.
See also
CompensatorCountGet, CompensatorPointCountSet
 
Examples
Compensator1D.cs, Compensator2D.cs, and CompensatorSingleAxis.cs.