CNC Machinist Calculator Ultra

Home › M-codes › Haas NGC › M126

M126 Built in M code relay 6 with M-Fin

Haas NGC M-code · Lathe

Turns on built in relay 6, 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

M126

How it works

Non-modal. Waits for M-Fin.

Example program

M126 (RUN ACCESSORY, WAIT FOR FINISH SIGNAL)
G00 X2. Z.1 (CONTINUE AFTER M-FIN)
M30 (END)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M129 · M51

M126 on other controls

The same number can mean something different on another control.

ControlMeaning
Doosan (Fanuc)Synchro control cancel
DMG Mori MAPPS (Fanuc)External output
Heidenhain TNC (ISO)Shortest path for rotary axes
Centroid CNC12 AcornProtected probe move plus, no contact expected
Hurco WinMax (NC)Shortest rotary path on

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 M126 in the app All Haas NGC M-codes

App Store Google Play