G28.1 G-code

G28.1 means “store the origin/park position that the machine goes to when the G28 command is issued”.

This position is stored into memory, but is lost if the machine is reset.

You can make that position permanent by sending the M500 G-code to save the position into the configuration override.

In Smoothieware V2, G28.1 continues to support storing a park position, though its behavior in grbl mode may have been refined compared to V1. The command sets a predefined position that can be returned to using G28.2 in non-grbl mode.

Like V1, the position is stored in memory but is lost on reset. Use M500 to persist the position.

Format

The command is used as such:

G28.1 X10 Y10

Which means: record the origin position as being at the X position 10 and Y position 10

Parameters

Parameter Usage Example
X Record origin position for X axis G28.1 X10
Y Record origin position for Y axis G28.1 Y10
Z Record origin position for Z axis G28.1 Z10

Friend G-codes

This G-code sets the origin position that the G28 G-code goes to.

Use the M500 G-code to save this position into the config-override permanently.

See also: G28 (go to origin), G28.2 (move to predefined position)

This G-code sets the park position. In non-grbl mode, G28.2 will move to the position set by G28.1. In grbl mode, G28 performs a homing cycle instead.

Use the M500 G-code to save this position into persistent storage.

Related commands: G28 (home axes), G28.2 (go to park position), G28.3 (manual homing)

Further reading

These resources are used as references for Gcode:

This is a wiki! If you'd like to improve this page, you can edit it on GitHub.