Home › M-codes › Haas NGC › M12
M12 5th axis brake on / Auto air jet on
Haas NGC M-code · Mill, Lathe
On mills: 5th axis brake on
Clamps the 5th axis brake.
Format
M12
How it works
Modal, until M13.
Example program
M13 (RELEASE THE BRAKE)
G00 B45. (TILT)
M12 (5TH AXIS BRAKE ON)
G00 B45. (TILT)
M12 (5TH AXIS BRAKE ON)
Example is in inch. Check offsets and clearances first.
Watch out for
- Only on machines with a 5th axis.
On lathes: Auto air jet on
Turns on the optional auto air jet. With S and P it spins the spindle at S RPM with air on for P milliseconds, then turns both off.
Format
M12 [S] [P]
Addresses
| Address | What it does |
|---|---|
S | Spindle RPM while the air blows |
P | Air blast time in milliseconds |
How it works
Modal until M13 when used without P.
Example program
M05 (SPINDLE STOP)
M12 S300 P2000 (AIR BLAST 2 SECONDS AT 300 RPM)
M11 (UNCLAMP CHUCK)
M12 S300 P2000 (AIR BLAST 2 SECONDS AT 300 RPM)
M11 (UNCLAMP CHUCK)
Example is in inch. Check offsets and clearances first.
Watch out for
- Under G14 use M12 for the secondary spindle air blast, not M112.
Related codes
M12 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | Coolject on (upper side) |
| Mazak (EIA) | Milling spindle mode cancel (Turning mode selection) |
| Okuma OSP | Machine m-tool spindle stop |
| Hurco WinMax (NC) | Clamp C axis |
Every M-code for Haas NGC 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 M12 in the app All Haas NGC M-codes