Is it possible to set any motor's max rpm on code?

I want to set my motor’s max. rpm to %60. Is there any chance to set the max rpm on code ?

You could make your own function that takes the motor and spin speed which then reduces it to 60% of what you entered.

#include "vex.h"

using namespace vex;

void SpinMax60(motor &Motor, double SpinSpeed){ // Takes in the motor name and spin speed

  if(SpinSpeed > 100) // Keeps from values > 100
    SpinSpeed = 100;
  if(SpinSpeed < -100) // Keeps fro values < -100
    SpinSpeed = -100;

  SpinSpeed *= 0.6; // Maxes SpinSpeed to 60%

  Motor.spin(forward, SpinSpeed, percent); // Spins the motor at reduced speed

}


int main() {
  // Initializing Robot Configuration. DO NOT REMOVE!
  vexcodeInit();

  SpinMax60(Motor1, 100); // Will spin at 60%
  
}