Home › M-codes › Haas NGC › M51-M58
M51-M58 Optional user M codes on
Haas NGC M-code · Mill
Turns on one of the optional user relays. M51 turns on relay 1 up to M58 for relay 8. They are turned off with M61 to M68.
Format
M51 to M58
How it works
Modal, the relay stays on until the matching M61 to M68.
Example program
M51 (USER RELAY 1 ON, FOR EXAMPLE AN AIR VISE)
G04 P1. (WAIT 1 SECOND)
M61 (USER RELAY 1 OFF)
G04 P1. (WAIT 1 SECOND)
M61 (USER RELAY 1 OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- The program does not wait for a finish signal. Use M21 type codes when it must wait.
Related codes
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-M58 in the app All Haas NGC M-codes