gclib 2.0.9
Communications API for Galil controllers and PLCs
 
Loading...
Searching...
No Matches

◆ GProgramDownload()

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

Downloads a program to the controller's program buffer.

Parameters
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.
Returns
The success status or error code of the function. See gclib_errors.h for possible values.

See x_programs.cpp for an example.

Referenced by GProgramDownloadFile(), GSetupDownloadFile(), message(), record_position(), x_ginterrupt(), x_gmessage(), x_nonblocking(), and x_programs().