42 Console.WriteLine(
"Searching...");
63 Console.WriteLine(
"Unexpected controller format");
73 Console.WriteLine(
"Controller Match Found");
80 string new_ip =
$"{ip_bytes[0]}.{ip_bytes[1]}.{ip_bytes[2]}.{address}";
91 Console.WriteLine(
"IP Address assigned");
101 Console.Write(
"No controller matched the entered serial number");
const int GALIL_EXAMPLE_OK
Examples success code.
const int GALIL_EXAMPLE_ERROR
Examples error code.
void GAssign(string ip, string mac)
Assigns IP address over the Ethernet to a controller at a given MAC address.
void GOpen(string address)
Used to open a connection to Galil hardware.
string[] GIpRequests()
Provides a list of all Galil controllers requesting IP addresses via BOOT-P or DHCP.
string GCommand(string Command, bool Trim=true)
Used for command-and-response transactions.
string GInfo()
Provides a useful connection string.
Provides a class that binds to gclib's unmanaged dll. Wraps each call and provides a more user-friend...
GReturn vector(GCon g, char *file)
Puts controller into Vector Mode and accepts a file defining vector points.
static int IP_Assigner(gclib gclib, string serial_num, byte address)
Assigns controller an IP Adress given a serial number and a 1 byte address.