gclib 2.0.9
Communications API for Galil controllers and PLCs
 
Loading...
Searching...
No Matches
Message_Example.vb
Go to the documentation of this file.
1Module Message_Example
3 Dim rc As Integer = Examples.GALIL_EXAMPLE_OK
4 Dim gclib As Gclib = New Gclib()
6 Try
7 If args.Count <> 2 Then
9 Console.WriteLine("Usage: message_example.exe <ADDRESS>")
10
11 Console.Write(vbCrLf + "Press any key to close the example.")
13 Return Examples.GALIL_EXAMPLE_ERROR
14 End If
15
17
18 ' Opens a connection at the provided address
22
23 rc = Examples.Message(gclib)
24 Catch ex As Exception
25 Examples.PrintError(gclib, ex)
26 rc = Examples.GALIL_EXAMPLE_ERROR
29 End Try
30
31 Console.Write(vbCrLf + "Press any key to close the example.")
33
Provides a class that binds to gclib's unmanaged dll. Wraps each call and provides a more user-friend...
Definition gclib.cs:68
GCLIB_DLL_EXPORTED GReturn GCALL GClose(GCon g)
Closes a connection to a Galil Controller.
GCLIB_DLL_EXPORTED GReturn GCALL GOpen(GCStringIn address, GCon *g)
Open a connection to a Galil Controller.
GReturn vector(GCon g, char *file)
Puts controller into Vector Mode and accepts a file defining vector points.
Definition vector.cpp:36
int Main()
Main function for the commands example.