| gclib 1.34.15 Communications API for Galil controllers and PLCs |

## ◆ position_tracking()

GReturn position_tracking | ( | GCon | g,
|  | int | speed = `5000`
| ) |  |

Puts controller into Position Tracking Mode and accepts user-entered positions.

Parameters

  g | Connection's handle.
  speed | Optional speed of the controller in Position Tracking Mode. Default value of 5000.

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

See position_tracking_example.cpp for an example.

Definition at line 15 of file position_tracking.cpp.

References e(), G_CONNECTION_NOT_ESTABLISHED, G_SMALL_BUFFER, GCmd(), and GMotionComplete().