gclib  1.37.6
Communications API for Galil controllers and PLCs
Jog 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 jogging mode.
  • How to utilize keyboard input at the console.


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

Linux users will need to install the ncurses library.

Command Line Arguments

This example requires 1 argument:

  • The IP Address of a Galil controller.

Example Output

Enter a character on the keyboard to change the motor's speed:
<q> Quit
<a> -2000 counts/s
<s> -500 counts/s
<d> +500 counts/s
<f> +2000 counts/s
<r> Direction Reversal
Jog Speed: 0
Jog Speed: 2000
Jog Speed: 4000
Jog Speed: 6000
Jog Speed: -6000
Jog Speed: -8000
Jog Speed: -6000