Home › G-codes › Siemens 840D 828D › G96
G96 Constant cutting speed
Siemens 840D 828D G-code · Lathe
Holds the cutting speed constant by changing spindle rpm as the diameter changes. S is the cutting speed. LIMS= clamps the top rpm. G96 also sets feed per revolution like G95.
Format
G96 S LIMS=
Addresses
| Address | What it does |
|---|---|
S | Cutting speed in m per min in metric |
LIMS= | Maximum spindle speed in rpm while G96 is active |
How it works
Modal, G group 15 (feed type). Cancel with G97, G94 or G95.
Example program
G18 G90 G54 G71 ; TURNING, MM
T1 D1 ; ROUGH TURNING TOOL
G96 S200 LIMS=2500 M3 ; 200 M PER MIN, MAX 2500 RPM
G0 X52 Z2 ; APPROACH
…
T1 D1 ; ROUGH TURNING TOOL
G96 S200 LIMS=2500 M3 ; 200 M PER MIN, MAX 2500 RPM
G0 X52 Z2 ; APPROACH
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Always set LIMS=. Without it the spindle runs up to the gear stage limit as X goes toward center.
- F is per revolution in G96, so a feed per minute value will be far too fast.
- On a mill the transverse axis must be named with SCC[X] before G96 works.
Related codes
G96 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Constant surface speed |
| Haas NGC | Constant surface speed on |
| Mazak (EIA) | Constant surface speed |
| Okuma OSP | Constant surface speed on |
| Mitsubishi M70 M80 | Constant surface speed on |
| Fagor 8055 8065 | Constant feed at cutting point (mill) |
| LinuxCNC Tormach | Constant surface speed |
| Mach3 Mach4 | Constant surface speed, Mach4 |
| Centroid CNC12 Acorn | Constant surface speed |
| Swiss (Citizen Star) | Constant surface speed |
Every G-code for Siemens 840D 828D 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 G96 in the app All Siemens 840D 828D G-codes