| gclib 422 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.

Parameters

  g | Connection's handle.
  program | Null-terminated program for download.
  preprocessor | Options 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(), and GSetupDownloadFile().