CNC Machinist Calculator Ultra

Home › M-codes › Haas NGC › M51

M51 Built in M code relay 1 on

Haas NGC M-code · Lathe

Turns on built in M code relay 1 and leaves it on. Use M61 to turn it off. Used for customer added devices.

Format

M51

How it works

Modal until M61 or RESET.

Example program

M51 (RELAY 1 ON, CUSTOM DEVICE)
G04 P1. (WAIT 1 SECOND)
M61 (RELAY 1 OFF)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M61 · M59 · M121

M51 on other controls

The same number can mean something different on another control.

ControlMeaning
Doosan (Fanuc)Bar-feeder command 2
DMG Mori MAPPS (Fanuc)Air blow ON
Mazak (EIA)Error detect OFF
LinuxCNC TormachSpindle override control
Centroid CNC12 AcornC axis 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 M51 in the app All Haas NGC M-codes

App Store Google Play