G31 Probe touch function
Fadal G-code · Mill
Moves the probe until it touches, then stops and stores the touch point. Used by the probe routines with L9101.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G31 X Y Z F
Addresses
| Address | What it does |
|---|---|
X Y Z | Target point past the expected surface |
F | Probe feed rate |
How it works
Non modal.
Example program
N1 G0 G40 G49 G80 G90 G17 (FORMAT 2 SAFE START)
N2 T20 M6 (SPINDLE PROBE)
N3 M64 (MP PROBE ACTIVE)
N4 G0 G90 G54 X0. Y0.
…
N2 T20 M6 (SPINDLE PROBE)
N3 M64 (MP PROBE ACTIVE)
N4 G0 G90 G54 X0. Y0.
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Turn on the probe type first with M64, M65, M66 or M67.
- Keep the feed low. If nothing is touched the probe goes all the way to the target point.
- For full probing use fixed subroutine L9101 with R1 picking the function.
Related codes
G31 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Skip function |
| Haas NGC | Skip function, probe move |
| Okuma OSP | Skip function |
| Mitsubishi M70 M80 | Skip function |
| Brother Speedio | Skip function |
| Heidenhain TNC (ISO) | Blank form max point |
| Mach3 Mach4 | Probe move |
| Hurco WinMax (NC) | Skip, probing move |
Every G-code for Fadal 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 G31 in the app All Fadal G-codes