CNC Machinist Calculator Ultra

Home › G-codes › Fanuc › G50

G50 Scaling cancel / Maximum spindle speed clamp / Coordinate system setting

Fanuc G-code · Mill, Lathe

On mills: Scaling cancel

Cancels scaling started by G51. Positions are no longer multiplied by the scale factor.

Format

G50

How it works

Modal, group 11. Power on default.

Example program

M98 P1100 (SCALED SHAPE)
G50 (SCALING OFF)
G00 Z1. (CLEAR)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Maximum spindle speed clamp

G50 with an S word sets the top RPM the spindle may reach in constant surface speed mode. Always put it before G96.

Format

G50 S

Addresses

AddressWhat it does
SMaximum spindle RPM

How it works

The clamp stays set until changed. Applies to G96 mode.

Example program

T0101 (OD ROUGH TOOL)
G50 S2500 (CLAMP AT 2500 RPM)
G96 S450 M03 (CSS 450 SFM)
G00 X2.1 Z.1 M08 (APPROACH)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Coordinate system setting

G50 with X and Z tells the control where the tool is right now, which sets the work coordinate system. An older method replaced by G54 and the geometry offsets.

Format

G50 X Z

Addresses

AddressWhat it does
XCurrent tool position as a diameter in the new system
ZCurrent tool position in Z in the new system

How it works

Non-modal command. The coordinate system it sets stays.

Example program

G28 U0 W0 (HOME)
G50 X10. Z5. (TOOL TIP IS AT X10. Z5.)
T0101 (FIRST TOOL)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G51 · G96 · G97 · G54 · G28

G50 on other controls

The same number can mean something different on another control.

ControlMeaning
Haas NGCScaling cancel
Mazak (EIA)Scaling cancel, machining center
Okuma OSPScaling cancel
Mitsubishi M70 M80Scaling cancel
Brother SpeedioScaling cancel
Fagor 8055 8065Controlled corner rounding
Mach3 Mach4Scaling cancel
Centroid CNC12 AcornScaling and mirroring off
Hurco WinMax (NC)Scaling cancel
FadalRamp slope control cancel
Swiss (Citizen Star)Max spindle speed and coordinate set

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 G50 in the app All Fanuc G-codes

App Store Google Play