gclib  2.0.8
Communications API for Galil controllers and PLCs

◆ GProgramDownload()

GCLIB_DLL_EXPORTED GReturn GCALL GProgramDownload ( GCon  g,
GCStringIn  program,
GCStringIn  preprocessor 

Downloads a program to the controller's program buffer.

gConnection's handle.
programNull-terminated program for download.
preprocessorOptions string for preprocessing the program before sending it to the controller. Null allows the library to use defaults for the download. See the Program Preprocessor documentation for options.
The success status or error code of the function. See gclib_errors.h for possible values.

See x_programs.cpp for an example.