| gclib 1.35.5 Communications API for Galil controllers and PLCs |

## ◆ GMotionComplete()

GReturn GCALL GMotionComplete | ( | GCon | g,
|  | GCStringIn | axes
| ) |  |

Blocking call that returns once all axes specified have completed their motion.

Note
  This function uses a profiled motion indicator, not the position of the encoder. E.G. see the difference between AM (profiled) and MC (encoder-based).

Although using the _BGm operand is the most generally compatible method, there are higher-performance ways to check for motion complete by using the data record, or interrupts. See examples x_dr_motioncomplete() and x_ei_motioncomplete().

Parameters

  g | Connection's handle.
  axes | A null-terminated string containing a multiple-axes mask. Every character in the string should be a valid argument to MG_BGm, i.e. XYZWABCDEFGHST.

Returns
  The success status or error code of the function. See gclib_errors.h for possible values.

See x_gmotioncomplete.cpp for an example.

Definition at line 300 of file gclibo.c.

References G_NO_ERROR, and GWaitForBool().

Referenced by contour(), jog(), position_tracking(), and vector().