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

Axis Motion
Chapter 12
12-74
Use the spindle directional M-codes to program each configured spindle
program controlled spindle rotation.
Table 12.D lists the spindle direction codes.
Table 12.D
Spindle Directional Codes
Spindle Type
Directional Code
This means:
Spindle 1
M03
M04
M05
Spindle 1 clockwise
Spindle 1 counterclockwise
Spindle stop
Spindle 2
M03.2
M04.2
M05.2
Spindle 2 clockwise
Spindle 2 counterclockwise
Spindle 2 stop
Spindle 3
M03.3
M04.3
M05.3
Spindle 3 clockwise
Spindle 3 counterclockwise
Spindle 3 stop
Each spindle can have independent rotational control, and the rotational
speed is programmed by using the S-word. If a directional spindle code is
programmed in the same block as the S-word, then that S-word is applied
to each of the block’s associated spindles.
Example 12.23
9/290 Control with 3 Spindles Configured in AMP
N0001 M05
Spindle 1 stop
N0002 M05.2 M05.3
Spindles 2 & 3 stop
N0003 M03 M04.2 S150
Spindle 1 clockwise 150 rpm
Spindle 2 counterclockwise 150 rpm
N0004 M03.2 M03.3 S10
Spindle 2 clockwise 10 rpm
Spindle 3 counterclockwise 10 rpm
Important: On the 9/260 and 9/290 controls, if directional M-codes for
spindles 2 and 3 are programmed but spindles 2 and 3 have not been
configured as active through AMP, these errors are given as decode errors
on any blocks that have directional M-codes of the associated spindle
programmed:
“SPINDLE 2 NOT CONFIGURED” and/or
“SPINDLE 3 NOT CONFIGURED”
12.9.9
Spindle Direction
(M03, M04, M05)