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.

Motorware lab_05g

Other Parts Discussed in Thread: MOTORWARE

Hello,

I am trying to use the motorware proj_lab_05g with an inverter that I already have. I used the example program 5g and made the appropriate changes (like the ADC channels and full_scale_voltage etc.).

However, this does not seem to work correctly. When I start the program and I put the System and Identify flags to 1. The CtrlState and EstState go to the OnLine state and stay there. Est does not go to the RoverL state. And I have a PWM signal with 50% duty cycle on the output.

Can someone tell me what I could be doing wrong? I am using the F28069MPZT card and Motorware13.

Udai

  • Hello,

    I am trying to use the motorware proj_lab_05g with an inverter that I already have. I used the example program 5g and made the appropriate changes (like the ADC channels and full_scale_voltage etc.)

    I have an update on this. It seems that the scale factor for my ADC's is not being calculated correctly. I have checked the values in the UserParams and it gives the correct float value as seen below.

    However, this is not correctly updated in the HAL handle (in the iq format) as seen below,

    I suspect there is something is wrong with the float to iq conversion,

    I am using Motorware 13, Code Composer 6 and the F28069M card. 

    Does anyone have an idea of what could be the issue and the solution?

    Udai

  • can you attach your user.h?

    can you try using proj_lab02a or 2b just to see if you can ID the motor properly first?

    always hard to debug new HW....how confident are you in the current and voltage sensing circuits, that you have followed the requirements in SPRUHJ1 for calculating the correct values and updating them into user.h?

  • Hello Chris,

    I have attached my user.h file.

    We tried lab 2b and it works and the motor parameters are estimated correctly so in this everything runs fine and therefore the voltage and current sensing works correctly. I cannot understand why this works for the 2b lab and not for the 5g where I use the same user.h file.

    Udai

    5808.Lab_user.h

  • I'm not sure either. My only thought on why it isn't ID'ing is something to do with the SpinTAC speed controller being active in 5f to start...to be honest I've never used 5f to ID a motor before...I'll have to give that a try.

    I'll forward this to Adam @ LineStream for his thoughts but I know he's traveling today.

  • Adam just tried motor ID with 5f and 5g and it worked fine.

    did you change something in the SW? can you try a default 5f project?

  • Hello Chris,

    I will check it with a default 5f program tomorrow and let you know if it works. I haven't changed anything, I only added a few variables to check a couple of things. But I think running the default program may point out the problems.

    Udai

  • Hello Chris,

    You were correct. The program did work when I imported and ran a fresh example program. Evidently I did make some changes in the software that caused the problems. 

    Thanks for all the help!

    Udai