| gclib 1.34.15 Communications API for Galil controllers and PLCs |

Macros | Functions
examples.h File Reference
C++ examples
`#include "gclib.h"`
`#include "gclibo.h"`
`#include <iostream>`
`#include <cstdio>`

Go to the source code of this file.

## Macros
#define | _CRT_SECURE_NO_WARNINGS
#define | GALIL_EXAMPLE_OK 0
#define | GALIL_EXAMPLE_ERROR -100

## Functions
void | e (GReturn rc)
| A trivial, C++ style return code check used in Galil's examples and demos. More...
void | error (GCon g, GReturn rc)
| An example of error handling and debugging information.
int | pause ()
| Pauses console apps for a user key stroke.
GReturn | position_tracking (GCon g, int speed=5000)
| Puts controller into Position Tracking Mode and accepts user-entered positions. More...
GReturn | jog (GCon g)
| Puts controller into Jog Mode and accepts user input to adjust the speed. More...
GReturn | vector (GCon g, char *file)
| Puts controller into Vector Mode and accepts a file defining vector points. More...
GReturn | ip_assigner (char *serial_num, int address)
| Assigns controller an IP Adress given a serial number and a 1 byte address. More...
GReturn | commands (GCon g)
| Demonstrates various uses of GCommand() and GUtility(). More...
GReturn | motion_complete (GCon g)
| Uses interrupts to track when the motion of controller is completed. More...
GReturn | message (GCon g)
| Demonstrates how to receive messages from the controller and detect differences in Trace and crashed code. More...
GReturn | record_position (GCon g, char *fileA, char *fileB)
| Record user's training and saves to a text file. More...
GReturn | contour (GCon g, char *fileA, char *fileB)
| Record user's training and plays back training through contour mode. More...
GReturn | remote_server (const char *server_name)
| Publishes local gcaps server to the network. More...
GReturn | remote_client ()
| Lists available remote servers and allows connection to remote server. More...

## Detailed Description

Header file for Galil gclib example projects.

Definition in file examples.h.