LinuxCNC G42.1 Dynamic Cutter Compensation Right

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.

Source checked7/7 values · 2026-10-26

Specification

1 source
Languagegcode
CodeG42.1
Groupcutter compensation
SyntaxG42.1 D- <L-> (right of programmed path)
DialectLinuxCNC

Parameters

NameDescription
DCutter diameter.
LTool orientation; defaults to 0 if unspecified.

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

  • 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.
↑↓ navigate↵ openesc close