| gclib 1.34.15 Communications API for Galil controllers and PLCs |

## ◆ GCmdD()

GReturn GCALL GCmdD | ( | GCon | g,
|  | GCStringIn | command,
|  | double * | value
| ) |  |

Wrapper around GCommand that provides the return value of a command parsed into a double.

Use this function to retrieve the full Galil 4.2 range, e.g. for a variable value with fractional data, or the value of an Analog input or Output.

Parameters

  g | Connection's handle.
  command | Null-terminated command string to send to the controller.
  value | Pointer to a double that will be filled with the return value.

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 289 of file gclibo.c.

References G_NO_ERROR, G_SMALL_BUFFER, and GCommand().

Referenced by commands(), and GRecordRate().