{"id":"gcode-g30","model_id":"G30","name":"LinuxCNC G30","summary":"G30 is a LinuxCNC G-code that makes a rapid move from the current position to a predefined absolute position stored in parameters 5181-5189. Optionally, axis words given with G30 first move those axes to the programmed point (including offsets), then the specified axes rapid to the stored position; axes not named do not move. It functions like G28 but uses the second set of stored parameters.","study_notes":["The final point is taken from parameters 5181-5189; the values are absolute machine coordinates in the native machine units specified in the INI file.","All axes defined in the INI file are moved when a G30 is issued.","If no positions are stored with G30.1, all axes go to the machine origin.","G30.1 stores the current absolute position into parameters 5181-5186.","G30 parameters are used to move the tool when an M6 is programmed if TOOL_CHANGE_AT_G30=1 is set in the [EMCIO] section of the INI file.","Example line: G30 Z2.5 (rapid to Z2.5 then to the Z location specified in #5183)."],"safety_notes":["Only use G30 when the machine is homed to a repeatable position and the desired G30 position has been stored with G30.1.","It is an error if cutter compensation is turned on."],"sources":[{"url":"https://linuxcnc.org/docs/html/gcode/g-code.html#gcode:g30-g30.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":"G30","group":"Go/Set Predefined Position","syntax":"G30 axes","parameters":[{"name":"axes","description":"Optional axis words (X Y Z A B C U V W). The axes move rapidly to the given position including any offsets, then rapidly to the absolute position stored in parameters 5181-5189. Any axis not specified will not move."}],"dialect":"LinuxCNC","related":[],"standards":[]},"url":"https://machineschema.com/instruction/gcode-g30","license":"https://creativecommons.org/licenses/by/4.0/"}