using RSI.RapidCode.dotNET;
using System;
{
class SCurveMotion
{
static void Main(string[] args)
{
const int AXIS_NUMBER = 0;
const int RELATIVE_POSITION = 100;
const int USER_UNITS = 1048576;
const int VELOCITY = 10;
const int ACCELERATION = 10;
const int DECELERATION = 10;
const int JERK_PCT = 50;
try
{
Console.WriteLine("SCurve Motion Example\n");
Console.WriteLine("SCurve Profile: In Motion...\n");
axis.
MoveSCurve(RELATIVE_POSITION, VELOCITY, ACCELERATION, DECELERATION, JERK_PCT);
Console.WriteLine("SCurve Profile: Completed\n");
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
Console.WriteLine("\nPress Any Key To Exit");
Console.ReadKey();
}
}
}