Home › M-codes › Siemens 840D 828D › M70
M70 Spindle to axis mode
Siemens 840D 828D M-code · Mill and lathe
Switches the spindle into axis mode, for example as C axis on a lathe. The M number is set in machine data, M70 is the default.
Format
M70
How it works
Modal until the spindle gets M3, M4 or M5.
Example program
M70 ; SPINDLE AS C AXIS
G0 C90 ; POSITION C TO 90 DEGREES
M5 ; SPINDLE MODE AGAIN
G0 C90 ; POSITION C TO 90 DEGREES
M5 ; SPINDLE MODE AGAIN
Example is in inch. Check offsets and clearances first.
Watch out for
- Check the machine builder manual. Some machines use another M number or their own codes for C axis.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
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 |
| LinuxCNC Tormach | Save modal state |
| Hurco WinMax (NC) | Pallet change |
Every M-code for Siemens 840D 828D 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 Siemens 840D 828D M-codes