CNC Machinist Calculator Ultra

Home › G-codes › LinuxCNC Tormach › G38.2

G38.2 Probe toward part, error on miss

LinuxCNC Tormach G-code · Mill and lathe

Moves the probe toward the target and stops when the probe trips. Stops the program with an error if it never trips.

Format

G38.2 X Y Z F

Addresses

AddressWhat it does
X Y ZTarget point the probe moves toward
FProbe feed rate

How it works

Non modal for the move.

Example program

G20 G90 G49 (INCH, ABSOLUTE)
T99 M6 G43 (PROBE)
G0 X1 Y1 Z0.5 (OVER THE PART)
G38.2 Z-0.5 F5 (PROBE DOWN)
…

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

Watch out for

Related codes

G38.3 · G38.4 · G10 L20

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 G38.2 in the app All LinuxCNC Tormach G-codes

App Store Google Play