CNC Machinist Calculator Ultra

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

AddressWhat it does
TPocket 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)

Example is in inch. Check offsets and clearances first.

Watch out for

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)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M06 · M38

M39 on other controls

The same number can mean something different on another control.

ControlMeaning
Centroid CNC12 AcornAir 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

App Store Google Play