gclib 2.0.9
Communications API for Galil controllers and PLCs
 
Loading...
Searching...
No Matches
x_examples.h File Reference
#include <iostream>
#include <string>
#include <cstdio>
#include <cstring>
#include "gclib.h"
#include "gclibo.h"

Go to the source code of this file.

Macros

#define _CRT_SECURE_NO_WARNINGS
 
#define GALIL_EXAMPLE_OK   G_NO_ERROR
 
#define GALIL_EXAMPLE_ERROR   -100
 

Functions

void x_e (GReturn rc)
 A trivial, C++ style return code check used in Galil's examples and demos.
 
int x_gcommand (GCon g)
 Example GCommand() usage.
 
int x_gmotioncomplete (GCon g)
 Example GMotionComplete() usage.
 
int x_gread_gwrite (GCon g)
 Example GRead() and GWrite() usage.
 
int x_programs (GCon g)
 Example GProgramDownload() and GProgramUpload() usage.
 
int x_arrays (GCon g)
 Example GArrayDownload() and GArrayUpload() usage.
 
int x_grecord (GCon g)
 Example GRecord() usage.
 
int x_dr_motioncomplete (GCon g, GCStringIn axes)
 Example of MotionComplete with data records.
 
int x_gmessage (GCon g)
 Example GMessage() usage.
 
int x_ginterrupt (GCon g)
 Example GInterrupt() usage.
 
int x_ei_motioncomplete (GCon g, GCStringIn axes)
 Example of MotionComplete with interrupts.
 
int x_nonblocking (GCon g)
 Examples of using non-blocking operation of GRecord(), GInterrupt(), and GMessage().
 

Detailed Description

Header file for Galil gclib examples. All example functions start with the letter e. Example function calls demonstrating the use of library functions start with x_.

Definition in file x_examples.h.