Home › M-codes › Haas NGC › M95
M95 Sleep mode
Haas NGC M-code · Mill, Lathe
On mills: Sleep mode
Puts the machine into sleep mode for a set time, then wakes it up. Used to warm up the spindle before a shift. The time goes in a comment.
Format
M95 (HH:MM)
Addresses
| Address | What it does |
|---|---|
(HH:MM) | Sleep time in hours and minutes inside a comment |
How it works
Not modal. Acts once on the line where it is commanded.
Example program
G91 G28 Z0. (Z HOME)
M95 (02:00)
M98 P9000 (SPINDLE WARM UP AFTER WAKING)
M95 (02:00)
M98 P9000 (SPINDLE WARM UP AFTER WAKING)
Example is in inch. Check offsets and clearances first.
Watch out for
- The time must be written as a comment right after M95.
On lathes: Sleep mode
A long dwell. The comment right after M95 gives the sleep time in hours and minutes. Follow it with warm up moves.
Format
M95 (hh:mm)
Addresses
| Address | What it does |
|---|---|
(hh:mm) | Sleep time in hours and minutes in a comment |
How it works
Non-modal.
Example program
M95 (12:30) (SLEEP 12 HOURS 30 MINUTES)
G97 S500 M03 (WARM UP SPINDLE)
G04 P600. (RUN 10 MINUTES)
M05 (SPINDLE STOP)
G97 S500 M03 (WARM UP SPINDLE)
G04 P600. (RUN 10 MINUTES)
M05 (SPINDLE STOP)
Example is in inch. Check offsets and clearances first.
Watch out for
- The time is the length of the sleep, not the clock time to wake.
- Put spindle warm up after M95 so the machine is ready.
Related codes
M95 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| DMG Mori MAPPS (Fanuc) | Chip removal coolant OFF |
| Centroid CNC12 Acorn | Turn PLC request bit off |
| Fadal | Feed forward cancel |
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 M95 in the app All Haas NGC M-codes