28 Console.WriteLine(
"*************************************************************");
29 Console.WriteLine(
"Example GInterrupt() usage");
30 Console.WriteLine(
"*************************************************************");
34 bool ei_support =
false;
41 Console.WriteLine(
"No support on this bus");
64 Console.WriteLine(
"Beginning independent motion...");
66 Check_Interrupts(
gclib,
"AB");
67 Console.WriteLine(
"Motion Complete on A and B");
73 private static void Check_Interrupts(
gclib gclib,
string axes)
77 byte axis_mask = 0xFF;
80 for (
int i = 0; i < axes.Length; i++)
117 while (axis_mask != 0xFF)
const int GALIL_EXAMPLE_OK
Examples success code.
const int GALIL_EXAMPLE_ERROR
Examples error code.
string GCommand(string Command, bool Trim=true)
Used for command-and-response transactions.
byte GInterrupt()
Provides access to PCI and UDP interrupts from the controller.
void GTimeout(Int16 timeout_ms)
Set the timeout of communication transactions. Use -1 to set the original timeout from GOpen().
Provides a class that binds to gclib's unmanaged dll. Wraps each call and provides a more user-friend...
static int Motion_Complete(gclib gclib)
Uses interrupts to track when the motion of controller is completed.