Learn how to read axis status.
- Warning
- This is a sample program to assist in the integration of the RMP motion controller with your application. It may not contain all of the logic and safety features that your application requires. We recommend that you wire an external hardware emergency stop (e-stop) button for safety when using our code sample apps. Doing so will help ensure the safety of you and those around you and will prevent potential injury or damage.
The sample apps assume that the system (network, axes, I/O) are configured prior to running the code featured in the sample app. See the Configuration page for more information.
📜 Axis Status
Learn how to use:
1. Axis.StateGet
2. Axis.SourceGet
3. Axis.SourceNameGet
4. Axis.StatusBitGet
Console.WriteLine("Your Axis is in state: " + state);
switch (state)
{
break;
Console.WriteLine("Your Axis is in state: " + state);
Console.WriteLine(
"The source of the axis error is: " + axis.
SourceNameGet(source));
break;
default:
Console.WriteLine("");
break;
}
Learn more in the concept page.