11 using System.Threading;
15 public static partial class Examples
48 gclib.GCommand(
"SH AB");
49 gclib.GCommand(
"DP 0,0");
51 gclib.GCommand(
"CAS");
52 gclib.GCommand(
"VS 20000");
53 gclib.GCommand(
"VA 200000");
54 gclib.GCommand(
"VD 200000");
55 gclib.GCommand(
"VM AB");
57 using (StreamReader reader =
new StreamReader(file))
60 int capacity = gclib.GCmdI(
"MG _LMS");
61 Load_Buffer(gclib, reader, capacity);
63 gclib.GCommand(
"BG S");
70 capacity = gclib.GCmdI(
"MG _LMS");
71 }
while (Load_Buffer(gclib, reader, capacity));
75 gclib.GMotionComplete(
"S");
80 private static bool Load_Buffer(gclib gclib, StreamReader reader,
int capacity)
84 for (; capacity > 1; capacity--)
87 if ((s_cmd = reader.ReadLine()) !=
null)
90 gclib.GCommand(s_cmd);
const int GALIL_EXAMPLE_OK
Examples success code.
static int Vector_Mode(gclib gclib, string file)
Puts controller into Vector Mode and accepts a file defining vector points.