Home › M-codes › Haas NGC › M93
M93 Axis position capture start
Haas NGC M-code · Mill
Starts capturing an axis position when a discrete input changes. Listed on older Haas controls.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
M93 P Q
Addresses
| Address | What it does |
|---|---|
P | Axis number |
Q | Discrete input number |
How it works
Not modal. Acts once on the line where it is commanded.
Example program
M93 P1 Q2 (CAPTURE X WHEN INPUT 2 CHANGES)
G01 X5. F20. (MOVE PAST THE SENSOR)
M94 (STOP CAPTURE)
G01 X5. F20. (MOVE PAST THE SENSOR)
M94 (STOP CAPTURE)
Example is in inch. Check offsets and clearances first.
Watch out for
- Not confirmed on NGC mills. Check the manual.
Related codes
M93 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | External m-code m93 |
| Centroid CNC12 Acorn | Release or restore motor power |
| Hurco WinMax (NC) | Enable spindle interrupt |
Every M-code for Haas NGC 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 M93 in the app All Haas NGC M-codes