Hello,
I am working with a custom SW based on Instaspin control lab 12 and custom HW. The control works fine and now I would like to include some diagnosis functions. I would like to detect if the encoder alignment phase during de "Rs Recalibration" state is correctly done or not.
There are some situations in which the encoder synchronization could be not correctly done:
- Encoder Cable is broken
- Motor not connected
If the encoder cable is broken It is supposed that no movement should be observed, so HAL_getQepPosnCounts() should return 0. Is that true? If the encoder is currently aligned the result would be also 0. Is that true? If so, is there any way to ditinguish both situations? For the second situation, is there any way to make an small movement of the motor in order to desalign it (and then repeat the alignment process)?
For the motor not connected diagnosis. I was thinking on measuring the torque given using the following function
USER_computeTorque_Nm(ctrlHandle, gTorque_Flux_Iq_pu_to_Nm_sf, gTorque_Ls_Id_Iq_pu_to_Nm_sf)
but the result it is quite similar with no load (or small load) and when the motor is diconnected. Do you have any recommendation to detect it?
Thank you in advance
Borja