4.9.2 S Code: Spindle Speed Setting
Format:
Sxxxxxx : Spindle speed per minute in rpm
The spindle rpm rpm is usually expressed as a 4-digit number up to 6 digits. The S code is only used to set the spindle speed and does not cause the spindle to rotate. When the M03 (spindle forward) or M04 (spindle reverse) command is required, the spindle will start to rotate.