using System;
class Template
{
static void Main(string[] args)
{
const int AXIS_NUMBER = 0;
const int ENCODER_RESOLUTION_BITS = 20;
double USER_UNITS = Math.Pow(2, ENCODER_RESOLUTION_BITS);
MotionController controller = MotionController.CreateFromSoftware();
Axis axis = controller.AxisGet(AXIS_NUMBER);
try
{
axis.UserUnitsSet(USER_UNITS);
axis.ErrorLimitTriggerValueSet(1);
axis.PositionSet(0);
axis.ErrorLimitTriggerValueSet(1);
axis.Abort();
axis.ClearFaults();
axis.AmpEnableSet(true);
Console.WriteLine("\nHello RMP");
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
controller.Delete();
Console.WriteLine("\nPress Any Key To Exit");
Console.ReadKey();
}
}