| gclib 1.35.5 Communications API for Galil controllers and PLCs |

## ◆ main()

int main | ( | int | argc,
|  | char * | argv[]
| ) |  |

Main function for Commands Example.

Main function for Vector Mode Example.

Main function for Remote Server Example.

Main function for Record Position Example.

Main function for Position Tracking Example.

Main Function for Motion Complete Example.

Main function for Message Example.

Main function for Jog Example.

Main function for IP Assigner Example.

Main function for Contour Example.

commands_example.cpp takes one arguments at the command line: an IP Address to a Galil controllers.

contour_example.cpp takes three arguments at the command line: an IP Address to a Galil controller and a two text files to hold the positional data for two axes.

ip_assigner_example.cpp takes two arguments at the command line: a Serial Number of a Galil controller and 1 byte address.

jog_example.cpp takes one argument at the command line: an IP Address to a Galil controller. When the program is run the controller will be at rest. Press a key at the console to adjust the speed of the controller.

message_example.cpp takes one argument at the command line: an IP Address to a Galil controller.

motion_complete_example.cpp takes one argument at the command line: an IP Address to a Galil controller.

position_tracking_example.cpp takes up to two arguments at the command line: an IP Address to a Galil controller and an optional speed value. If only one argument is provided the program will default to a speed value of 5000.

record_position_example.cpp takes three arguments at the command line: an IP Address to a Galil controller and a two text files to hold the positional data for two axes.

remote_client_example.cpp takes no arguments at the command line.

remote_server_example.cpp takes one argument at the command line: the name you wish to publish your server under.

vector_example.cpp takes two arguments at the command line: an IP Address to a Galil controller and a path to a text file defining vector points. When the program is run the controller will be put into vector mode and loaded with the points defined in the text file. The controller will run until it reaches all points defined in the text file.

Definition at line 18 of file commands_example.cpp.

References G_SMALL_BUFFER, and pause().