using System;
using RSI.RapidCode.dotNET;
using RSI.RapidCode.dotNET.Enums;
{
class MultiAxisVelocityMotion
{
static void Main(string[] args)
{
const int cycles = 5;
int i;
double[] accelerations = new double[6] { 1000, 1000, 1000, 1000, 1000, 1000 };
double[] velocities = new double[6];
Random rnd = new Random();
try
{
Console.WriteLine("Start Multi-Axis Move\n");
for (i = 0; i < cycles; i++)
{
int random_vel1 = rnd.Next(1, 100);
int random_vel2 = rnd.Next(1, 100);
int random_vel3 = rnd.Next(1, 100);
int random_vel4 = rnd.Next(1, 100);
int random_vel5 = rnd.Next(1, 100);
int random_vel6 = rnd.Next(1, 100);
velocities = new double[6] {random_vel1,
random_vel2,
random_vel3,
random_vel4,
random_vel5,
random_vel6 };
System.Threading.Thread.Sleep(100);
}
Console.WriteLine("\nTest Complete\n");
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
Console.WriteLine("\nPress Any Key To Exit");
Console.ReadKey();
}
}
}