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

Detailed Description

See record_position() for implementation of logic

Concepts

This example demonstrates:

  • How to connect to a controller via IP Address.
  • How to issue basic commands.
  • How to manage a record array (RC/RD/RA) ring buffer.
  • How to record position data and save to a text file.

Prerequisites

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

Definition in file record_position_example.cpp.