Home › G-codes › Mazak (EIA) › G51
G51 Scaling on
Mazak (EIA) G-code · Mill
Scales the following moves about a center point. Used to cut the same shape larger or smaller from one subprogram.
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
Addresses
| Address | What it does |
|---|---|
X Y Z | Scaling center |
P | Scale factor. Units with and without a decimal point depend on parameter |
How it works
Modal until G50.
Example program
G90 G54 G00 X0. Y0. (CENTER)
G51 X0. Y0. P.5 (HALF SIZE ABOUT ZERO)
M98 P2000 (PROFILE SUBPROGRAM)
G50 (SCALING OFF)
G51 X0. Y0. P.5 (HALF SIZE ABOUT ZERO)
M98 P2000 (PROFILE SUBPROGRAM)
G50 (SCALING OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- Scaling does not scale tool offsets. Cutter comp radius stays the same.
- Check the P factor format on your machine before using it.
Related codes
G51 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Scaling |
| Haas NGC | Scaling |
| 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 Mazak (EIA) 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 Mazak G-codes