2025-04-21 4:34 AM - edited 2025-04-21 4:48 AM
I am working on a project to drive a door using a PMSM motor in position control mode. I am trying to add an emergency brake function. In an emergency, when the operator pushes a button, motor should brake and then return to its starting position without harming anyone.
I know there is PWMC_TurnOnLowSides() function (https://community.st.com/t5/stm32-mcus-motor-control/how-can-i-stop-the-motor-urgently/m-p/597309#M8287 ). But it is just stopping the motor, not braking. I have tried this function.
As far as I know, there is no such API in position control mode.
If I am wrong, is there an API to brake the motor in an emergency? Can anyone help me? Do you have any advice for me?
Any information you provide will be welcomed.
Project:
ST MCW Ver : 6.3.2
STM32CubeIDE Ver : 1.18.1
Driving algorithm : FOC
Control board : Nucleo-G474RE
Power board : STEVAL-IHM023V3
Bridge : X-NUCLEO-IHM09M2
Solved! Go to Solution.
2025-04-22 12:33 AM
Hello @EDokm,
Dissipative Brake feature for Over Voltage management is available on EVLSERVO1 or STEVAL-IHM023V3 boards and selected in:
2025-04-22 12:33 AM
Hello @EDokm,
Dissipative Brake feature for Over Voltage management is available on EVLSERVO1 or STEVAL-IHM023V3 boards and selected in:
2025-04-25 2:10 AM - edited 2025-04-25 1:20 PM
Thanks for your response.
Actually, what I need exactly is, while the MC_ProgramPositionCommandMotor1 function is running in position control mode, to have the motor speed sharply decrease to zero (before the MC_ProgramPositionCommandMotor1 function completes its execution) when the emergency stop button is pressed.
Regards.
2025-04-25 6:16 AM
I don't know about the regulations regarding sliding doors, so feel free to ignore this if it doesn't apply - but in the CNC machining world, the "emergency stop" response must be done in hardware, no software can be involved. This is typically done with contactors and relays to de-power the motors and/or switch in heavy dissipative loads The EStop can signal the software to ALSO do things, but the primary "stop" must be hardware controlled.
2025-04-25 1:19 PM
Thank you very much for your interest and response.