Home › M-codes › LinuxCNC Tormach › M64
M64 Digital output on, immediate
LinuxCNC Tormach M-code · Mill and lathe
Turns on digital output P right away.
Format
M64 P
Addresses
| Address | What it does |
|---|---|
P | Digital output number |
How it works
Non modal.
Example program
G0 X1 Y1
M64 P1 (CLAMP ON NOW)
G4 P0.5 (WAIT FOR CLAMP)
M65 P1 (CLAMP OFF)
M64 P1 (CLAMP ON NOW)
G4 P0.5 (WAIT FOR CLAMP)
M65 P1 (CLAMP OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- Waits for queued motion to finish first, so motion stops briefly.
Related codes
M64 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Built in M code relay 4 off |
| Doosan (Fanuc) | Left spindle reverse & upper coolant on |
| Mach3 Mach4 | Output on now, Mach4 |
| Fadal | MP spindle probe active |
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 M64 in the app All LinuxCNC Tormach M-codes