
PROGRAMMING
B–63444EN/01
9. SPINDLE SPEED FUNCTION (S FUNCTION)
77
This spindle speed can be specified by address S followed by a code. A
block can contain only one S code. Refer to the appropriate manual
provided by the machine tool builder for details such as the number of
digits in an S code or the execution order when a move command and an
S code command are in the same block.
The spindle speed can be specified directly by address S followed by a
five–digit value (rpm). The unit for specifying the spindle speed may vary
depending on the machine tool builder. Refer to the appropriate manual
provided by the machine tool builder for details.
Specify the surface speed (relative speed between the tool and workpiece)
following S. The spindle is rotated so that the surface speed is constant
regardless of the position of the tool.
G96 Sfffff ;
↑Surface speed (m/min or feet/min)
Note : This surface speed unit may change according to
machine tool builder’s specification.
G97 Sfffff ;
↑Spindle speed (rpm)
Note : This surface speed unit may change according to
machine tool builder’s specification.
G50 S_ ;
The maximum spindle speed (rpm) follows S.
9.1
SPECIFYING THE
SPINDLE SPEED
WITH A CODE
9.2
SPECIFYING THE
SPINDLE SPEED
VALUE DIRECTLY
(S5–DIGIT
COMMAND)
9.3
CONSTANT
SURFACE SPEED
CONTROL
(G96, G97)
Format
D Constant surface speed
control command
D Constant surface speed
control cancel command
D Clamp of maximum
spindle speed