S - Speed / Intensity

The S command is used to specify either the spindle speed or the laser intensity, depending on the active tool and operating mode.

 


Syntax & Parameters

 


Spindle Operation

When used with a spindle, the S value specifies the spindle speed in revolutions per minute (RPM).

 

The spindle speed is typically applied in combination with an M3 or M4 command to start the spindle.

 


Laser Operation

When used with a laser, the S value specifies the laser power level.

 

The laser power is defined as a PWM value from 0 to 1000, which corresponds to 0 to 100 percent laser output.

 


Example Program - Spindle

 

N10 S10000

 

In this example, the spindle speed is set to 10,000 RPM. This command is usually followed by an M3 or M4 command on the same line or the next line to start the spindle.

 


Example Program – Laser

 

N10 S500

 

In this example, the laser intensity is set to 50 percent output.