{"id":"gcode-g10-l20","model_id":"G10 L20","name":"LinuxCNC G10 L20 Set Coordinate System","summary":"G10 L20 sets a coordinate system offset to a calculated value so that the current axis coordinates become the programmed values. It uses a P word to choose a coordinate system from 0 to 9 and axis words for the coordinates to set. The document gives G10 L20 P1 X1.5 as an example.","study_notes":["G10 L20 is similar to G10 L2, but the offset is calculated to make the current coordinates become the given value rather than setting the offset directly.","P must evaluate to an integer in the range 0 to 9.","An axis programmed that is not defined in the configuration is an error.","Example: G10 L20 P1 X1.5 sets the X axis current location in coordinate system 1 to 1.5."],"safety_notes":[],"sources":[{"url":"https://linuxcnc.org/docs/html/gcode/g-code.html#gcode:g10-l20","title":"G-Codes","accessed":"2026-10-26"}],"verification":{"status":"source_checked","checked_at":"2026-10-26","values":8,"method":"llm_source_check"},"updated_at":"2026-10-26","type":"instruction","spec":{"language":"gcode","code":"G10 L20","group":"coordinate system","syntax":"G10 L20 P- axes","parameters":[{"name":"P","data_type":"integer","description":"Coordinate system (0-9)"},{"name":"axes","description":"Axis words for the coordinate values to set"}],"dialect":"LinuxCNC","related":[],"standards":[]},"url":"https://machineschema.com/instruction/gcode-g10-l20","license":"https://creativecommons.org/licenses/by/4.0/"}