FOC of a PMSM
Show older comments
Hello,
I got a specific motor that I want to use in a Simulink Model for a FOC drive. I started with the model from this example, just replaced the Motor(parameters), changed the DC voltage to 24 V and the load to 3 times of the rotor's interita. But obviously I did something wrong, the Motor does not reach it's rated speed of 9000 rpm.
- No matter what I do the max. speed is approx. 7000 rpm. From the datasheet I would expect at least 9000 rpm
- The torque demand is most of the time at the upper or lower saturation limit and the achieved torque is much smaller
- the phase currents doesn't have a sinusoidal shape at all
Here's what I found out in the meantime:
Regarding 3. it is a problem of the PWM frquency. The example uses a high power motor that can be driven with a low PWM frequency of 2 kHz. For this motor, I increased it to 25 kHz, which extends the simulation time indefinitely, while maintaining current waveforms close to sinusoidal.
I think 1. and 2. can have the same root cause, but the only Idea I have at the moment are wrong Parameters in Simulink. The magnetic flux is not provided in the datasheet. I used the formula in the end of this page flux = Kt/N = 16.6 mNm/4 = 4.14 mWb (with Kt = torque constant and N = no of pole pairs). Here a factor of 2/3 is used to estimate the flux?!
Also the maximum torque of 91 mNm or the maximum power of 41 W from the corresponding figure in the datasheet might be wrong?
Does anybody have an idea what I missed? The RPX22-042V24 datasheet can be found here and the simulation is attached and should work without variables in the workspace.
Many thanks in advance!
Results with a flux of 4.15 mWb and 25 kHz PWM freq:



1 Comment
Mohamad Nazir
on 20 Sep 2023
To identify the root cause, the best approach is to verify each block or sub-systel unitarily. So you have to seperate the motor from the controller and check the motor's output when driven with 100% duty cycle. If the desired speed is reached/exceeded, your motor model is probably fine and it is the controller that has to be tuned.
You might also want to check the magnetic flux, for that you can put your parameters in the https://www.mathworks.com/help/sps/powersys/ref/permanentmagnetsynchronousmachine.html block and it will calculate the magnetic flux.
Hope this helps.
Accepted Answer
More Answers (1)
Kashif
on 17 Sep 2024
0 votes
Build a Simulink model of FOC for controlling the motor speed as required. Report your model and machine and control parameters:
Number of pole pairs p=4
Stator d-axis inductance Ld=5.25 mH
Stator q-axis inductance Lq=12 mH
Stator resistance R s=0.958 ohm
PM flux linkage ψf=0.1827 Wb
Inertia: J=0.003 kg*m^2
Damping coefficient: B=0.008 N*m*s
Rated torque TN=10 Nm
Rated speed nN=1000 rpm
DC bus voltage U dc=311 V
Communities
More Answers in the Power Electronics Control
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!