APIs, concepts, guides, and more

◆ HardwareNegLimitActionSet()

void HardwareNegLimitActionSet ( RSIAction action)
Description:
HardwareNegLimitActionSet sets the action that will occur when the Hardware Negative Limit Event triggers.
Parameters
actionAction taken on Negative Limit trigger. A RSIAction value.
Note:
Available Actions are Abort(), EStop(), Stop(), None, EStopAbort(), and EStopModify()

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.HardwarePosLimitDurationSet(HW_POS_DURATION_TIME);
axis.HardwareNegLimitActionSet(RSIAction.RSIActionE_STOP);
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 image below, HardwareNegLimitActionSet sets the action type shown in the Negative (-) Hardware box. It is currently set to E_STOP.
See also
HardwareNegLimitActionGet
Examples
AxisConfiguration.cpp, HardwareLimits.cpp, PhantomAxis.cpp, SampleAppsHelper.h, axis-config-hardware-limits.cs, axis-config-phantom-axis.cs, and axis-homing-master-based.cs.