G51 Scaling
Fanuc G-code · Mill
Scales the programmed shape larger or smaller around a center point. One factor P for all axes, or I J K for each axis when the axis by axis option is set.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G51 X Y Z P or G51 X Y Z I J K
Addresses
| Address | What it does |
|---|---|
X Y Z | Center of scaling |
P | Scale factor for all axes |
I J K | Scale factor for X, Y and Z, when axis by axis scaling is enabled |
How it works
Modal, group 11. Cancel with G50.
Example program
G90 G54 G00 X0. Y0. (CENTER OF PART)
G51 X0. Y0. P2000 (SCALE 2 TIMES, IF P UNIT IS .001)
M98 P1100 (RUN SHAPE SUBPROGRAM)
G50 (SCALING OFF)
G51 X0. Y0. P2000 (SCALE 2 TIMES, IF P UNIT IS .001)
M98 P1100 (RUN SHAPE SUBPROGRAM)
G50 (SCALING OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- This is an option. The unit of P, for example P1000 for 1.0, is set by a parameter. Check before use.
- Tool offsets and Z of canned cycles may not be scaled the way you expect. Read the manual.
- A minus I or J factor mirrors that axis on many setups.
Related codes
G51 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | 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 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 G51 in the app All Fanuc G-codes