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.

lab02c runs but not lab03a



We have a 22-pole motor and It was ID by using the InstaSPIN-MOTION GUIComposer.

Lab2c runs perfectly but I could not make lab03a run: the motor won't spin.

I suspected the problem coming  from user.h but was not enable to figure it out .

Please help if you can.

Thanks.

user.h
  • lab2c is just to do motor ID, it won't run the motor.

    What did Motor ID return for the Rs, Ls, and Flux?

    Your active motor doesn't have an Ls set-up

    #if (USER_MOTOR == ADEX1_motor)
    #define USER_MOTOR_TYPE                 MOTOR_Type_Pm
    #define USER_MOTOR_NUM_POLE_PAIRS       (11)
    #define USER_MOTOR_Rr                   (NULL)
    #define USER_MOTOR_Rs                   (0.0133106) //(0.01528728)
    #define USER_MOTOR_Ls_d                 (NULL)
    #define USER_MOTOR_Ls_q                 (USER_MOTOR_Ls_d )
    #define USER_MOTOR_RATED_FLUX           (0.0332538) //(0.01865325)
    #define USER_MOTOR_MAGNETIZING_CURRENT  (NULL)
    #define USER_MOTOR_RES_EST_CURRENT      (2.0)
    #define USER_MOTOR_IND_EST_CURRENT      (-2.0)
    #define USER_MOTOR_MAX_CURRENT          (5.0)
    #define USER_MOTOR_FLUX_EST_FREQ_Hz     (92.0)

     

    the FLUX_EST_FREQ may be a bit high.  What is the max frequency of this motor? For such a high pole machine I would suspect 20-30 Hz would be sufficient.

    Your Clock ticks were incorrect. You had decimated the PWM from 30 to 10 KHz, and then to 5 KHz for the current controller and FAST, and then speed and trajectory at 300 Hz.

    use attached.

     

    user[1].h