CNC Machinist Calculator Ultra

Home › M-codes › Haas NGC › M04

M04 Spindle on counterclockwise / Spindle on reverse

Haas NGC M-code · Mill, Lathe

On mills: Spindle on counterclockwise

Starts the spindle counterclockwise at the S speed. Used for left hand tools.

Format

M04 S

Addresses

AddressWhat it does
SSpindle speed in RPM

How it works

Modal, stays on until M03, M05, M00, M30 or a tool change.

Example program

T9 M06 (LEFT HAND TOOL)
G90 G54 G00 X0. Y0. S1500 M04 (SPINDLE ON CCW)
G43 H09 Z1. (LENGTH COMP)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Spindle on reverse

Starts the main spindle in reverse at the S speed. Used for tools mounted upside down or back side work.

Format

M04 [S]

Addresses

AddressWhat it does
SSpindle speed

How it works

Modal until M03 or M05.

Example program

T0202 (UPSIDE DOWN OD TOOL)
G97 S1200 M04 (SPINDLE REVERSE 1200 RPM)
G00 G54 X2.1 Z.1 (APPROACH)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M03 · M05

M04 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucSpindle on, reverse
Doosan (Fanuc)Left spindle reverse rotation
DMG Mori MAPPS (Fanuc)Spindle start(reverse)
Mazak (EIA)Spindle reverse rotation
Okuma OSPSpindle counter clockwise (Lathes & Mills)
Mitsubishi M70 M80Spindle on counterclockwise
Brother SpeedioSpindle on counterclockwise
Siemens 840D 828DSpindle on counterclockwise
Heidenhain TNC (ISO)Spindle on counterclockwise
Fagor 8055 8065Spindle counterclockwise
LinuxCNC TormachSpindle counterclockwise
Mach3 Mach4Spindle on counterclockwise
Centroid CNC12 AcornSpindle on counterclockwise
Hurco WinMax (NC)Spindle on counterclockwise
FadalSpindle on counterclockwise
Swiss (Citizen Star)Main spindle reverse

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 M04 in the app All Haas NGC M-codes

App Store Google Play