Haas Mill G28 Return to Machine Zero Point

Haas G Codes Mill Reference

G28 Return to Machine Zero Point (Group 00)

The G28 code returns all axes (X, Y, Z, A and B) simultaneously to the machine zero position when no axis is specified on the G28 line. Alternatively, when one or more axes locations are specified on the G28 line, G28 will move to the specified locations and then to machine zero. This is called the G29 reference point; it is saved automatically for optional use in G29. G28 also cancels tool length offsets.

Program Examples

G28 G90 X0 Y0 Z0                      G28 moves to X0 Y0 Z0 in the current work coordinate system then to machine zero.
G28 G90 X1. Y1. Z1.                   G28 moves to X1. Y1. Z1. in the current work coordinate system then to machine zero.
G28 G91 X0 Y0 Z0                      G28 moves directly to machine zero because the initial incremental move is zero.
G28 G91 X-1. Y-1. Z-1                G28 moves incrementally -1. in each axis then to machine zero.


G28 Return to Machine Zero Point