4 advanced programming, Speed, M - functions – ACU-RITE CNC 3500i User Manual
Page 410: Miscellaneous (m-code)

384
11 G-Code Edit, Help, & Advanced Features
1
1
.4 A
d
v
a
nced Pr
ogr
a
mming
11.4 Advanced Programming
SPEED
This section covers S and M code formats. The codes are included in
the part program or activated in Manual Data Input Mode.
Format: Sxxxxx
Spindle speed is programmed via S-Code. The RPM range of the
machine determines the S-Code range.
In determining spindle speeds there also may be gear ranges selected
by M-Codes. For example, you may be able to select four ranges of
speed by programming the corresponding M-Code for the required
range. The machine tool builder specifies the range. Check your
machine tool manual for details.
M - Functions
Miscellaneous (M-Code)
Miscellaneous codes control a variety of machine tool functions. The
machine builder assigns them. Be familiar with the M-Codes available
on your machine-control combination. M-function availability varies
from one machine to another. Refer to your machine tool manual for a
complete list of M-Codes.
Code
Function
S (Spindle Speed)
Commands spindle speeds (S).
M-Code
Function
M3 or M03
Spindle Forward.
M4 or M04
Spindle Reverse.
M5 or M05
Spindle Off.
M6 or M06
Tool Mount.
M8 or M08
Coolant On.
M9 or M09
Coolant Off.