Home › G-codes › Okuma OSP › G51
G51 Scaling on
Okuma OSP G-code · Mill
Enlarges or reduces the programmed geometry around a center point. Used to cut the same shape at a different size.
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, check the manual for the format |
How it works
Modal. Cancel with G50.
Example program
O1000 (OKUMA MILL SAMPLE)
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G51 X0 Y0 P.5 (HALF SIZE, FORMAT TO VERIFY)
N3 CALL O100 (CUT THE SHAPE)
…
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G51 X0 Y0 P.5 (HALF SIZE, FORMAT TO VERIFY)
N3 CALL O100 (CUT THE SHAPE)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Cutter compensation values are not scaled. Check the result on a dry run.
- Cancel scaling before the next tool.
Related codes
G51 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Scaling |
| Haas NGC | Scaling |
| Mazak (EIA) | 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 Okuma OSP 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 Okuma OSP G-codes