Home › M-codes › LinuxCNC Tormach › M70
M70 Save modal state
LinuxCNC Tormach M-code · Mill and lathe
Saves the current modal state, such as units, distance mode and feed, at the current call level.
Format
M70
Addresses
| Address | What it does |
|---|---|
none | No words |
How it works
Non modal.
Example program
M70 (SAVE MODES)
G21 G91 (CHANGE MODES FOR A SECTION)
G1 X10 F200
M72 (RESTORE MODES)
G21 G91 (CHANGE MODES FOR A SECTION)
G1 X10 F200
M72 (RESTORE MODES)
Example is in inch. Check offsets and clearances first.
Watch out for
- Restore with M72. M71 throws the saved state away.
Related codes
M70 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | Tail stock quill low pressure advance |
| DMG Mori MAPPS (Fanuc) | Work counter or total counter |
| Siemens 840D 828D | Spindle to axis mode |
| Hurco WinMax (NC) | Pallet change |
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 M70 in the app All LinuxCNC Tormach M-codes