gclib  2.0.8
Communications API for Galil controllers and PLCs

◆ GInfo()

GReturn GCALL GInfo ( GCon  g,
GCStringOut  info,
GSize  info_len 
)

Uses GUtility() and G_UTIL_INFO to provide a useful connection string.

Parameters
gConnection's handle.
infoBuffer to hold the output string. Buffer will be null terminated, even if the data must be truncated to do so.
info_lenLength of buffer.
Returns
The success status or error code of the function. See gclib_errors.h for possible values.

The response is address, revision_report, serial_number. For example:

COM2, RIO47102 Rev 1.1j, 37290

See x_examples.cpp for an example.

Definition at line 49 of file gclibo.c.