Other Parts Discussed in Thread: DRV8320
Tool/software: Code Composer Studio
We are getting consistent overcurrent situations with two different motors when we try to run an higher speeds.
One motor trips the over current at about 450 Hz and the other one at about 560 Hz.
We have ascertained that the it is NOT the DRV8320 nFAULT that trips the error, instead it is internal to the F280049C.
In 'is07_speed_control.c' line 536 call to function HAL_getTripFaults() return 12 which indicates that
EPWM_TZ_FLAG_OST and EPWM_TZ_FLAG_DCAEVT1 are set for one or more of the PWMs.
But I have a hard time following the code and CPU datasheet to see what is the actual mechanism
how the over current is detected.
When the over current is detected the average current used by the DRV8320 is 2 Amps at 24V and the
Idq_in_A[1] indicates about 6 amps while the Vdq_outV indicates about 6 V so both indicate around 40W ... 50
watts which makes sense to me and is nowhere near what is the max for that motor.
An additional data point which maybe related is that at low rpm (<20 Hz) the motor/system has hard time
starting the motor at correct direction and speed, instead the motorVar.speed_Hz wanders around -12..10 Hz.
I include the user.h motor settings for reference:
#elif (USER_MOTOR == WONSMART_WS9250_24_240_X200)
#define USER_MOTOR_TYPE MOTOR_TYPE_PM
#define USER_MOTOR_NUM_POLE_PAIRS (2)
#define USER_MOTOR_Rr_Ohm (NULL)
#define USER_MOTOR_Rs_Ohm (0.1378)
#define USER_MOTOR_Ls_d_H (0.0001216)
#define USER_MOTOR_Ls_q_H (0.0001216)
#define USER_MOTOR_RATED_FLUX_VpHz (0.01284)
#define USER_MOTOR_MAGNETIZING_CURRENT_A (NULL)
#define USER_MOTOR_RES_EST_CURRENT_A (1.0)
#define USER_MOTOR_IND_EST_CURRENT_A (-1.0)
#define USER_MOTOR_MAX_CURRENT_A (10.0)
#define USER_MOTOR_FLUX_EXC_FREQ_Hz (5.0)
#define USER_MOTOR_FLUX_EST_FREQ_HZ (20.0)
#define USER_MOTOR_FREQ_LOW_HZ (10.0) // Hz - suggested to set to 10% of rated motor frequency
#define USER_MOTOR_FREQ_HIGH_HZ (100.0) // Hz - suggested to set to 100% of rated motor frequency
#define USER_MOTOR_FREQ_MAX_HZ (1200.0) // Hz - suggested to set to 120% of rated motor frequency
#define USER_MOTOR_VOLT_MIN_V (3.0) // Volt - suggested to set to 15% of rated motor voltage
#define USER_MOTOR_VOLT_MAX_V (24.0) // Volt - suggested to set to 100% of rated motor voltage
#define USER_MOTOR_NUM_ENC_SLOTS (NULL)










