RMP Motion Controller
10.7.1
APIs
, concepts, guides, and more
Community
Support
Contact
◆
HardwareNegLimitTriggerStateGet()
bool HardwareNegLimitTriggerStateGet
(
)
Description:
HardwareNegLimitTriggerStateGet returns the trigger state.
Returns
(int32_t) 1 = triggers on active high signal, 0 = triggers on active low signal.
Part of the
Limits and Action Configuration
method group.
Sample Code:
Axis: Configuration
bool
ACTIVE_HIGH =
true
;
bool
ACTIVE_LOW =
false
;
double
HW_POS_DURATION_TIME = 0.01;
// Positive limit duration (in seconds)
double
HW_NEG_DURATION_TIME = 0.01;
// Negative limit duration (in seconds)
// set pos & neg limits
axis.
HardwarePosLimitActionSet
(
RSIAction
.RSIActionE_STOP);
axis.
HardwarePosLimitTriggerStateSet
(ACTIVE_HIGH);
axis.
HardwarePosLimitDurationSet
(HW_POS_DURATION_TIME);
axis.
HardwareNegLimitActionSet
(
RSIAction
.RSIActionE_STOP);
axis.
HardwareNegLimitTriggerStateSet
(ACTIVE_LOW);
axis.
HardwareNegLimitDurationSet
(HW_NEG_DURATION_TIME);
// get pos & neg limits
RSIAction
hPosLimAct = axis.
HardwarePosLimitActionGet
();
bool
hPosLimTrigState = axis.
HardwarePosLimitTriggerStateGet
();
double
hPosLimDur = axis.
HardwarePosLimitDurationGet
();
RSIAction
hNegLimAct = axis.
HardwareNegLimitActionGet
();
bool
hNegLimTrigState = axis.
HardwareNegLimitTriggerStateGet
();
double
hNegLimDur = axis.
HardwareNegLimitDurationGet
();
RapidSetup:
Go to axis screen->Limits & Actions. In the image below, HardwareNegLimitTriggerStateGet returns the trigger state shown in the Negative (-) Hardware box. It currently triggers on a HIGH because the "High" checkbox is checked.
See also
HardwareNegLimitTriggerStateSet
Examples
AxisConfiguration.cpp
,
HardwareLimits.cpp
, and
axis-config-hardware-limits.cs
.
RSI
RapidCode
Axis
Generated by
1.10.0