Confused about PID controller for current control with PMW

Click For Summary
The discussion revolves around the use of PID controllers for regulating torque and current in permanent magnet synchronous motors (PMSMs) using PWM. Participants express confusion about how a PID controller can effectively manage current when its output controls voltage, given the inductive nature of motors that introduces additional integration. It's clarified that while voltage influences current, the relationship is governed by the motor's parameters, including back EMF and inductance. The conversation also touches on the importance of rotor position for accurate control and the potential for cascading controllers, despite concerns about stability. Overall, understanding the interplay between voltage, current, and motor dynamics is crucial for effective PID control in this context.
  • #31
I feel I should try to offer a bit of intuition with regards to those voltage terms I labeled as 'back-emf terms'.

I'll just restate the PMSM voltage equations for reference purposes:
Vq = R Iq + Lq d(Iq)/dt + ω Ld Id + ω λm
Vd = R Id + Ld d(Id)/dt - ω Lq Iq

- Left hand side of these equations should be clear, they're the dq-components of the stator terminal voltages.
- First terms on the right hand side are the resistive drops.
- Second terms are transient drops - zero in steady state.

Now, these third terms represent dq-components of an inductive voltage drop. The Id current will produce a voltage drop leading the d-axis by 90 deg. It will thus be on the q-axis, which is what the q-component equation reflects.

Same thing goes for the d-component equation. The Iq current will produce a voltage drop leading the q-axis by 90 deg, which will place it in the negative direction on the d-axis, which is what the minus sign reflects in the d-component equation.

- The fourth term in the q-component equation is the true back-emf term - it leads the d-axis by 90 deg, as it must.

The third and fourth terms on the right hand side are commonly known collectively as the speed voltages.

I hope this helps, I think it's is as much as I can explain without going mathy.

Edit:
Ok so I have a bit more as to the origin of the third terms. Me calling them back-emf terms is really very misleading, I just want to make that clear - they have nothing to do with the back-emf (the rotor flux should influence them if they did, but the rotor flux is only part of the fourth term).

If you consider the steady state case where the dq current components and the angular velocity of the rotor is constant, then the stator current must be producing a rotating magnetic field. The motor has inductance so this changing stator current must produce an inductive voltage drop. Where is this reflected in the dq-component equations? It's the third terms.
 
Last edited:
Engineering news on Phys.org
  • #32
milesyoung said:
I feel I should try to offer a bit of intuition with regards to those voltage terms I labeled as 'back-emf terms'.

I'll just restate the PMSM voltage equations for reference purposes:
Vq = R Iq + Lq d(Iq)/dt + ω Ld Id + ω λm
Vd = R Id + Ld d(Id)/dt - ω Lq Iq

- Left hand side of these equations should be clear, they're the dq-components of the stator terminal voltages.
- First terms on the right hand side are the resistive drops.
- Second terms are transient drops - zero in steady state.

Now, these third terms represent dq-components of an inductive voltage drop. The Id current will produce a voltage drop leading the d-axis by 90 deg. It will thus be on the q-axis, which is what the q-component equation reflects.

Same thing goes for the d-component equation. The Iq current will produce a voltage drop leading the q-axis by 90 deg, which will place it in the negative direction on the d-axis, which is what the minus sign reflects in the d-component equation.

- The fourth term in the q-component equation is the true back-emf term - it leads the d-axis by 90 deg, as it must.

The third and fourth terms on the right hand side are commonly known collectively as the speed voltages.

I hope this helps, I think it's is as much as I can explain without going mathy.

Thank you very much for trying! It I learn a lot from these kind of explanations.

So all three components (ω.Ld.Id, ω.Lq.Iq and ω.λm) are neede for a correct back-emk compensation. I was thinking the ω.λm was the only one needed for back-emk compensation and the other two are for another improvement.

What is not clear to me is why there is an inductive voltage drop because of the rotor speed. Does the back-emk consist of 2 components? One depending only on rotor speed and one depending on motor speed and phase current?
If so, then a quick calculation gives me a much higher value for the ω.λm component compared to the ω.Ld.Id and ω.Lq.Iq components. I quess the last two are still (more) important because of the higher frequency component (currents change faster then speed).
 
  • #33
Look up my edit in my previous post, I think that clears some of it up.

There is only one back-emf term, the fourth term on the right hand side in the q-component equation. The third terms must be there regardless of the back-emf.

When adding decoupling, you add compensation for both the back-emf and the coupling terms. This is different from the DC case.
 
  • #34
Ok Thanks

I see now you explain it in the last sentence. Sorry I overlooked it.

Is it correct that these third terms are usually much smaller then the back-emk (fourth term of Vq) term? And did I understand correctly that these third terms are still important because they change faster then the back-emk (current changes faster than speed)?
 
  • #35
The coupling terms can be considerable in magnitude compared to the back-emf but it's difficult to say in general as it depends on the parameters of the machine you're working with.
And did I understand correctly that these third terms are still important because they change faster then the back-emk (current changes faster than speed)?

