gclib  354
Communications API for Galil controllers and PLCs
 All Data Structures Files Functions Variables Typedefs Macros Pages
GReturn GCALL GProgramDownloadFile ( GCon  g,
GCStringIn  file_path,
GCStringIn  preprocessor 
)

Program download from file.

Parameters
gConnection's handle.
file_pathNull-terminated string containing the path to the program file.
preprocessorOptions string for preprocessing the program before sending it to the controller. See GProgramDownload().
Returns
The success status or error code of the function. See gclib_errors.h for possible values.

See x_programs.cpp for an example.

Definition at line 218 of file gclibo.c.

References G_BAD_FILE, G_BAD_FULL_MEMORY, G_NO_ERROR, and GProgramDownload().