gclib  2.0.8
Communications API for Galil controllers and PLCs

◆ GCmd()

GReturn GCALL GCmd ( GCon  g,
GCStringIn  command 
)

Wrapper around GCommand for use when the return value is not desired.

The returned data is still checked for error, e.g. ? or timeout, but is not brought out through the prototype.

Parameters
gConnection's handle.
commandNull-terminated command string to send to the controller.
Returns
The success status or error code of the function. See gclib_errors.h for possible values.

See x_gcommand.cpp for an example.

Definition at line 237 of file gclibo.c.