MotionController
Axis
MultiAxis
IO
IOPoint
NetworkNode
RsiError
Sample Apps
Changelog
RapidCode API
Contact us
Support
◆
StatusBitGet()
bool StatusBitGet
(
RSIEventType
statusBit
)
pure virtual
Return the state of a status bit.
Description:
StatusBitGet returns the state of a status bit, true or false.
Parameters
statusBit
bitMask from enumeration
RSIEventType
.
Returns
(bool) True or False value of the statusBit.
Sample Code:
if
(axis->
StatusBitGet
(
RSIEventTypeLIMIT_HW_NEG
) == true )
{
printf(
"Negative Hardware Limit Switch event occured\n"
);
}
RapidSetup:
Go to axis screen->Status tab.
Status tab offers various bits that can be tracked
See also
RSIEventType
Examples
AxisStatus.cpp
, and
AxisStatus.cs
.