PMSM controller doesn't work
27 views (last 30 days)
Show older comments
Hi everyone,
I'm trying to implement my own PMSM model after reviewing the numerous examples inlcuded in Simulink and the simulink community. I think I have all the right components and settings, but the motor erratically oscillates for a constant commanded torque and speed.
Below is a plot of the commanded and measured torque. The speed response is just a negative divergence from zero (commanded speed is 1000 rpm or about 100 rad/s).
Can anybody point me in the right direction for debugging?
I've attached two files. Run the .m file first to load all the variables needed for the simulink .slx file. I'm using Simscape electrical components in MATLAB/Simulink 2021a. Note, I use 'M' to symbolize torque to avoid confusion with 'T' for sample periods.
Thanks!
0 Comments
Accepted Answer
Joel Van Sickel
on 3 Aug 2021
Hello frank,
you don't have your pole pair parameter entered correctly in your machine. Go to where your mechanical parameters are and you will see that you have friction in the spot where pole pairs should be. Your parameters for that entry should read as follows "[J F n_pole M_fric]"
Regards,
Joel
More Answers (0)
See Also
Categories
Find more on Permanent Magnet in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!