Home › M-codes › Haas NGC › M39
M39 Rotate tool turret / Spindle speed variation off
Haas NGC M-code · Mill, Lathe
On mills: Rotate tool turret
Rotates the side mount tool carousel to the T pocket without a tool change. Mostly for service.
Format
T M39
Addresses
| Address | What it does |
|---|---|
T | Pocket number to move to |
How it works
Not modal. Acts once on the line where it is commanded.
Example program
G91 G28 Z0. (Z HOME)
T12 M39 (ROTATE CAROUSEL TO POCKET 12)
M00 (LOAD THE TOOL IN POCKET 12)
T12 M39 (ROTATE CAROUSEL TO POCKET 12)
M00 (LOAD THE TOOL IN POCKET 12)
Example is in inch. Check offsets and clearances first.
Watch out for
- Use M06 for normal tool changes. M39 does not load the tool.
On lathes: Spindle speed variation off
Turns off spindle speed variation.
Format
M39
How it works
Modal.
Example program
M38 (SPEED VARIATION ON)
G01 Z-3. F.008 (TURN)
M39 (SPEED VARIATION OFF)
G76 X.6274 Z-1. K.0613 D.012 F.1 A60 (THREAD)
G01 Z-3. F.008 (TURN)
M39 (SPEED VARIATION OFF)
G76 X.6274 Z-1. K.0613 D.012 F.1 A60 (THREAD)
Example is in inch. Check offsets and clearances first.
Watch out for
- Turn it off before threading so the passes stay in sync.
Related codes
M39 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Centroid CNC12 Acorn | Air drill cycle |
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 M39 in the app All Haas NGC M-codes