CNC Machinist Calculator Ultra

Home › G-codes › Okuma OSP › G50

G50 Scaling cancel / Zero shift and max spindle speed

Okuma OSP G-code · Mill, Lathe

On mills: Scaling cancel

Cancels enlargement and reduction of geometry set by G51.

Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.

Format

G50

How it works

Modal, scaling group. Active at power on.

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)
…

The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Zero shift and max spindle speed

With X Z it shifts the coordinate zero so the current position reads the given values. With S it sets the maximum spindle speed.

Format

G50 [X Z C] [S]

Addresses

AddressWhat it does
X Z CValues the current position becomes
SMaximum spindle speed

How it works

Zero shift is one shot but the new zero stays. S limit stays until changed.

Example program

O2000 (OKUMA LATHE SAMPLE)
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X3.2 Z.1 T010101 (START)
N3 G96 S500 M03 (CSS LIMITED BY G50 S)
…

The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G51 · G96 · G97

G50 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucScaling cancel
Haas NGCScaling cancel
Mazak (EIA)Scaling cancel, machining center
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 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 G50 in the app All Okuma OSP G-codes

App Store Google Play