14 public static partial class Examples
30 int acc = 100 * speed;
32 gclib.GCommand(
"STA");
33 gclib.GMotionComplete(
"A");
34 gclib.GCommand(
"SHA");
35 gclib.GCommand(
"DPA=0");
36 gclib.GCommand(
"PTA=1");
38 gclib.GCommand(
"SPA=" + speed);
39 gclib.GCommand(
"ACA=" + acc);
40 gclib.GCommand(
"DCA=" + acc);
42 Console.WriteLine(
"Begin Position Tracking with speed " + speed +
43 ". Enter a non-number to exit.\n");
49 Console.WriteLine(
"Enter a new position:");
50 bool ok =
int.TryParse(Console.ReadLine(), out position);
54 gclib.GCommand(
"PAA=" + position);
58 Console.WriteLine(
"Position Tracking has exited");
63 gclib.GCommand(
"STA");
64 gclib.GMotionComplete(
"A");
const int GALIL_EXAMPLE_OK
Examples success code.
static int Position_Tracking(gclib gclib, int speed)
Puts controller into Position Tracking Mode and accepts user-entered positions.