CNC Machinist Calculator Ultra

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

G51 [X Y Z] [P]

Addresses

AddressWhat it does
X Y ZCenter of scaling. Current position if left out
PScale factor. If left out, Setting 71 is used

How it works

Modal, scaling group 11. Cancel with G50.

Example program

G90 G54 G00 X0. Y0. (CENTER OF SCALE)
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

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

G51

How it works

Group 00.

Example program

(G51 IS LISTED FOR FANUC COMPATIBILITY)
G54 (USE A WORK OFFSET INSTEAD)
G00 X2.1 Z.1 (APPROACH)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G50 · G68 · G52 · G54

G51 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucScaling
Mazak (EIA)Scaling on
Okuma OSPScaling on
Mitsubishi M70 M80Scaling on
Brother SpeedioScaling on
Heidenhain TNC (ISO)Tool preselection
Mach3 Mach4Scaling and mirror
Centroid CNC12 AcornScaling and mirroring on
Hurco WinMax (NC)Scaling
FadalRamp 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

App Store Google Play