![Okuma OSP-P200L Programming Manual Download Page 58](http://html1.mh-extra.com/html/okuma/osp-p200l/osp-p200l_programming-manual_3667818058.webp)
5238-E P-45
SECTION 5 S, T, AND M FUNCTIONS
SECTION 5 S, T, AND M FUNCTIONS
This section describes the S, SB, T, and M codes that specify the necessary machine operations other than
axis movement commands.
One block can contain: one S code, one T code, and eight M codes.
1.
S Functions (Spindle Functions)
[Function]
By specifying number following address S, spindle speed can be specified.
[Programming format]
S__
[Details]
•
S command range: 0 to 65535
•
If there is an S command and an axis move command in the same block, the S command is
executed first and then the axis move command is executed.
•
The S command will not be canceled when the NC is reset, however, it will be set to 0 when the
power supply is turned off.
•
To rotate the spindle, the S command must be specified in a block that precedes the block
containing the spindle start command or in the same block.
[Supplement]
2.
SB Code Function
[Function]
M-tool spindle speed is specified using address SB.
[Programming format]
SB = __
f an address consisting of two or more characters is used, an equal symbol must be entered before
a numeric value.
•
SB command range: 0 to 65535
•
M-tool spindle rotation (forward, reverse) and stop are specified by M codes.
•
The SB command will not be canceled when the NC is reset, however, it will be set to 0 when
the power supply is turned off.
S
: Spindle speed
SB : Spindle speed of M-tool spindle
T
: Tool number, tool offset number, tool nose radius compensation number
M
: Miscellaneous function to control machine operation
1) For a machine equipped with the transmission gears, the required gear range should be
selected with the corresponding M code.
2) Spindle rotation (forward, reverse) and stop are specified by M codes.