Home › M-codes › Centroid CNC12 Acorn › M106
M106 Move plus until switch
Centroid CNC12 Acorn M-code · Mill and lathe
Moves the axis in the plus direction at feed rate F until input P opens. A negative P waits for the input to close.
Format
M106 /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
M106 /Z P3 F30. ; MOVE Z PLUS UNTIL INP3 OPENS
G92 Z10. ; CALL THIS Z10
G0 Z5.
G92 Z10. ; CALL THIS Z10
G0 Z5.
Example is in inch. Check offsets and clearances first.
Watch out for
- Not a probing move. Use M115 or M116 for probing.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M106 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | B-axis curvic coupling clamp |
| Mazak (EIA) | Workpiece measurement WID start |
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 M106 in the app All Centroid CNC12 Acorn M-codes