gclib  2.0.8
Communications API for Galil controllers and PLCs
Motion Complete 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.
  • How to move the controller to a precise position.
  • How to monitor the interrupts of the controller.

Prerequisites

A Galil controller with two motors: one connected at the A axis and the other connected at the B axis.

Command Line Arguments

This example requires 1 argument:

  • The IP Address of a Galil controller.
motion_complete_example.exe 192.168.42.96

Example Output

`*************************************************************`
Example GInterrupt() usage
`*************************************************************`
Position: 0, 0, 0, 0, 0, 0, 0, 0
Beginning independent motion...
Motion Complete on A and B
Position: 8000, 10000, 0, 0, 0, 0, 0, 0