Home › G-codes › Hurco WinMax (NC) › G31
G31 Skip, probing move
Hurco WinMax (NC) G-code · Mill
Feeds toward a target and stops when the probe triggers. The trip point is stored in #5061 to #5063 for X, Y and Z.
Format
G31 X Y Z F
Addresses
| Address | What it does |
|---|---|
X Y Z | Target point |
F | Probing feed rate |
How it works
Non modal. One block only.
Example program
T20 M06 (SPINDLE PROBE)
G90 G54 G00 X0. Y0. (INSIDE THE BORE)
G43 H20 Z-.25 (PROBE DEPTH)
M26 M42 (PART PROBE, TWO TOUCH)
…
G90 G54 G00 X0. Y0. (INSIDE THE BORE)
G43 H20 Z-.25 (PROBE DEPTH)
M26 M42 (PART PROBE, TWO TOUCH)
…
The full 8-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Two touch is the default. M41 sets single touch and M42 two touch. M26 selects the part probe and M27 the tool probe.
- Cannot run with cutter compensation, G45 to G48 or ASR buffering.
- If the probe never trips, the end point is stored. Check it before using the value.
- Write a found value to a work offset with G10 L2 P1 X[#5061].
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 |
| Fadal | Probe touch function |
Every G-code for Hurco WinMax (NC) 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 Hurco WinMax G-codes