Home › M-codes › Centroid CNC12 Acorn › M26
M26 Set axis home here
Centroid CNC12 Acorn M-code · Mill and lathe
Sets machine home for the named axis to the current position. With no axis it sets Z. L sets home at an encoder count.
Format
M26 [/axis] [L]
Addresses
| Address | What it does |
|---|---|
axis | Axis letter after a slash |
L | Encoder position to call home |
How it works
One shot.
Example program
M91 /X ; X TO MINUS HOME SWITCH
M26 /X ; SET X HOME THERE
M92 /Z ; Z TO PLUS HOME SWITCH
M26 /Z ; SET Z HOME THERE
M26 /X ; SET X HOME THERE
M92 /Z ; Z TO PLUS HOME SWITCH
M26 /Z ; SET Z HOME THERE
Example is in inch. Check offsets and clearances first.
Watch out for
- Changing home moves every work offset and soft limit with it. Use with care.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M26 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | T.S.C coolant on (milling spindle) |
| DMG Mori MAPPS (Fanuc) | External output |
| Mazak (EIA) | Robot service call |
| Okuma OSP | Thread lead along z-axis |
| Hurco WinMax (NC) | Select part probe signal |
Every M-code for Centroid CNC12 Acorn 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 M26 in the app All Centroid CNC12 Acorn M-codes