Other Parts Discussed in Thread: MOTORWARE
Hi,
I have a Problem with the Labs. In the Lab 2 you have to estimate the Motorvalues (Code bellow)
#elif (USER_MOTOR == Q60)
#define USER_MOTOR_TYPE MOTOR_Type_Pm
#define USER_MOTOR_NUM_POLE_PAIRS (14)
#define USER_MOTOR_Rr (NULL)
#define USER_MOTOR_Rs (NULL)
#define USER_MOTOR_Ls_d (NULL)
#define USER_MOTOR_Ls_q (NULL)
#define USER_MOTOR_RATED_FLUX (NULL)
#define USER_MOTOR_MAGNETIZING_CURRENT (NULL)
#define USER_MOTOR_RES_EST_CURRENT (1.0)
#define USER_MOTOR_IND_EST_CURRENT (-1.0)
#define USER_MOTOR_MAX_CURRENT (3.0)
#define USER_MOTOR_FLUX_EST_FREQ_Hz (20.0)
thats works just fine, the motor is spining and i can change the speed. The problam is, if i have estimatet the Values i cant connect to my controller anymore and runn the programm. I do not now whats causes the Problem because if i change the Values back to NULL it connects to the controller again and will estimate the values again. It makes no sens to me. (Code bellow shows what i have changed)
#elif (USER_MOTOR == Q60)
#define USER_MOTOR_TYPE MOTOR_Type_Pm
#define USER_MOTOR_NUM_POLE_PAIRS (14)
#define USER_MOTOR_Rr (NULL)
#define USER_MOTOR_Rs (0.0177654605)
#define USER_MOTOR_Ls_d (2.56935112e-10)
#define USER_MOTOR_Ls_q (2.56935112e-10)
#define USER_MOTOR_RATED_FLUX (0.0158974677)
#define USER_MOTOR_MAGNETIZING_CURRENT (NULL)
#define USER_MOTOR_RES_EST_CURRENT (1.0)
#define USER_MOTOR_IND_EST_CURRENT (-1.0)
#define USER_MOTOR_MAX_CURRENT (3.0)
#define USER_MOTOR_FLUX_EST_FREQ_Hz (20.0)
hope you can help me.
thanks!