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

◆ 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
gConnection's handle.
axesA 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, GWaitForBool(), and vector().

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