The gclib API provides the foundational programming interface to develop software applications with Galil motion controllers and PLCs. The provided interfaces and examples makes it simple to develop software applications in many different languages ranging from very simple implementation requiring little code to C-based development designed for speed and portability.
Click here to view in-depth C/C++ examples that will demonstrate how to use the basics of gclib, such as connecting to the controller and issuing commands, as well as more advanced topics like assigning a controller an IP Address and monitoring interrupts.
|Demonstrates various uses of GCommand() and GUtility().
|Demonstrates how to receive messages from the controller and detect differences in Trace and crashed code.
|Position Tracking Example
|Puts controller into Position Tracking Mode and accepts user-entered positions.
|Puts controller into Jog Mode and accepts user input to adjust the speed.
|Vector Mode Example
|Puts controller into Vector Mode and accepts a file defining vector points.
|IP Assigner Example
|Assigns controller an IP Address given a serial number and a 1 byte address.
|Motion Complete Example
|Uses interrupts to track when the motion of controller is completed.
|Record Position Example
|Record user's training and saves to a text file.
|Record user's training and plays back training through contour mode.
Click here to download download the latest version of gclib to get these examples.
Can't find what you need? Email email@example.com with a description of the example that will help your application.
Other Languages / Compilers
The following example applications demonstrate how to use gclib functions in various programming languages. These are intended to show each of the functions and their proper use to base new software applications using Galil hardware.
|C/C++ Microsoft Visual Studio
|C/C++ MinGW gcc/g++
|C/C++ clang OSX
|Borland Embarcadero C++
|Microsoft Visual Studio VB.NET
|Microsoft Visual Studio C#.NET
Don't see your preferred language/platform? Contact Galil Applications for assistance.