{"id":"gcode-g28","model_id":"G28","name":"LinuxCNC G28 Go to Predefined Position","summary":"G28 is a LinuxCNC G-code that makes a rapid move to a predefined absolute machine position stored in parameters. With axis words, it first rapid-moves to the programmed position including offsets, then rapid-moves to the stored predefined position for the specified axes. It is intended for use when the machine is homed to a repeatable position and a G28 position has been stored with G28.1.","study_notes":["G28 uses values stored in parameters 5161-5169 as the final X Y Z A B C U V W point; the G28 and G28 axes descriptions also refer to parameters 5161-5166.","G28.1 stores the current absolute position into parameters 5161-5166.","All axes defined in the INI file will be moved when a G28 is issued.","With G28 axes, any axis not specified will not move.","G28 axes first makes a rapid move to the position specified by the axis words including offsets, then rapids to the stored absolute position for the specified axes.","Parameter values are absolute machine coordinates in the native machine units specified in the INI file."],"safety_notes":["Only use G28 when the machine is homed to a repeatable position and the desired G28 position has been stored with G28.1.","If no positions are stored with G28.1, all axes will go to the machine origin.","It is an error if cutter compensation is turned on."],"sources":[{"url":"https://linuxcnc.org/docs/html/gcode/g-code.html#gcode:g28-g28.1","title":"G-Codes","accessed":"2026-10-26"}],"verification":{"status":"source_checked","checked_at":"2026-10-26","values":5,"method":"llm_source_check"},"updated_at":"2026-10-26","type":"instruction","spec":{"language":"gcode","code":"G28","syntax":"G28 axes","parameters":[{"name":"axes","description":"Any axis as defined in the configuration; optional axis words specify a destination including offsets before the rapid move to the stored predefined position. Any axis not specified will not move."}],"dialect":"LinuxCNC","related":[],"standards":[]},"url":"https://machineschema.com/instruction/gcode-g28","license":"https://creativecommons.org/licenses/by/4.0/"}