MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ StateGet()

RSIState StateGet ( )
pure virtual

Get the Axis or MultiAxis state.

Description:
StateGet returns the current state of the Axis or MultiAxis.
Returns
(RSIState) The current state of the Axis or MultiAxis.
Sample Code:
int32 state = 0;
state = axis->StateGet();
if(state == RSIStateMOVING)
{
printf("Axis is moving\n");
}
RapidSetup:
Go to the Axis or MultiAxis screen -> Status.
Axis_State.jpg
Various states an axis can be found in.
See also
RSIState, SourceGet
 
Examples
AxisStatus.cpp, AxisStatus.cs, CustomEtherCATHome.cpp, SyncOutputWithMotion.cpp, and UpdateBufferPoints.cpp.