Home › M-codes › Centroid CNC12 Acorn › M105
M105 Move minus until switch
Centroid CNC12 Acorn M-code · Mill and lathe
Moves the axis in the minus direction at feed rate F until input P opens. A negative P waits for the input to close.
Format
M105 /axis P F
Addresses
| Address | What it does |
|---|---|
axis | Axis letter after a slash |
P | Input number, negative to wait for closed |
F | Feed rate |
How it works
One shot.
Example program
M105 /X P5 F30. ; MOVE X MINUS UNTIL INP5 OPENS
G92 X10. ; CALL THIS X10
G0 X5.
G92 X10. ; CALL THIS X10
G0 X5.
Example is in inch. Check offsets and clearances first.
Watch out for
- Use a slow feed. The axis stops only when the switch changes.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M105 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Probe arm retract |
| Doosan (Fanuc) | Right spindle stop & selection |
| Mazak (EIA) | Workpiece measurement GRV end |
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 M105 in the app All Centroid CNC12 Acorn M-codes