G0: rapid positioning

G0 moves the spindle without cutting. The first G0 in a program is special: its X and Y become the start point of the contour and its T parameter selects the tool. Later G0 moves retract the spindle or return it to the origin.

Syntax

G0 [X<mm>] [Y<mm>] [Z<mm>] [T<n>]

VerifiedReproduced byte for byte from a machine-proven file.

Parameters

XX coordinate of the end point in millimetresoptional
YY coordinate of the end point in millimetresoptional
ZZ depth in millimetresoptional
TTool numberoptional

How it is written to PGM

A rapid that names X or Y becomes a record of 40 bytes opening a path: the point, the working depth, the feed class, the spindle speed and the spindle array. A rapid that only lifts produces nothing; it ends the path being cut. The reference programs put the working depth on this record, while Xilog Plus puts the height to travel at there and plunges separately, so a Z above the face is read as a height and anything else as the depth.

Bytes in the PGM: 40

Example

G0 X492.923 Y221.021 Z-81.000 T43

This line is taken from the machine-proven reference program.

Notes

  • The program must start with a G0 that carries both X and Y and a tool number.
  • A second G0 with X and Y means a second contour. Only one contour per file is supported.
  • Tool T43 is the only number proven against a real PGM; any other tool converts with a warning.

Messages this command can produce

Related commands