Skip to main content
Associate
October 10, 2023
Solved

How can I stop the motor urgently?

  • October 10, 2023
  • 1 reply
  • 2041 views

Hello.

I am testing using MCSDK 6.2.0 on EVSPIN32G4 board.
I've checked the operation of the motor using the start/stop button.

The problem takes approximately 3 seconds or more to stop during operation at a maximum speed of 16000 rpm.
I want to stop urgently, what are the ways?

Regards

    This topic has been closed for replies.
    Best answer by Zied b.

    Hello @Elliot95 ,
    Currently there is no ready-made function to make an emergency stop of the motor, because calling stop motor stops the motor but with inertia it continues to run a little if it is started at high speed. A solution that I can suggest to you is to look at the turn on low side switches, which allows when stopping the motor to apply braking due to the short circuit of the motor phases.

    Ziedb_0-1697026176279.png

    On the workbench you can activate overvoltage with the turn on low side switches function, and if you put the board in overvoltage you will see that it stops immediately the motor. You can try to make an API that calls the PWMC_TurnOnLowSides function used in the mc_tasks file to the TSK_SafetyTask_LSON function and then have the same result.

    Regards

     

    1 reply

    ST Employee
    October 10, 2023

    hello @Elliot95 ,
    Hello, the stop command MC_StopMotor1 should work in your case, but it all depends on the type of your motor and the desired application, does your motor have a lot of inertia for example?
    If you can tell me more about your motor and your application i might be able to help you better.
    Regards

    Elliot95Author
    Associate
    October 11, 2023

    The application will be used for medical drills.
    The type of motor is BLDC motor.
    The following are the settings made through the motor pilot.

    image.png

    Regards

     

    Zied b.Best answer
    ST Employee
    October 11, 2023

    Hello @Elliot95 ,
    Currently there is no ready-made function to make an emergency stop of the motor, because calling stop motor stops the motor but with inertia it continues to run a little if it is started at high speed. A solution that I can suggest to you is to look at the turn on low side switches, which allows when stopping the motor to apply braking due to the short circuit of the motor phases.

    Ziedb_0-1697026176279.png

    On the workbench you can activate overvoltage with the turn on low side switches function, and if you put the board in overvoltage you will see that it stops immediately the motor. You can try to make an API that calls the PWMC_TurnOnLowSides function used in the mc_tasks file to the TSK_SafetyTask_LSON function and then have the same result.

    Regards