using RSI.RapidCode.dotNET;
using System;
{
class FinalVelocity
{
static void Main(string[] args)
{
const int AXIS_NUMBER = 0;
const int USER_UNITS = 1048576;
const int RELATIVE_POSITION = 50;
const int VELOCITY = 10;
const int ACCELERATION = 100;
const int DECELERATION = 100;
const int JERK_PCT = 50;
const int FINAL_VELOCITY = 5;
try
{
Console.WriteLine("\nFinal Velocity Example");
Console.WriteLine("\nSCurve Motion in progress...\n");
VELOCITY,
ACCELERATION,
DECELERATION,
JERK_PCT,
FINAL_VELOCITY);
controller.
OS.
Sleep(8000);
Console.WriteLine("\nSCurve Motion Done\n");
Console.WriteLine(
"\nMotor now spinning at a speed of " + axis.
ActualVelocityGet() +
" revs/sec\n");
controller.OS.
Sleep(2500);
Console.WriteLine("\nMotor Stopped\n");
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
Console.WriteLine("\nPress Any Key To Exit");
Console.ReadKey();
}
}
}