This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HVKIT + Estun_EMJ_04APB22, run MotorWare Lab12 has a problem

Other Parts Discussed in Thread: MOTORWARE, TMDSHVMTRINSPIN, DRV8301, CONTROLSUITE

Hardware: HVKIT + Estun_EMJ_04APB22

Software: motorware_1_01_00_11 's    lab12,  CCS 5.5, Compiler Ver.6.3.2

Phenomenon: motor run forward and reverse erratically

Lab2a, 3a, 5c, 5e is running OK.

Estun_EMJ_04APB22  encoder Signal back to normal

when I meet Lab12, the motor can running as well with DC 30V input, but the problem occurs in AC 220V.

My USER.h setting as follow:

#define USER_IQ_FULL_SCALE_FREQ_Hz        (300.0)

#define USER_IQ_FULL_SCALE_VOLTAGE_V      (390.0) 

 

//Lab3a result

#define   I_A_offset    (0.9943823814)
#define   I_B_offset    (0.9940327406)
#define   I_C_offset    (0.9933456779)

#define   V_A_offset    (0.4033438563)
#define   V_B_offset    (0.4054914117)
#define   V_C_offset    (0.4063789248)

 

 #define USER_PWM_FREQ_kHz                (30.0)

#define USER_NUM_PWM_TICKS_PER_ISR_TICK        (2)

#define USER_NUM_ISR_TICKS_PER_CTRL_TICK       (1)     

#define USER_NUM_CTRL_TICKS_PER_CURRENT_TICK   (1)     

#define USER_NUM_CTRL_TICKS_PER_EST_TICK       (2)  

#define USER_NUM_CTRL_TICKS_PER_SPEED_TICK  (15)  

#define USER_NUM_CTRL_TICKS_PER_TRAJ_TICK   (15)  

#define USER_SYSTEM_BANDWIDTH_SCALE    (1)

 

#define USER_MOTOR_Rs                    (2.304901) //by lab2a

#define USER_MOTOR_Ls_d                 (0.009621198) //by lab2a

#define USER_MOTOR_Ls_q                 (0.009621198) //by lab2a

#define USER_MOTOR_RATED_FLUX           (0.3850078)     //by lab2a

#define USER_MOTOR_MAGNETIZING_CURRENT  (NULL)        

#define USER_MOTOR_RES_EST_CURRENT      (2.0)        

#define USER_MOTOR_IND_EST_CURRENT      (-1.0)        

#define USER_MOTOR_MAX_CURRENT          (3.82)       

#define USER_MOTOR_FLUX_EST_FREQ_Hz     (20.0)        

#define USER_MOTOR_ENCODER_LINES        (2500.0)      

#define USER_MOTOR_MAX_SPEED_KRPM       (3.0)         

#define USER_SYSTEM_INERTIA             (0.01469898224)   //by lab5c

#define USER_SYSTEM_FRICTION            (0.1718443036)//by lab5c

 

others setting are default value , please help me to find the problem

Thank you!