CNC Machinist Calculator Ultra

Home › M-codes › Haas NGC › M21-M25

M21-M25 Optional user M codes with M-Fin

Haas NGC M-code · Mill

User M codes that turn on an output relay and wait for an M-Fin signal from outside equipment before the program continues.

Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.

Format

M21 to M25

How it works

Not modal. Acts once on the line where it is commanded.

Example program

G91 G28 Z0. (Z HOME)
M21 (CYCLE THE PART MARKER, WAIT FOR FINISH)
G90 G00 X2. (CONTINUE AFTER M-FIN)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M29 · M51-M58

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

App Store Google Play