using RSI.RapidCode.dotNET;
using RSI.RapidCode.dotNET.Enums;
using System;
{
class SingleAxisSyncOutputs
{
static void Main(string[] args)
{
const int AXIS_NUMBER = 0;
const int USER_UNITS = 1048576;
const int TOTAL_POINTS = 4;
const int EMPTY_CT = -1;
const int OUTPUT_INDEX = 0;
const int NODE_INDEX = 0;
double[] positions = { 1.0, 2.0, 3.0, 4.0 };
double[] times = { 0.5, 1.0, 2.0, 4.0 };
int outputEnableID = 2;
int outputDisableID = 3;
try
{
axis.
MovePT(
RSIMotionType.RSIMotionTypePT, positions, times, TOTAL_POINTS, EMPTY_CT,
false,
true);
Console.WriteLine("Motion started. Waiting to complete.\n");
Console.WriteLine("Motion Complete. The outputs should have been set\n");
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
Console.WriteLine("\nPress Any Key To Exit");
Console.ReadKey();
}
}
}