Home › M-codes › Swiss (Citizen Star) › M18
M18 C axis on (Citizen)
Swiss (Citizen Star) M-code · Lathe
Returns the main spindle to zero and switches it to C axis control for live tool work.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
M18
Addresses
| Address | What it does |
|---|---|
None | No addresses |
How it works
Modal. Cancel with M20.
Example program
M5 (MAIN SPINDLE STOP)
M18 (C AXIS ON)
G00 C0. (INDEX TO ZERO)
M80 S3=3000 (ROTARY TOOL ON)
M18 (C AXIS ON)
G00 C0. (INDEX TO ZERO)
M80 S3=3000 (ROTARY TOOL ON)
Example is in inch. Check offsets and clearances first.
Watch out for
- Only with the C axis option. Stop normal spindle rotation first.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M18 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Pallet clamp and close APC door |
| Doosan (Fanuc) | Machine lock cancel |
| Mazak (EIA) | Spindle orientation 240° (for AJC) |
| Okuma OSP | Oriented spindle stop Cancel |
| Fadal | Cycle Cushman indexer |
Every M-code for Swiss (Citizen Star) 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 M18 in the app All Swiss M-codes