TI-RTOS Version: C2000 2.10.01.38
CCS Version: 6.0.1.00040
Platform: Custom board using the TMS320F28052F
The Project is based on Proj_lab10a in motorware 1.01.00.13
The instaspin code is integrated into BIOS (Started with Small_TMS320F28052F)
What is the recommended procedure to reset the InstaSpin controllers? When a fault is detected (Low Voltage, Current Limit, etc) I disable Instaspin using the following procedure
gMotorVars.Flag_Run_Identify = false;
gMotorVars.Flag_enableSys = false;
// disable the PWM
HAL_disablePwm(halHandle);
After the re enabling the control when the fault condition is cleared (e.g. The Bus voltage is within the normal operating range). The drive applies a high voltage which causes a short circuit trip. I tried resetting the CtrlState to CTRL_State_Offline, clearing SpeedTrj_Krpm, and the PI variables for the Iq, Id and Spd PI (Ui, refValue and fbackValue) before restarting the drive but the issue still occurs. Sometimes the drive restarts but there is still a high current spike on the restart.
Thank you for your help
Regards,
Linley