gclib  1.34.15
Communications API for Galil controllers and PLCs
Position Tracking Example

C++ C# Visual Basic
Example Example Example
Logic Logic Logic
Instructions Instructions Instructions

We are always interested in what our customers would like to see! To request any new examples or supported languages, please email suppo.nosp@m.rt@g.nosp@m.alil..nosp@m.com.


This example demonstrates:

  • How to connect to a controller via IP Address.
  • How to issue basic commands.
  • A controller in position tracking mode.


A Galil controller with a motor connected at the A axis is needed for this example.

Command Line Arguments

This example has 1 required argument and 1 optional argument:

  • Required: The IP Address of a Galil controller.
  • Optional: The speed of the controller in Position Tracking mode (Default 5000).
position_tracking_example.exe 4000

Example Output

Begin Position Tracking with speed 5000. Enter a non-number to exit.
Enter a new position:
Enter a new position:
Enter a new position:
Enter a new position: