Console.WriteLine("📜 Axis Status");
try
{
Console.WriteLine("Axis state: " + state);
switch (state)
{
break;
Console.WriteLine("Axis source error: " + sourceName);
break;
}
Console.WriteLine($"Amp Fault Active: {isAmpFaultActive}");
Console.WriteLine($"Position Error Limit Active: {isPosErrLimActive}");
Console.WriteLine($"Hardware Negative Limit Active: {isHWNegLimActive}");
Console.WriteLine($"Hardware Positive Limit Active: {isHWPosLimActive}");
}
finally
{
}
Constants used in the C# sample apps.
const int AXIS_INDEX
Default: 0.
static void CheckErrors(RapidCodeObject rsiObject)
Checks for errors in the given RapidCodeObject and throws an exception if any non-warning errors are ...
Helpers class provides static methods for common tasks in RMP applications.
Represents a single axis of motion control. This class provides an interface for commanding motion,...
Axis * AxisGet(int32_t axisNumber)
AxisGet returns a pointer to an Axis object and initializes its internals.
static MotionController * Get()
Get an already running RMP EtherCAT controller.
void Delete(void)
Delete the MotionController and all its objects.
Represents the RMP soft motion controller. This class provides an interface to general controller con...
const char *const SourceNameGet(RSISource source)
Get the name (string) of the source of an error for an Axis or MultiAxis.
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.