RMP Motion Controller
10.6.3
APIs
, concepts, guides, and more
Community
Support
Contact
◆
ErrorLimitTriggerValueSet()
void ErrorLimitTriggerValueSet
(
double
triggerValue
)
Description:
ErrorLimitTriggerValueSet sets the Position Error Limit trigger value.
Parameters
triggerValue
Position Error Limit in units.
Part of the
Limits and Action Configuration
method group.
Sample Code:
Axis: Configuration
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)
// 1048576 Setting the user units to this value will result in a commanded position of 1 spinning the motor 1 full revolution
double
USER_UNITS = Math.Pow(2, ENCODER_RESOLUTION_BITS);
// SET
axis.
UserUnitsSet
(USER_UNITS);
axis.
ErrorLimitTriggerValueSet
(1);
// Specify the position error limit trigger. (Learn more about this on our support page)
// GET
var 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
AxisConfig.cs
,
HelperFunctions.cs
,
MotionHoldReleasedBySoftwareAddress.cpp
,
Template.cs
, and
VelocitySetByAnalogInputValue.cs
.
RSI
RapidCode
Axis
Generated by
1.10.0