M96 Interrupt type macro enable
Fanuc M-code · Mill and lathe
Turns on the interrupt type custom macro. When the interrupt signal arrives, the control jumps to the named program.
Format
M96 P
Addresses
| Address | What it does |
|---|---|
P | Program number of the interrupt macro |
How it works
Modal until M97.
Example program
M96 P9100 (ENABLE INTERRUPT, RUN O9100 ON SIGNAL)
G01 Z-2. F.008 (CUT, INTERRUPT CAN ACT HERE)
M97 (DISABLE INTERRUPT)
G01 Z-2. F.008 (CUT, INTERRUPT CAN ACT HERE)
M97 (DISABLE INTERRUPT)
Example is in inch. Check offsets and clearances first.
Watch out for
- Needs the interrupt custom macro function and a wired signal.
- The M code numbers are set by parameters. Some builders use M96 for something else.
Related codes
M96 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Jump if no input |
| DMG Mori MAPPS (Fanuc) | Macro interrupt mode |
| Mazak (EIA) | User macro interruption, valid |
| Mitsubishi M70 M80 | Macro interrupt enable |
| Fadal | Roll cutter comp at corners |
Every M-code for Fanuc 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 M96 in the app All Fanuc M-codes