{"id":"gcode-g42-1","model_id":"G42.1","name":"LinuxCNC G42.1 Dynamic Cutter Compensation Right","summary":"G42.1 is a LinuxCNC G-code that turns on dynamic cutter compensation to the right of the programmed path, with the cutter diameter given by the D word. It works like G42 but also lets the program specify the tool diameter directly; the optional L word sets tool orientation and defaults to 0.","study_notes":["G41.1 is the left-of-path counterpart to G42.1 in the same section.","G41.1 and G42.1 behave the same as G41 and G42 but add direct programming of the tool diameter."],"safety_notes":["It is an error if the YZ plane is active.","The L number must be in the range 0 to 9 inclusive.","Using the L number is an error when the XZ plane is not active.","It is an error to command cutter compensation on when it is already on."],"sources":[{"url":"https://linuxcnc.org/docs/html/gcode/g-code.html#gcode:g41.1-g42.1","title":"G-Codes","accessed":"2026-10-26"}],"verification":{"status":"source_checked","checked_at":"2026-10-26","values":7,"method":"llm_source_check"},"updated_at":"2026-10-26","type":"instruction","spec":{"language":"gcode","code":"G42.1","group":"cutter compensation","syntax":"G42.1 D- <L-> (right of programmed path)","parameters":[{"name":"D","description":"Cutter diameter."},{"name":"L","description":"Tool orientation; defaults to 0 if unspecified."}],"dialect":"LinuxCNC","related":[],"standards":[]},"url":"https://machineschema.com/instruction/gcode-g42-1","license":"https://creativecommons.org/licenses/by/4.0/"}