This CNC program example shows how spindle speed and direction are controlled. First, the spindle speed is set using the S word with a number representing RPM, for example, S1200 means 1200 revolutions per minute. Then the spindle direction is set using M03 for clockwise rotation or M04 for counterclockwise. The spindle starts spinning at the set speed and direction. The tool then moves to a position while the spindle spins. The spindle is stopped with M05, and the program ends with M30. The execution table traces each step, showing spindle speed and direction changes. The variable tracker shows spindle speed and direction values after each step. Key moments clarify why spindle speed stays constant during moves, what happens if direction changes, and why spindle speed drops to zero after stopping. The visual quiz tests understanding of spindle direction and speed changes at different steps. The concept snapshot summarizes how to set spindle speed and direction in CNC programming.