Home › G-codes › Mazak (EIA) › G50
G50 Scaling cancel, machining center / Spindle speed clamp and coordinate setting
Mazak (EIA) G-code · Mill, Lathe
On mills: Scaling cancel, machining center
On a Mazak machining center G50 cancels G51 scaling. On a Mazak lathe G50 is spindle clamp and coordinate setting instead.
Format
Addresses
| Address | What it does |
|---|---|
G50 | No addresses |
How it works
Modal, cancels G51.
Example program
M98 P2000 (CALL THE PROFILE)
G50 (SCALING OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- Do not copy lathe G50 S lines into a mill program.
On lathes: Spindle speed clamp and coordinate setting
On a Mazak lathe G50 S sets the maximum spindle RPM for G96 constant surface speed. G50 X Z sets the coordinate system from the current tool position.
Format
Addresses
| Address | What it does |
|---|---|
S | Maximum spindle RPM |
X Z | Current tool position in the new coordinates |
How it works
S clamp stays in effect until changed.
Example program
G50 S2500 (MAX 2500 RPM)
G96 S600 M03 (600 SFM)
G00 X2.1 Z.1 M08 (START)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Always give G50 S before G96. Without a clamp the spindle can overspeed when facing to center.
- G50 X Z is old style. Use work offsets instead.
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 |
| Okuma OSP | Scaling cancel |
| 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 Mazak (EIA) 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 Mazak G-codes