Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual
Page 308

Introduction to Programming
Chapter 10
10-30
Table 10.F
Basic 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
M30
NM
4
Program end and reset (tape rewind)
SPINDLE 1
M03
M
7
Spindle positive rotation (cw)
M04
M
7
Spindle negative rotation (ccw)
M05
M
7
Spindle stop
M19
M
7
Spindle orient
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
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
CSS permit
M59
M
10
CSS prohibit
M98
NM
5
Sub-program call
M99
NM
5
Sub-program end and program jump
See pages 12-72 through 12-74 for descriptions of the spindle M--codes.