using RSI.RapidCode.dotNET;
using RSI.RapidCode.dotNET.Enums;
using System;
{
class CompensatorSingleAxis
{
static void Main(string[] args)
{
try
{
const int AXIS = 0;
const int COMPENSATOR_NUM = 0;
const int USER_UNITS = 1048576;
const int ACCELERATION = 2;
const int DECELERATION = 2;
const int MIN = 0;
const int MAX = 20;
const int DELTA = 1;
const int POINTS = ((MAX - MIN) / DELTA) + 1;
double[] TABLE0 = new double[POINTS] { 0, 1000, -5000, -10000, 10000, 5000, -5000, 2500, 0, 2500, 5000, 7500, 1000, 1250, 1000, 7500, 5000, 2500, 0, -2500, -1000 };
Console.WriteLine("Array length: " + TABLE0.Length);
int points = (int)((MAX - MIN) / DELTA) + 1;
Console.WriteLine("Equation points: " + points);
Console.WriteLine("\nCompensator Configured\n");
while (!Console.KeyAvailable)
{
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
Console.WriteLine("\nPress Any Key To Exit");
Console.ReadKey();
}
}
}