gclib examples  0
Example Projects for the Communications API for Galil controllers and PLCs
vector_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 Vector Mode Example. More...
 

Detailed Description

See vector() 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 vector mode.
  • How to read and maintain the length of the vector buffer.
  • How to read in a file of vector points and apply them to the controller.

Prerequisites

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

Definition in file vector_example.cpp.