| gclib 1.35.5 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.

## Concepts

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.

## Prerequisites

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

Note
  Linux users will need to install the ncurses library.

## Command Line Arguments

This example requires 1 argument:

- The IP Address of a Galil controller.

jog_example.exe 192.168.42.96

## 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