gclib 2.0.9
Communications API for Galil controllers and PLCs
 
Loading...
Searching...
No Matches
gcl_simple.cpp
Go to the documentation of this file.
1
4//g++ test.cpp -lgalil -lgclib -lgclibo -o test
5
6#include "Galil.h"
7#include <iostream>
8
9using namespace std;
10
11int main()
12{
13 try
14 {
15 cout << Galil::libraryVersion() << '\n';
16 Galil g("10.1.3.169");
17 cout << g.connection() << '\n';
18 return 0;
19 }
20 catch(string s)
21 {
22 cout << s << endl;
23 return 1;
24 }
25}
Definition Galil.h:26
int main(int argc, char *argv[])
Main function for Commands Example.
GReturn vector(GCon g, char *file)
Puts controller into Vector Mode and accepts a file defining vector points.
Definition vector.cpp:36