Home › G-codes › Mach3 Mach4 › G92
G92 Set position offset
Mach3 Mach4 G-code · Mill
Makes the current point read the given values by shifting all work coordinates. Legacy method, so use work offsets instead.
Format
G92 [X] [Y] [Z] [A]
Addresses
| Address | What it does |
|---|---|
X Y Z A | Value the current position should read |
How it works
Stays in effect until G92.1 or reset. Mach3 also keeps it in #5211 to #5216.
Example program
G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
G0 X4.0 Y0 Z1.0 (CURRENT POSITION X4)
G92 X1.0 Y2.0 Z3.0 (NOW READS X1 Y2 Z3)
G0 X0 Y0 (MOVES IN SHIFTED COORDS)
…
G0 X4.0 Y0 Z1.0 (CURRENT POSITION X4)
G92 X1.0 Y2.0 Z3.0 (NOW READS X1 Y2 Z3)
G0 X0 Y0 (MOVES IN SHIFTED COORDS)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- The G92 offset is hidden from the offset pages and stacks on G54. Results get unpredictable.
- Mach3 G92 and G52 share the same mechanism. Do not use both.
- Cancel with G92.1 before the end of the program.
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 |
| LinuxCNC Tormach | Coordinate system 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 Mach3 Mach4 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 Mach3 Mach4 G-codes