2021-09-09 04:25 PM
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
2021-09-11 10:12 AM
Perhaps MC_GetCurrentFaultsMotor1 would provide more info.
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.