Rockwell Automation 8520-MUM 9/Series CNC Mill Operation and Programming Manual Documentation Set User Manual
Page 306

Introduction to Programming
Chapter 10
10-32
Table 10.F
M- codes
M-code
Number
Modal or
Non-modal
Group
Number
Function
M00
NM
4
Program stop
M01
NM
4
Optional program stop
M02
NM
4
Program end
M06
NM
4
Tool change
M30
NM
4
Program end and reset (tape rewind)
PRIMARY SPINDLE
M03
M
7
Spindle positive rotation (cw)
M04
M
7
Spindle negative rotation (ccw)
M05
M
7
Spindle stop
M19
M
7
Spindle orient
AUXILIARY SPINDLE 2
M03.2
M
11
Spindle positive rotation (cw)
M04.2
M
11
Spindle negative rotation (ccw)
M05.2
M
11
Spindle stop
M19.2
M
11
Spindle orient
AUXILIARY SPINDLE 3
M03.3
M
12
Spindle positive rotation (cw)
M04.3
M
12
Spindle negative rotation (ccw)
M05.3
M
12
Spindle stop
M19.3
M
12
Spindle orient
M07
M
8
Mist coolant on
M08
M
8
Flood coolant on
M09
M
8
Coolant off
M48
M
9
Overrides enabled
M49
M
9
Overrides disabled
M58
M
10
Reserved for a lathe CSS feature.
Can be used by a mill for any function.
M59
M
10
Reserved for a lathe CSS feature.
Can be used by a mill for any function.
M98
NM
5
Sub-program call
M99
NM
5
Sub-program end and program jump