Home › M-codes › LinuxCNC Tormach › M73
M73 Save and auto restore modal state
LinuxCNC Tormach M-code · Mill and lathe
Used inside an O-word subroutine. Saves the modal state and restores it on return or endsub.
Format
M73
Addresses
| Address | What it does |
|---|---|
none | No words |
How it works
Non modal.
Example program
O100 SUB (BOLT CIRCLE)
M73 (SAVE MODES, AUTO RESTORE)
G91 G1 X1 F20 (INCREMENTAL INSIDE SUB)
O100 ENDSUB (MODES RESTORED HERE)
…
M73 (SAVE MODES, AUTO RESTORE)
G91 G1 X1 F20 (INCREMENTAL INSIDE SUB)
O100 ENDSUB (MODES RESTORED HERE)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Makes subroutines safe to change units or distance mode without leaking modes.
Related codes
M73 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | Spindle normal rotation direction |
| DMG Mori MAPPS (Fanuc) | Y-axis mirror image OFF |
| Mazak (EIA) | Outside chuck clamp |
| Okuma OSP | Thread cutting pattern 1 |
| Swiss (Citizen Star) | Back spindle air blow off (Citizen) |
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 M73 in the app All LinuxCNC Tormach M-codes