gclib  1.37.6
Communications API for Galil controllers and PLCs

◆ commands()

GReturn commands ( GCon  g)

Demonstrates various uses of GCommand() and GUtility().

Parameters
gConnection's handle.
Returns
The success status or error code of the function. See gclib_errors.h for possible values.

See commands_example.cpp for an example.

Definition at line 16 of file commands.cpp.

References e(), G_SMALL_BUFFER, G_UTIL_ERROR_CONTEXT, GCmd(), GCmdD(), GCmdI(), GCmdT(), GCommand(), and GUtility().