using RSI.RapidCode.dotNET;
using System;
{
class Recorder
{
static void Main(string[] args)
{
const int VALUES_PER_RECORD = 2;
const int RECORD_PERIOD_SAMPLES = 1;
const int RECORD_TIME = 5000;
ulong axis0ActualPositionAddress;
ulong ioAddress;
try
{
{
}
controller.
OS.
Sleep(RECORD_TIME);
Console.WriteLine("There are {0} Records available.\n", recordsAvailable);
for (int i = 0; i < recordsAvailable; i++)
{
if ((digitalInputsValue & 0x00010000) == 0x00010000)
{
i = recordsAvailable;
Console.WriteLine("Your encoder position was: " + positionRecord + " when the input triggered.");
}
}
}
{
Console.WriteLine(e.Message);
}
Console.WriteLine("\nPress Any Key To Exit");
Console.ReadKey();
}
}
}