Skip to main content
BTrem.1
Senior
September 9, 2021
Question

Which error bits to read on Motor fault?

  • September 9, 2021
  • 1 reply
  • 658 views

My code reads the motor state and faults after a start-up to ensure the motor is running correctly. I've been using MC_GetCurrentFaultsMotor1() for motor faults but it NEVER reports other than zero. I've primarily been using motor state and speed to determine if a fault occurred.

For example I may read FAULT_NOW (10) or FAULT_OVER (11) but the procedure noted always reports 0. Is there a procedure that reports the most recent fault, even if it has already been cleared?

Thkx

This topic has been closed for replies.

1 reply

TDK
Super User
September 11, 2021

Perhaps MC_GetCurrentFaultsMotor1 would provide more info.

0693W00000Dmt7AQAR.png 

https://www.st.com/resource/en/user_manual/dm00490980-stm32-motor-control-sdk-stmicroelectronics.pdf

Might also be that the control software is acknowledging and clearing fault bits. I'm guessing.

"If you feel a post has answered your question, please click ""Accept as Solution""."