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

Introduction to Programming
Chapter 10
10-35
When you repeat the same series of blocks more than once, we recommend
that you program them using a subprogram.
This section explains the following:
1) Main and subprograms
2) Subprogram calls
Important: To make jumps, loops, or calculations within an executing
program or subprogram, use any of the paramacro features as described in
chapter 20.
Use P words in a subprogram call (M98) or paramacro call to designate the
specific program being called. The P address is followed by the program
name being called.
Use L words in a subprogram call (M98) and some cycles to designate a
repeat count for a subprogram. The number following the L address
designates the number of times a subprogram is executed consecutively
before execution is returned to the main program.
For details on subprograms, see page 10-12.
The spindle function has two modes:
Constant Surface Speed Mode (G96) maintains the speed of the part
surface relative to the grinding wheel surface at a constant rate. A
change in part or wheel diameter results in a change in spindle speed as
needed to maintain the surface speed programmed with a G96 S word.
Wheel diameter is only monitored if S axis is selected in AMP as the
CSS axis.
RPM Spindle Speed Mode (G97) maintains a constant spindle speed
equal to the programmed S word, making the actual surface speed
dependent on the working diameter.
Spindle speed and surface speed values are programmed by an S word
followed by as many as four digits. S words are modal and remain active
until another S word is executed.
Important: Your system installer sets a maximum speed for each gear
range in AMP. If you program an S word requesting a spindle speed that
exceeds this limit, the spindle speed is held at the AMP defined maximum.
A new value can be set for this maximum RPM by programming a G92
followed by an S word (see page 12-43).
10.5.9
P,L (Main Program Jumps
and Subprogram Calls)
10.5.10
S Word (Spindle Speed)