Home › G-codes › LinuxCNC Tormach › G92
G92 Coordinate system offset
LinuxCNC Tormach G-code · Mill and lathe
Shifts the coordinates so the current position reads as the given values. Applies on top of the active work system.
Format
G92 [X] [Y] [Z] [A] [B] [C]
Addresses
| Address | What it does |
|---|---|
X Y Z | Value the current position should read |
How it works
Modal offset. Stays until G92.1, G92.2 or a program end.
Example program
G20 G17 G40 G49 G54 G80 G90 G94 (INCH, SAFE START)
(TOOL IS OVER THE PART CORNER)
G92 X0 Y0 (CALL THIS POINT X0 Y0)
G0 X1 Y1
…
(TOOL IS OVER THE PART CORNER)
G92 X0 Y0 (CALL THIS POINT X0 Y0)
G0 X1 Y1
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- By default the G92 offset is kept in parameters 5211 to 5219 and survives a restart. This surprises many users.
- Prefer G10 L20 or G54 to G59.3 for work offsets.
- G52 shares the same offset in LinuxCNC.
Related codes
G92 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Coordinate system setting |
| 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 |
| 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 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 G92 in the app All LinuxCNC Tormach G-codes