APIs, concepts, guides, and more

◆ ErrorLimitTriggerValueSet()

void ErrorLimitTriggerValueSet ( double triggerValue)
Description:
ErrorLimitTriggerValueSet sets the Position Error Limit trigger value.
Parameters
triggerValuePosition Error Limit in units.

Part of the Limits and Action Configuration method group.

Sample Code:
Axis: Configuration
int ENCODER_RESOLUTION_BITS = 20; // Encoder resolution in bits
// Define counts per unit (user units)
// Example: 2^20 = 1,048,576 pulses/rev → a command of 1 = one full revolution
double USER_UNITS = Math.Pow(2, ENCODER_RESOLUTION_BITS);
// set
axis.UserUnitsSet(USER_UNITS);
axis.ErrorLimitTriggerValueSet(1); // Position error limit trigger (see support page)
// get
double userUnits = axis.UserUnitsGet();
RapidSetup:
Go to axis screen->Limits & Actions. In the image below, ErrorLimitTriggerValueSet sets the value in the Trigger value box shown in the Position Error box. It currently triggers at 1000.
See also
ErrorLimitTriggerValueGet
Examples
MotionHoldReleasedBySoftwareAddress.cpp, axis-config-userunits.cs, basic-template.cs, and compensator-2d.cs.