Home › G-codes › Haas NGC › G51
G51 Scaling / Set global coordinate offset, FANUC
Haas NGC G-code · Mill, Lathe
On mills: Scaling
Scales the programmed positions about a center point by the factor in P. Use it to cut the same shape larger or smaller.
Format
Addresses
| Address | What it does |
|---|---|
X Y Z | Center of scaling. Current position if left out |
P | Scale factor. If left out, Setting 71 is used |
How it works
Modal, scaling group 11. Cancel with G50.
Example program
G51 X0. Y0. P1.5 (SCALE 1.5 TIMES ABOUT X0 Y0)
M98 P1001 (RUN THE SHAPE)
G50 (SCALING OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- Scaling does not change cutter comp offsets or tool lengths. Plan for that.
- Z scaling also scales depths. Leave Z out if depths must not change.
On lathes: Set global coordinate offset, FANUC
Listed by Haas as a FANUC style global coordinate offset. The Haas manual gives no detail for its use on NGC lathes.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
How it works
Group 00.
Example program
G54 (USE A WORK OFFSET INSTEAD)
G00 X2.1 Z.1 (APPROACH)
Example is in inch. Check offsets and clearances first.
Watch out for
- Not commonly used. Use G54 to G59 and G154 work offsets instead.
Related codes
G51 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Scaling |
| Mazak (EIA) | Scaling on |
| Okuma OSP | Scaling on |
| Mitsubishi M70 M80 | Scaling on |
| Brother Speedio | Scaling on |
| Heidenhain TNC (ISO) | Tool preselection |
| Mach3 Mach4 | Scaling and mirror |
| Centroid CNC12 Acorn | Scaling and mirroring on |
| Hurco WinMax (NC) | Scaling |
| Fadal | Ramp slope control |
Every G-code for Haas NGC 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 G51 in the app All Haas NGC G-codes