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
Addresses
| Address | What it does |
|---|---|
P | Output relay number |
How it works
Modal, the relay stays on until M69.
Example program
G04 P1. (WAIT 1 SECOND)
M69 P1 (OUTPUT RELAY OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- Relay numbers depend on the machine and options. Check before use.
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
Addresses
| Address | What it does |
|---|---|
P | Output relay number |
How it works
Modal until M69.
Example program
G04 P.5 (WAIT)
M69 P90 (OUTPUT RELAY 90 OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- Know what the output is wired to before you switch it.
Related codes
M59 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | Steady rest unclamp |
| DMG Mori MAPPS (Fanuc) | Air blow OFF |
| Okuma OSP | Chucking 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