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

◆ GError()

void GCALL GError ( GReturn  rc,
GCStringOut  error,
GSize  error_len 
)

Provides a human-readable description string for return codes.

Parameters
rcThe return code to lookup.
errorThe buffer to fill with the error text. Buffer will be null terminated, even if the data must be truncated to do so.
error_lenThe length of the error buffer.

See x_examples.cpp for an example.

Definition at line 459 of file gclibo.c.

References error(), G_ALREADY_OPEN, G_ARRAY_NOT_DIMENSIONED, G_BAD_ADDRESS, G_BAD_FILE, G_BAD_FIRMWARE_LOAD, G_BAD_FULL_MEMORY, G_BAD_LOST_DATA, G_BAD_RESPONSE_QUESTION_MARK, G_BAD_VALUE_RANGE, G_COMMAND_CALLED_WITH_ILLEGAL_COMMAND, G_CONNECTION_NOT_ESTABLISHED, G_DATA_RECORD_ERROR, G_FIRMWARE_LOAD_NOT_SUPPORTED, G_GCAPS_OPEN_ERROR, G_GCAPS_SUBSCRIPTION_ERROR, G_GCLIB_ERROR, G_GCLIB_NON_BLOCKING_READ_EMPTY, G_GCLIB_UTILITY_ERROR, G_GCLIB_UTILITY_IP_TAKEN, G_ILLEGAL_DATA_IN_PROGRAM, G_INVALID_PREPROCESSOR_OPTIONS, G_NO_ERROR, G_OPEN_ERROR, G_READ_ERROR, G_TIMEOUT, G_UNABLE_TO_COMPRESS_PROGRAM_TO_FIT, G_UNSUPPORTED_FUNCTION, G_WRITE_ERROR, and vector().

Referenced by error(), gclib::GArrayDownload(), gclib::GArrayDownloadFile(), gclib::GArrayUpload(), gclib::GArrayUploadFile(), gclib::GAssign(), gclib::GCommand(), gclib::GFirmwareDownload(), gclib::GListServers(), gclib::GMotionComplete(), gclib::GOpen(), gclib::GProgramDownload(), gclib::GProgramDownloadFile(), gclib::GProgramUpload(), gclib::GProgramUploadFile(), gclib::GPublishServer(), gclib::GRecord< T >(), gclib::GRecordRate(), gclib::GRemoteConnections(), gclib::GServerStatus(), gclib::GSetServer(), gclib::GSetupDownloadFile(), and gclib::GWrite().