How do you set up maximum spindle speed in the program?
What program? What machine? What are you trying to do?