11.12.G28 – Return To Machine Home
CAUTION: This command can be used in different combinations and wrong command can result in unexpected rapid motion. Depending if the machine is in Absolute or Incremental mode the behaviour of G28 command will be very different, extra caution should be used when using this command.
This command is used to move the axis back to the home position of the axis after the machine was homed. Further axis commands can also be combined with G28 to achieve intermediate position.
Syntax & Parameters
G28 – Only G28 can be used, this will move all axis at rapid back to the home position.
X, Y, Z, A, B Value – specifies the intermediate position you wish to move following the distance to move. The distance value will be the current machine units in use.
Example program for moving all together axis to home position
N10 G28 The above gcode will move all axis of the machine at rapid back to the home position.
Example program all axis to machine 0.00
N10 G91 G28 X0 Y0 Z0 The above gcode will move all axis to machine 0.00 as there is no intermediate position to go to first.
Example program to move Z axis first
N10 G91 G28 X0 Y0 Z8 The above gcode will first move the Z axis to 8.00 position and then move all axis to machine 0.00