Console.WriteLine("📜 Axis: Status");
try
{
Axis axis = controller.AxisGet(axisNumber: 0);
Console.WriteLine($"Your Axis is in state: {state}");
switch (state)
{
break;
Console.WriteLine($"The source of the axis error is: {axis.SourceNameGet(source)}");
break;
default:
Console.WriteLine("Axis is in an unexpected state.");
break;
}
Console.WriteLine($"Amp Fault Active: {isAmpFaultActive}");
Console.WriteLine($"Position Error Limit Active: {isPosErrLimActive}");
Console.WriteLine($"HW Negative Limit Active: {isHwNegLimActive}");
Console.WriteLine($"HW Positive Limit Active: {isHwPosLimActive}");
}
finally
{
controller.Delete();
}
Represents a single axis of motion control. This class provides an interface for commanding motion,...
static MotionController * Get()
Get an already running RMP EtherCAT controller.
Represents the RMP soft motion controller. This class provides an interface to general controller con...
bool StatusBitGet(RSIEventType bitMask)
Return the state of a status bit.
RSIState StateGet()
Get the Axis or MultiAxis state.
RSISource SourceGet()
Get the source of an error state for an Axis or MultiAxis.
RSIEventType
Event Types or Status Bits.
RSISource
Possible sources that have caused an Error state.
Helpers namespace provides utility functions for common tasks in RMP applications.