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
How it works
Modal, scaling group. Active at power on.
Example program
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 an Okuma lathe G50 means zero shift and max spindle speed. Do not mix them up.
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
Addresses
| Address | What it does |
|---|---|
X Z C | Values the current position becomes |
S | Maximum spindle speed |
How it works
Zero shift is one shot but the new zero stays. S limit stays until changed.
Example program
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
- Always set G50 S before G96 so the spindle cannot overspeed near center.
- A reset clears zero shift data. Axes not named are not shifted.
Related codes
G50 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Scaling cancel |
| Haas NGC | Scaling cancel |
| Mazak (EIA) | Scaling cancel, machining center |
| Mitsubishi M70 M80 | Scaling cancel |
| Brother Speedio | Scaling cancel |
| Fagor 8055 8065 | Controlled corner rounding |
| Mach3 Mach4 | Scaling cancel |
| Centroid CNC12 Acorn | Scaling and mirroring off |
| Hurco WinMax (NC) | Scaling cancel |
| Fadal | Ramp 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