using RSI.RapidCode.dotNET;
using RSI.RapidCode.dotNET.Enums;
using System;
{
class Gearing
{
static void Main(string[] args)
{
const int MASTER_AXIS = 0;
const int SLAVE_AXIS = 1;
const int USER_UNITS = 1048576;
const int POSITION1 = 50;
const int POSITION2 = 0;
const double VELOCITY = 10;
const double ACCELERATION = 100;
const double DECELERATION = 100;
const double JERK_PERCENT = 50;
try
{
Console.WriteLine("Gearing Example");
int numerator = 2;
int denominator = 1;
numerator,
denominator);
Console.WriteLine("\nTesting for Gearing Ratio {0}/{1}\n", numerator, denominator);
VELOCITY,
ACCELERATION,
DECELERATION,
JERK_PERCENT);
numerator = -1;
denominator = 1;
Console.WriteLine("\nTesting for Gearing Ratio {0}/{1}\n", numerator, denominator);
VELOCITY,
ACCELERATION,
DECELERATION,
JERK_PERCENT);
Console.WriteLine("\nDisable Gearing\n");
Console.WriteLine("\nTest Complete\n");
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
Console.WriteLine("\nPress Any Key To Exit");
Console.ReadKey();
}
}
}