Home › G-codes › Swiss (Citizen Star) › G50
G50 Max spindle speed and coordinate set
Swiss (Citizen Star) G-code · Lathe
With S it clamps max RPM for G96. On Citizen G50 Z0 also sets the Z zero, used on the back spindle after pick-off, and G50 W shifts Z.
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 S | G50 X Z | G50 W
Addresses
| Address | What it does |
|---|---|
S | Max spindle RPM in G96 |
X Z | Set the current position as these values |
W | Shift Z zero by this amount, Citizen |
How it works
One shot. The S clamp stays until changed.
Example program
G50 S6000 (CLAMP MAIN SPINDLE AT 6000 RPM)
G96 S1=400 M3 (CSS 400 SFM, CITIZEN S1)
G00 X.55 Z-.02 T0100 (TOOL 1)
G96 S1=400 M3 (CSS 400 SFM, CITIZEN S1)
G00 X.55 Z-.02 T0100 (TOOL 1)
Example is in inch. Check offsets and clearances first.
Watch out for
- Always clamp RPM before G96 on small Swiss parts. Near center the speed climbs fast.
- On Citizen the sub spindle often gets G50 Z0 after it picks the part. A wrong value moves every back tool.
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 |
| 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 |
Every G-code for Swiss (Citizen Star) 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 Swiss G-codes