gclib examples  0
Example Projects for the Communications API for Galil controllers and PLCs
position_tracking_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 Position Tracking Example. More...
 

Detailed Description

See position_tracking() for implementation of logic

Concepts

This example demonstrates:

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

Prerequisites

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

Example Output

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

Definition in file position_tracking_example.cpp.