Tool/software:
Greetings! I am using this MotorControl SDK for a very first time. I reached lab 4. On the previous labs everything works fine. I manage to write down the offset values. The readings from all sensor are correct - > the current adc channels return around half of the adc range which is correct for bidirectional sensor. In pure V/Hz control(lab03) everything works fine. But in lab04 my motor doesn`t turn at all. My first suspition is the value USER_ADC_FULL_SCALE_CURRENT_A. My sensor is MLX91221KDC-ABR-020-SP which is 20A bidirectional currect sensor. But in the datasheet it`s written that the sensitivity of this sensor is 62.5mV per A(page 4 table 1). So If my calculations are correct the full scale current should be 52.8A. Am I correct here? I am using 3 current and 4 voltage sensors. My line voltage is 550V and the USER_ADC_FULL_SCALE_VOLTAGE_V is set to 1600. The read BusV is 520 which I assume as a correct value and when I apply half duty cycle on the bridge the other 3 sensors read half of this value.
I made a few tests with this value and in the beginning I used 20A as full scale voltage. But the calculated offset values were around 5.0 which is not 0.5*USER_ADC_FULL_SCALE_CURRENT_A. Is there a possiblity my initial setup to be incorrect?
The other which concerns me are the motor settings:
#define USER_MOTOR_TYPE MOTOR_TYPE_INDUCTION #define USER_MOTOR_NUM_POLE_PAIRS (2) #define USER_MOTOR_Rr_Ohm (NULL) #define USER_MOTOR_Rs_Ohm (NULL) #define USER_MOTOR_Ls_d_H (NULL) #define USER_MOTOR_Ls_q_H (NULL) #define USER_MOTOR_RATED_FLUX_VpHz (0.8165*230.0/60.0) #define USER_MOTOR_MAGNETIZING_CURRENT_A (NULL) #define USER_MOTOR_RES_EST_CURRENT_A (0.5) #define USER_MOTOR_IND_EST_CURRENT_A (NULL) #define USER_MOTOR_MAX_CURRENT_A (5.0) #define USER_MOTOR_FLUX_EXC_FREQ_Hz (5.0) // Number of lines on the motor's quadrature encoder #define USER_MOTOR_NUM_ENC_SLOTS (1000) #define USER_MOTOR_FREQ_MIN_HZ (5.0) // Hz #define USER_MOTOR_FREQ_MAX_HZ (60.0) // Hz #define USER_MOTOR_FREQ_LOW_HZ (10.0) // Hz #define USER_MOTOR_FREQ_HIGH_HZ (60.0) // Hz #define USER_MOTOR_VOLT_MIN_V (50.0) // Volt #define USER_MOTOR_VOLT_MAX_V (380.0) // Volt
I can`t remove #define USER_MOTOR_NUM_ENC_SLOTS (1000) and I am not using encoder. Do you see anything wrong here?
Thanks!