Home › G-codes › LinuxCNC Tormach › G38.4
G38.4 Probe away from part, error on miss
LinuxCNC Tormach G-code · Mill and lathe
Moves the probe away from the part and stops when contact is lost. Error if contact is never lost.
Format
G38.4 X Y Z F
Addresses
| Address | What it does |
|---|---|
X Y Z | Target point the probe moves toward |
F | Probe feed rate |
How it works
Non modal for the move.
Example program
G20 G90 (INCH, ABSOLUTE)
G38.2 Z-0.5 F10 (FAST TOUCH)
G38.4 Z0.1 F1 (SLOW BACK OFF UNTIL CONTACT LOST)
G10 L20 P1 Z0 (SET Z0 AT RELEASE POINT)
…
G38.2 Z-0.5 F10 (FAST TOUCH)
G38.4 Z0.1 F1 (SLOW BACK OFF UNTIL CONTACT LOST)
G10 L20 P1 Z0 (SET Z0 AT RELEASE POINT)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Results go to parameters 5061 to 5069. Parameter 5070 is 1 when contact changed, 0 when not.
- The probe must be tripped at the start.
- Useful as a slow back off after a fast G38.2 touch.
Related codes
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.4 in the app All LinuxCNC Tormach G-codes