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

◆ 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.

References G_SMALL_BUFFER, GCommand(), and vector().

Referenced by check_interrupts(), commands(), contour(), GRecordRate(), H_DownloadArraysFromList(), H_DownloadData(), ip_assigner(), jog(), load_buf(), load_buffer(), message(), motion_complete(), position_tracking(), record_position(), vector(), x_arrays(), x_dr_motioncomplete(), x_ei_motioncomplete(), x_gcommand(), x_ginterrupt(), x_gmessage(), x_gmotioncomplete(), x_gread_gwrite(), x_grecord(), x_nonblocking(), and x_programs().