CNC Machinist Calculator Ultra

Home › G-codes › LinuxCNC Tormach › G42.1

G42.1 Cutter comp right, programmed diameter

LinuxCNC Tormach G-code · Mill and lathe

Turns on right compensation using a diameter given in the block, not the tool table.

Format

G42.1 D [L]

Addresses

AddressWhat it does
DCutter diameter
LLathe tool orientation 0 to 9, XZ plane only

How it works

Modal, cutter comp group. Cancel with G40.

Example program

G20 G17 G40 G49 G54 G80 G90 G94 (INCH, SAFE START)
T1 M6 G43
S3000 M3
G0 X-1 Y3 Z-0.25
…

The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G42 · G41.1 · G40

Every G-code for LinuxCNC Tormach in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.

Open G42.1 in the app All LinuxCNC Tormach G-codes

App Store Google Play