G92 Coordinate system setting / Simple threading cycle
Fanuc G-code · Mill, Lathe
On mills: Coordinate system setting
Tells the control that the current tool position has the given coordinates. Shifts all work offsets. An old method of setting part zero.
Format
Addresses
| Address | What it does |
|---|---|
X Y Z | Coordinates the current position should have |
How it works
One shot, group 00. The shift it makes stays until cancelled.
Example program
G92 X0. Y0. (CALL THIS POINT ZERO)
G92.1 X0. Y0. (CLEAR THE SHIFT LATER)
Example is in inch. Check offsets and clearances first.
Watch out for
- The shift affects G54 to G59 at once and can stay after the program ends. Clear it with G92.1 or as the builder says.
- Use work offsets instead. G92 depends on where the tool was when the line ran.
On lathes: Simple threading cycle
Each line cuts one full thread pass: rapid in, thread along Z, pull out, rapid back. Write one line per pass with a new X. Add R for a taper thread.
Format
Addresses
| Address | What it does |
|---|---|
X Z | Pass diameter and thread end |
U W | Incremental end point |
R | Taper, radius difference from start to end |
F | Lead, 1 divided by threads per inch |
How it works
Modal, group 01. Cancel with G00 or G01.
Example program
G97 S900 M03 (CONSTANT RPM)
G00 X.6 Z.3 M08 (START POINT)
G92 X.47 Z-.75 F.0769 (PASS 1)
…
The full 10-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Use G97 constant RPM.
- The end chamfer pull out is set by parameter and often switched by builder M codes.
- Start at least 3 leads before the thread.
Related codes
G92.1 · G52 · G54 · G76 · G32 · G97
G92 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Set work coordinate shift |
| Mazak (EIA) | Threading cycle |
| Okuma OSP | Setting of work coordinate system |
| Mitsubishi M70 M80 | Coordinate system setting |
| Brother Speedio | Coordinate system setting |
| Fagor 8055 8065 | Coordinate preset or spindle speed limit |
| LinuxCNC Tormach | Coordinate system offset |
| Mach3 Mach4 | Set position offset |
| Centroid CNC12 Acorn | Set current position |
| Hurco WinMax (NC) | Set part zero at current position |
| Fadal | Absolute preset |
| Swiss (Citizen Star) | Threading cycle |
Every G-code for Fanuc 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 G92 in the app All Fanuc G-codes