CNC Machinist Calculator Ultra

Home › M-codes › Haas NGC › M59

M59 Output relay set / Turn on output relay

Haas NGC M-code · Mill, Lathe

On mills: Output relay set

Turns on a discrete output relay given by P.

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

Format

M59 P

Addresses

AddressWhat it does
POutput relay number

How it works

Modal, the relay stays on until M69.

Example program

M59 P1 (OUTPUT RELAY ON)
G04 P1. (WAIT 1 SECOND)
M69 P1 (OUTPUT RELAY OFF)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Turn on output relay

Turns on a discrete output relay by number. M59 P90 does the same as macro 12090 equals 1 but at the end of the line.

Format

M59 P

Addresses

AddressWhat it does
POutput relay number

How it works

Modal until M69.

Example program

M59 P90 (OUTPUT RELAY 90 ON)
G04 P.5 (WAIT)
M69 P90 (OUTPUT RELAY 90 OFF)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M69 · M51-M58 · M51

M59 on other controls

The same number can mean something different on another control.

ControlMeaning
Doosan (Fanuc)Steady rest unclamp
DMG Mori MAPPS (Fanuc)Air blow OFF
Okuma OSPChucking pressure high
Hurco WinMax (NC)Chip conveyor forward

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

App Store Google Play