Home › M-codes › Heidenhain TNC (ISO) › M4
M4 Spindle on counterclockwise
Heidenhain TNC (ISO) M-code · Mill
Starts the spindle counterclockwise. Used for left hand taps and left hand tools.
Format
M4
Addresses
| Address | What it does |
|---|---|
M4 | No addresses |
How it works
Modal. Acts at start of block.
Example program
N30 T4 G17 S300 *
N40 G00 X+20 Y+20 M4 *
N50 Z+2 *
N40 G00 X+20 Y+20 M4 *
N50 Z+2 *
Example is in inch. Check offsets and clearances first.
Watch out for
- Make sure the tool is a left hand cutter before using M4 for milling.
Related codes
M4 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Spindle on, reverse |
| Haas NGC | Spindle on counterclockwise |
| Doosan (Fanuc) | Left spindle reverse rotation |
| DMG Mori MAPPS (Fanuc) | Spindle start(reverse) |
| Mazak (EIA) | Spindle reverse rotation |
| Okuma OSP | Spindle counter clockwise (Lathes & Mills) |
| Mitsubishi M70 M80 | Spindle on counterclockwise |
| Brother Speedio | Spindle on counterclockwise |
| Siemens 840D 828D | Spindle on counterclockwise |
| Fagor 8055 8065 | Spindle counterclockwise |
| LinuxCNC Tormach | Spindle counterclockwise |
| Mach3 Mach4 | Spindle on counterclockwise |
| Centroid CNC12 Acorn | Spindle on counterclockwise |
| Hurco WinMax (NC) | Spindle on counterclockwise |
| Fadal | Spindle on counterclockwise |
| Swiss (Citizen Star) | Main spindle reverse |
Every M-code for Heidenhain TNC (ISO) 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 M4 in the app All Heidenhain TNC M-codes