You don't really care about the back-emf term since it changes so slowly compared to the current component - any controller with integral action will reject it (same as in the DC case). As you say, due to the high frequency content of the third terms, these are the important terms to compensate for.

But really, if you use decoupling, you're mostly doing it to simplify the design procedure using linear control theory. The performance without decoupling can be very good.
 
  • #36
Thanks for all the time spend in this thread.
I learned a lot and will learn more reading it over a few times more.

Thanks all.
 
  • #37
thank you indeed, miles.


The motor has inductance so this changing stator current must produce an inductive voltage drop.

i'm a picture thinker not a math thinker.

Is this similar to "Armature Reaction" i learned fifty years ago? Which relates to Synchronous impedance ?

if so, it'll help me get fluent with this new(to me) FOC technique. I see it's been around since eighties at least...

curmudgeon that i am, i must admit that controlling a motor in this fashion is one of the most interesting things for a computer to do that I've ever seen .

just think what one could do with an H-bridge and an old car alternator...

thanks again

old jim
 
  • #38
I only know of 'armature reaction' in the context of synchronous generators. It had something to do with how the armature and field flux interact when you hook up a load - the armature "reacts" with its own flux distribution in the air gap due to a load current.

Field oriented control (often also called vector control) is basically just an idea of how you can convert 3 phase machine quantities to meaningful vector representations and apply control to these vectors. Let me give an example of how to do torque control of a PMS machine using vector control:

Let's say you have a 2 pole machine so you can view the rotor as a bar magnet. The stator consists of three phase windings 120 deg apart, call these phase a, b and c.

I run current through phase a only. This produces a magnetic field with its magnetic axis aligned with the winding and the rotor will then align itself to this axis (if the field is strong enough to overcome friction). I could do the same for phase b and c and in both cases the rotor will align itself to whatever winding is energized.

Now, if I run current of equal magnitude through phase a and b, the rotor will align itself in between these windings. If I increase the current through phase a while keeping the phase b current constant, the rotor will begin to turn towards phase a. I'm in effect rotating the resulting magnetic field created by the phase currents and the rotor magnetic field is aligning itself with the stator field.

I could now define some vectors that are aligned with the phase windings that have magnitudes equal to the corresponding phase currents. You can show that the vector sum of these space vectors, call it I_sum, is aligned with the resulting magnetic field produced by the phase currents.

If the magnetic axis of the rotor is aligned with the magnetic axis of the stator, no torque is produced. If, on the other hand, the magnetic axis of the stator is at a right angle to the magnetic axis of the rotor, maximum torque is produced. The objective is then to always keep I_sum at a right angle to the magnetic axis of the rotor (for a non-salient rotor).

This is exactly the purpose of using the dq-transformation. The d-axis component tells you how much of I_sum is aligned with the magnetic axis of the rotor. The q-axis component tells you how much of I_sum is at a right angle to the magnetic axis of the rotor.

Anyway, you really need some diagrams to go with all this. I can recommend:
http://www.eal.ei.tum.de/fileadmin/tueieal/www/courses/PE/tutorial/space_vector_2011-12.pdf
Field Orientated Control of 3-Phase AC-Motors

for a quick introduction.

Edit:
There are plenty of other control topologies in field oriented control. Controlling the stator current space vector for maximum torque per amp of current is just one of these. Others include controlling the stator current space vector in such a way as to always draw current at unity power factor (you'd make some friends at your local utility company), or maybe you'd like to control the stator flux vector to make sure you're not damaging your permanent magnets. There are many variants.
 
Last edited:
  • #39
jim hardy said:
thank you indeed, miles.

i'm a picture thinker not a math thinker.

Is this similar to "Armature Reaction" i learned fifty years ago? Which relates to Synchronous impedance ?

if so, it'll help me get fluent with this new(to me) FOC technique. I see it's been around since eighties at least...

curmudgeon that i am, i must admit that controlling a motor in this fashion is one of the most interesting things for a computer to do that I've ever seen .

just think what one could do with an H-bridge and an old car alternator...

thanks again

old jim
Hi jim,

The compensation with the ω.Ld.Id, ω.Lq.Iq and ω.λm terms we talked about have nothing to do with the basics of FOC. They are improvements. Miles: please correct me if I'm wrong.

This compensation may be confusing when studying FOC.
 
  • #40
Thank you for that whole post.

This is the pragraph that cleared it up.
If, on the other hand, the magnetic axis of the stator is at a right angle to the magnetic axis of the rotor, maximum torque is produced. The objective is then to always keep I_sum at a right angle to the magnetic axis of the rotor (for a non-salient rotor).

Please appreciate that in my power plant world, if you let a generator get to 90deg you are on the cusp of a pole slip which is violent on a big machine,

i had wondered how close to that point you could run with this FOC

now I've accepted you actually CAN do that it opens a path of thought i'd kept shut.

Thanks !


and yes, re armature reaction: reactive component of armature current produces MMF that directly aids or opposes field MMF because it's aligned. Real component of course is perpendicular, so total MMF (and flux) is vector sum of the three.


over and out !
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K