gclib examples  0
Example Projects for the Communications API for Galil controllers and PLCs
motion_complete_example.cpp File Reference
#include "examples.h"
#include <iostream>

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 Main Function for Motion Complete Example. More...
 

Detailed Description

See motion_complete() for implementation of logic

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.

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

Definition in file motion_complete_example.cpp.