Home › M-codes › Haas NGC › M125
M125 Built in M code relay 5 with M-Fin
Haas NGC M-code · Lathe
Turns on built in relay 5, pauses the program and waits for an external M-Fin signal. When the signal comes the relay turns off and the program goes on.
Format
M125
How it works
Non-modal. Waits for M-Fin.
Example program
M125 (RUN ACCESSORY, WAIT FOR FINISH SIGNAL)
G00 X2. Z.1 (CONTINUE AFTER M-FIN)
M30 (END)
G00 X2. Z.1 (CONTINUE AFTER M-FIN)
M30 (END)
Example is in inch. Check offsets and clearances first.
Watch out for
- RESET ends a program that is hung up waiting for M-Fin.
- Check the wiring to the accessory. A missing M-Fin stops the program.
Related codes
M125 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | Synchro control with z2-axis |
| DMG Mori MAPPS (Fanuc) | External output |
| Centroid CNC12 Acorn | Protected probe move minus, no contact expected |
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 M125 in the app All Haas NGC M-codes