Home › M-codes › LinuxCNC Tormach › M61
M61 Set current tool number
LinuxCNC Tormach M-code · Mill and lathe
Tells LinuxCNC which tool is in the spindle without doing a tool change.
Format
M61 Q
Addresses
| Address | What it does |
|---|---|
Q | Tool number, 0 or higher |
How it works
Non modal.
Example program
M61 Q3 (TOOL 3 IS IN THE SPINDLE)
G43 (APPLY ITS LENGTH)
G0 Z1
G43 (APPLY ITS LENGTH)
G0 Z1
Example is in inch. Check offsets and clearances first.
Watch out for
- Use after a power cycle when the tool in the spindle is known.
- Program G43 after it to apply the length.
Related codes
M61 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Built in M code relay 1 off |
| Doosan (Fanuc) | Left spindle winding change low speed |
| DMG Mori MAPPS (Fanuc) | APC start command |
| Hurco WinMax (NC) | Chip conveyor stop |
| Fadal | A axis brake off |
Every M-code for LinuxCNC Tormach 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 M61 in the app All LinuxCNC Tormach M-codes