CNC Machinist Calculator Ultra

Home › G-codes › Mach3 Mach4 › G97

G97 Constant RPM, Mach4

Mach3 Mach4 G-code · Mill

Mach4. S is spindle RPM. The normal mode on a mill.

Format

G97 S

Addresses

AddressWhat it does
SSpindle speed in RPM

How it works

Modal, spindle mode group.

Example program

G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
G97 S5000 M3 (5000 RPM)
G43 H1 Z1.0 (LENGTH OFFSET)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G96 · M3

G97 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucConstant surface speed cancel
Haas NGCConstant surface speed off
Mazak (EIA)Constant RPM
Okuma OSPConstant surface speed off
Mitsubishi M70 M80Constant surface speed off
Siemens 840D 828DCancel constant cutting speed
Fagor 8055 8065Constant tool center feed (mill)
LinuxCNC TormachSpindle RPM mode
Centroid CNC12 AcornConstant surface speed cancel
Hurco WinMax (NC)Direct spindle RPM
Swiss (Citizen Star)Constant RPM

Every G-code for Mach3 Mach4 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 G97 in the app All Mach3 Mach4 G-codes

App Store Google Play