MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ HardwarePosLimitActionGet()

RSIAction HardwarePosLimitActionGet ( )
pure virtual

Get the action that will occur when the Hardware Positive Limit Event triggers.

Description:
HardwarePosLimitActionGet returns the action that will occur when the Hardware Positive Limit Event triggers.
Returns
(RSIAction) Action taken on Positive Limit trigger.
Note:
Available Actions are Abort(), EStop(), Stop(), None, EStopAbort(), and EStopModify()
Sample Code:
if(HardwarePosLimitActionGet() == RSIAction.RSIActionE_STOP)
{
Console.WriteLine("E-Stops when Hardware Positive Limit is hit.");
}
RapidSetup:
Go to axis screen->Limits & Actions. In image below, HardwarePosLimitActionGet returns the action type shown in the Positive (+) Hardware box. It is currently set to E_STOP.
Limits_Actions.jpg
See also
HardwarePosLimitActionSet
 
Examples
HardwareLimits.cpp, and HardwareLimits.cs.