RMP Motion Controller
10.7.1
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
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
HelperFunctions.cs
,
MotionHoldReleasedBySoftwareAddress.cpp
,
Template.cs
,
VelocitySetByAnalogInputValue.cs
,
axis-config-userunits.cs
, and
compensator-2d.cs
.
RSI
RapidCode
Axis
Generated by
1.10.0