Home › G-codes › Siemens 808D ISO › G51
G51 Scaling on
Siemens 808D ISO G-code · Mill
Scales the programmed shape around a center, with one factor P for all axes or a factor per axis with I J K. A negative axis factor mirrors that axis.
Format
G51 X Y Z P or G51 X Y Z I J K
Addresses
| Address | What it does |
|---|---|
X Y Z | Scaling center, absolute |
P | One factor for all axes. Negative values are not allowed |
I J K | Factor for X, Y and Z. Negative mirrors |
How it works
Modal, group 11. Cancel with G50. Optional function.
Example program
G17 G90 G00 X0. Y0. (START)
M98 P0513 (CONTOUR AS PROGRAMMED)
G51 X0. Y0. I-1000 J1000 (X FACTOR -1, MIRRORS X)
M98 P0513 (MIRRORED CONTOUR)
…
M98 P0513 (CONTOUR AS PROGRAMMED)
G51 X0. Y0. I-1000 J1000 (X FACTOR -1, MIRRORS X)
M98 P0513 (MIRRORED CONTOUR)
…
The full 9-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- MD22914 AXES_SCALE_ENABLE picks P (0) or I J K (1). Mirroring with negative factors needs 1.
- MD22910 sets the factor unit to 0.001 or 0.00001. With 0.001, I2000 is double size and I-1000 mirrors X.
- Scaling does not act on radius comp, tool length or offset values. No G27, G28, G30, G52 to G59 or G92 while on.
- The manual also says the workpiece zero is always the scaling reference. Check that the X Y Z center works on your machine.
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 |
| 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 Siemens 808D ISO 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 Siemens 808D ISO G-codes