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
X | X coordinate of the end point in millimetres | optional |
Y | Y coordinate of the end point in millimetres | optional |
Z | Z depth in millimetres | optional |
T | Tool number | optional |
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.
Example
G0 X492.923 Y221.021 Z-81.000 T43Notes
- 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
- No cutting moves foundUnsupported
- First G0 has no tool numberUnsupported
- More than one path in a programUnverified
- Working a face other than the topUnverified