◆ ErrorLimitTriggerValueSet()

virtual void ErrorLimitTriggerValueSet ( double  triggerValue)
pure virtual

Set the Position Error Limit trigger value.

ℹ This function is avaliable in RapidCode and RapidSequencer

Part of the Limits and Action Configuration method group.

Description:
ErrorLimitTriggerValueSet sets the Position Error Limit trigger value.
Parameters
triggerValuePosition Error Limit in units.
Sample Code:
SetUserUnits
// Constants
const int ENCODER_RESOLUTION_BITS = 20; // The number of bits defining the encoder resolution
// Specify your counts per unit / user units. (the motor used in this sample app has 1048576 encoder pulses per revolution)
double USER_UNITS = Math.Pow(2, ENCODER_RESOLUTION_BITS); //1048576 Setting the user units to this value will result in a commanded position of 1 spinning the motor 1 full revolution
axis.UserUnitsSet(USER_UNITS); // SET YOUR USER UNITS!
axis.ErrorLimitTriggerValueSet(1); // Specify the position error limit trigger. (Learn more about this on our support page)
//---ASSERT---
Assert.That(axis.UserUnitsGet(), Is.EqualTo(USER_UNITS)); // Verify that your user units were changed!
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.
Limits_Actions.jpg
See also
ErrorLimitTriggerValueGet
Examples
MotionHoldReleasedBySoftwareAddress.cpp.