G28: Rapid Move to Reference (Zero) position
Overview
- Returns all or only selected axes to home (zero) position via an optional intermediate point.
Command Format
Syntax:G28 (X... Y... Z...) F...
- Sequence
- Axes move to the XYZ positions given, if specified, in the current coordinate system
- i.e.,
G28 X10Y10 does the same thing as G00 X10Y10 for this initial move
- Next, all or only referenced axes move to the machine reference (zero) position
- If Feedrate F is specified, then the specified feedrate is used for this motion instead of max Rapid feedrate.
Examples
G28 X10 Y15 Z20
- Performs 2 moves:
- Intermediate position: Moves to X=10 Y=15 Z=20 position
- Then moves to X=0 Y=0 Z=0 position
G28 X10 Y10
- Performs 2 moves:
- Intermediate position: Moves to X=10 Y=15 position. Z axis is stationary
- Then moves to the X=0 Y=0 position. The Z axis is stationary.
G28 G91 X0 Y0 Z10
- Performs 2 moves:
- Intermediate position: Moves Z axis up by 10 units (X and Y axes move by 0 units)
- Then moves to the X=0 Y=0 Z=0 positiion.
G28
- Performs 2 moves:
- Intermediate position: Moves Z axis up by 10 units
- Then moves to Z=0 position. X and Y axes are stationary.
G28
- Performs a single move directly to X=0 Y=0 Z=0 position.
See Also: