---
title: Permanent-magnet synchronous motor control
heading: Surface and interior permanent-magnet machines in the rotor's dq frame, magnet and reluctance torque, the maximum torque per ampere, the voltage limit that sets base speed, field weakening with negative d-axis current, and the characteristic current that decides how fast the motor can go
eyebrow: S12 · Lesson 42 · Permanent-magnet synchronous motor control
xp: 50
---

::: hook
The traction motor of nearly every electric car is an interior permanent-magnet synchronous machine: magnets buried in the rotor iron, a three-phase stator, and an inverter that controls its dq currents with field orientation that is far simpler than an induction motor's, since the rotor's position is the flux's position. Two questions shape its control. At a given current, which split between d and q gives the most torque? And at high speed, where the back-EMF reaches the battery's voltage, how can negative d-axis current weaken the magnets' field enough to keep going?
:::

::: play
- An interior PM motor's torque at fixed current magnitude $I_s$ against the current angle β, measured from the q axis toward negative d: $i_d = -I_s\sin\beta$, $i_q = I_s\cos\beta$.
- With $L_q = L_d$ (a surface magnet machine) the best angle is 0: all current on q. With $L_q > L_d$, some negative d current adds reluctance torque, and the peak moves to a positive angle.
- The readout gives the maximum-torque-per-ampere angle from the closed form.
:::

```sim plot
view: graph
x: b = 0..90 °
y: T = 0..160 N·m
slider: I = 50..250 step 10 = 200 A
slider: q = 0.2..0.8 step 0.05 = 0.5 mH
plot: 1.5*4*(0.08*I*cos(b*pi/180) + (q - 0.2)*1e-3*I^2*sin(b*pi/180)*cos(b*pi/180)) | samples: 400 | label: torque
plot: 1.5*4*0.08*I*cos(b*pi/180) | dashed | color: ch3 | label: magnet torque alone
readout: MTPA angle, ° = asin(-(0.08 - sqrt(0.0064 + 8*((q - 0.2)*1e-3)^2*I^2))/(4*(q - 0.2)*1e-3)/I)*180/pi | digits: 3
```

::: predict
## A surface PM motor ($L_d = L_q$) is below base speed. What d-axis current gives the most torque per ampere?

- [x] Zero: put all the current on the q axis
- [ ] Negative, to add reluctance torque
- [ ] Positive, to strengthen the field
- [ ] Equal to the q current

::: reveal
With $L_d = L_q$ the reluctance term $(L_d - L_q)i_di_q$ vanishes, so torque is $\frac{3}{2}\frac{P}{2}\lambda_mi_q$ and any d current only adds copper loss. Interior machines, with $L_q > L_d$, are the ones that benefit from negative $i_d$.
:::
:::

::: nameit
## Torque

In the rotor frame, with $\lambda_d = L_di_d + \lambda_m$ and $\lambda_q = L_qi_q$:

$$T = \frac{3}{2}\frac{P}{2}\left[\lambda_mi_q + (L_d - L_q)i_di_q\right]$$

The first term is **magnet torque**; the second, **reluctance torque**, is positive for negative $i_d$ when $L_q > L_d$ (interior magnets).

## Maximum torque per ampere

At current magnitude $I_s$, torque is greatest at

$$i_d = \frac{\lambda_m - \sqrt{\lambda_m^2 + 8(L_q - L_d)^2I_s^2}}{4(L_q - L_d)}, \qquad i_q = \sqrt{I_s^2 - i_d^2}$$

## The voltage limit

Neglecting resistance, the steady phase voltage's peak is $\omega\sqrt{(L_qi_q)^2 + (L_di_d + \lambda_m)^2}$, at electrical speed ω. The inverter caps it at $V_\max$. With $i_d$ = 0 this sets the **base speed**, $\omega_b = V_\max/\sqrt{(L_qi_q)^2 + \lambda_m^2}$.

## Field weakening

Above base speed, negative $i_d$ reduces $L_di_d + \lambda_m$, the d-axis flux, keeping the voltage within the limit at the cost of current that could have made torque. The **characteristic current** $\lambda_m/L_d$ is the d current that cancels the magnet flux entirely. If it's within the drive's current rating, the motor can in principle run at any speed; if not, at full current the speed is limited to

$$\omega_\max = \frac{V_\max}{\lambda_m - L_dI_\max}$$
:::

::: example
## An 8-pole interior PM motor: $\lambda_m$ = 0.08 Wb, $L_d$ = 0.2 mH, $L_q$ = 0.5 mH, at 200 A. Find the MTPA currents and torque.

::: solution
1. **Inside the square root.** With $L_q - L_d$ = 0.3 mH,
   $$\begin{aligned} &0.0064 + 8 \times (0.3\ \text{mH})^2 \\ &\quad \times 200^2 \\ &= 0.0352 \end{aligned}$$
2. **MTPA d-axis current.**
   $$\begin{aligned} i_d &= \frac{0.08 - \sqrt{0.0352}}{4 \times 0.3\ \text{mH}} \\ &= -89.7\ \text{A} \end{aligned}$$
   and $i_q$ = 178.8 A (β = 26.6°).
3. **Torque.**
   $$\begin{aligned} T &= 1.5 \times 4 \times (0.08 \times 178.8 \\ &\quad + 0.3\ \text{mH} \times 89.7 \times 178.8) \\ &= 114.7\ \text{N·m} \end{aligned}$$
4. **Compare with $i_d$ = 0.** With all 200 A on q the torque is 96 N·m: reluctance adds 19%.

**Answer:** $i_d$ = −89.7 A and $i_q$ = 178.8 A (β = 26.6°), for 114.7 N·m.
:::
:::

::: example
## An 8-pole surface PM motor: $\lambda_m$ = 0.1 Wb, L = 0.5 mH, 100 A, 150 V peak phase. Find its base speed and its top speed.

::: solution
1. **Base speed.** With $i_q$ = 100 A,
   $$\begin{aligned} \omega_b &= \frac{150}{\sqrt{0.05^2 + 0.1^2}} \\ &= 1342\ \text{rad/s} \end{aligned}$$
   electrical, 335 rad/s mechanical: 3203 rpm, at 60 N·m.
2. **Characteristic current.** It's 0.1/0.0005 = 200 A, more than the 100 A rating, so even with all 100 A on −d the flux only halves.
3. **Top speed.**
   $$\begin{aligned} \omega_\max &= \frac{150}{0.1 - 0.05} \\ &= 3000\ \text{rad/s} \end{aligned}$$
   electrical, 7162 rpm, with no torque left.

**Answer:** a base speed of 3203 rpm (1342 rad/s electrical) at 60 N·m, and a top speed of 7162 rpm (3000 rad/s electrical).
:::
:::

::: example
## Run the 8-pole interior PM motor at 100 A instead of 200 A. How much does MTPA gain over $i_d$ = 0 now?

::: solution
1. **Inside the square root.** At 100 A,
   $$\begin{aligned} &0.0064 + 8 \times (0.3\ \text{mH})^2 \\ &\quad \times 100^2 \\ &= 0.0136 \end{aligned}$$
2. **MTPA currents.**
   $$\begin{aligned} i_d &= \frac{0.08 - \sqrt{0.0136}}{4 \times 0.3\ \text{mH}} \\ &= -30.5\ \text{A} \end{aligned}$$
   and $i_q$ = 95.2 A, a current angle of 17.8° instead of 26.6°.
3. **Torque.**
   $$\begin{aligned} T &= 1.5 \times 4 \times (0.08 \times 95.2 \\ &\quad + 0.3\ \text{mH} \times 30.5 \times 95.2) \\ &= 50.9\ \text{N·m} \end{aligned}$$
4. **Compare with $i_d$ = 0.** That's against 48.0 N·m with $i_d$ = 0: a 6% gain, against 19% at 200 A.
5. **Why the gain shrinks.** Reluctance torque grows with the square of current, so MTPA matters most near peak torque.

**Answer:** MTPA gives 50.9 N·m against 48.0 N·m with $i_d$ = 0, a gain of only 6% (19% at 200 A).
:::
:::

::: check
given: P = 4 | 8 | 10; l = 0.03 | 0.1 | 0.2; q = 20 | 100 | 300
answer: 1.5*P/2*l*q
unit: N·m
tolerance: 0.5%

## A {P}-pole surface PM motor with $\lambda_m$ = {l} Wb carries $i_q$ = {q} A, $i_d$ = 0. What torque?

::: right
Right. $\frac{3}{2}\frac{P}{2}\lambda_mi_q$ = {answer} N·m.
:::

::: misses
- [P/2*l*q] Include the 3/2.
- [any] Not yet. Magnet torque only.
:::
:::

::: check
given: P = 6 | 8; l = 0.05 | 0.1; a = 0.15 | 0.3; b = 0.5 | 0.9; d = -40 | -100; q = 80 | 200
answer: 1.5*P/2*(l*q + (a - b)*1e-3*d*q)
unit: N·m
tolerance: 0.5%

## An interior PM motor ({P} poles, $\lambda_m$ = {l} Wb, $L_d$ = {a} mH, $L_q$ = {b} mH) carries $i_d$ = {d} A and $i_q$ = {q} A. What torque?

::: right
Right. Magnet plus reluctance torque: {answer} N·m.
:::

::: misses
- [1.5*P/2*l*q] Add the reluctance term; with $L_q > L_d$ and negative $i_d$ it's positive.
- [any] Not yet. $\frac{3}{2}\frac{P}{2}[\lambda_mi_q + (L_d - L_q)i_di_q]$.
:::
:::

::: check
given: l = 0.05 | 0.1; a = 0.15 | 0.3; b = 0.5 | 0.9; I = 100 | 250
answer: (l - sqrt(l^2 + 8*((b - a)*1e-3)^2*I^2))/(4*(b - a)*1e-3)
unit: A
tolerance: 0.5%

## For an interior PM motor with $\lambda_m$ = {l} Wb, $L_d$ = {a} mH and $L_q$ = {b} mH, what d-axis current gives maximum torque at {I} A?

::: right
Right. {answer} A.
:::

::: misses
- [any] Not yet. The MTPA formula, with $L_q - L_d$.
:::
:::

::: check
given: V = 100 | 200 | 400; l = 0.05 | 0.1; L = 0.3 | 1; i = 50 | 150; P = 4 | 8
answer: V/sqrt((L*1e-3*i)^2 + l^2)/(P/2)*60/(2*pi)
unit: rpm
tolerance: 0.5%

## A {P}-pole surface PM motor ($\lambda_m$ = {l} Wb, L = {L} mH) carries $i_q$ = {i} A with {V} V peak phase available. What's its base speed?

::: right
Right. $V_\max/\sqrt{(Li_q)^2 + \lambda_m^2}$ electrical, converted: {answer} rpm.
:::

::: misses
- [V/sqrt((L*1e-3*i)^2 + l^2)*60/(2*pi)] Divide electrical speed by the pole pairs.
- [any] Not yet. The voltage limit with $i_d$ = 0.
:::
:::

::: check
given: l = 0.05 | 0.1 | 0.2; L = 0.2 | 0.5 | 1.5
answer: l/(L*1e-3)
unit: A
tolerance: 0.5%

## What's the characteristic current of a PM motor with $\lambda_m$ = {l} Wb and $L_d$ = {L} mH?

::: right
Right. $\lambda_m/L_d$ = {answer} A.
:::

::: misses
- [any] Not yet. The d current that cancels the magnet's flux.
:::
:::

::: check
given: V = 100 | 300; l = 0.08 | 0.15; L = 0.3 | 0.6; I = 50 | 120; P = 4 | 8
answer: V/(l - L*1e-3*I)/(P/2)*60/(2*pi)
unit: rpm
tolerance: 0.5%

## A {P}-pole surface PM motor ($\lambda_m$ = {l} Wb, L = {L} mH) has {I} A and {V} V peak phase available. With all its current on −d, what's its top speed?

::: right
Right. $V_\max/(\lambda_m - LI_\max)$, converted: {answer} rpm.
:::

::: misses
- [any] Not yet. All current weakens the field.
:::
:::

::: check
kind: parts
given: m = 0.05 | 0.1; L = 0.3 | 0.6; I = 50 | 100; V = 150 | 300; P = 4 | 8

## A {P}-pole surface PM motor has $\lambda_m$ = {m} Wb and L = {L} mH, rated {I} A, on an inverter limited to {V} V peak per phase.

::: part
answer: V/sqrt((L*1e-3*I)^2 + m^2)/(P/2)*60/(2*pi)
unit: rpm
tolerance: 0.5%

### What is its base speed at rated current?

::: misses
- [V/sqrt((L*1e-3*I)^2 + m^2)*60/(2*pi)] Divide the electrical speed by the pole pairs.
- [any] $\omega_b = V_\max/\sqrt{(LI)^2 + \lambda_m^2}$, electrical.
:::
:::

::: part
answer: m/(L*1e-3)
unit: A
tolerance: 0.5%

### What is its characteristic current?

::: misses
- [any] $\lambda_m/L_d$.
:::
:::
:::

::: check
kind: derivation
vars: m = 0.02..0.3, x = 0.0001..0.002, y = 0.0003..0.004, I = 10..500

## An interior PM motor ($\lambda_m$ = m, $L_d$ = x, $L_q$ = x + y) carries current magnitude I under MTPA.

::: step
answer: (m - sqrt(m^2 + 8*y^2*I^2))/(4*y)

### What is $i_d$?
:::

::: step
answer: sqrt(I^2 - ((m - sqrt(m^2 + 8*y^2*I^2))/(4*y))^2)

### What is $i_q$?
:::

::: right
Right. The more saliency, the further MTPA turns the current toward negative d.
:::
:::

::: explain
## Why does an interior permanent-magnet motor use negative d-axis current even below base speed?

::: model
Burying the magnets inside the rotor iron leaves iron paths along the q axis and puts the low-permeability magnets in the d-axis path, so $L_q$ is larger than $L_d$. The torque then has a reluctance term, $(L_d - L_q)i_di_q$, which is positive when $i_d$ is negative. Splitting a given current between a negative d component and a q component therefore yields more torque than putting it all on q: the q current's magnet torque falls a little, but the reluctance torque more than makes up for it. Maximum torque per ampere control picks the best split at each current, which lowers copper loss for a given torque and lets the same inverter rating produce more torque. At high speed the same negative d current doubles as field weakening.
:::
:::

::: practice

::: check
given: P = 6 | 12; l = 0.04 | 0.25; q = 15 | 400
answer: 1.5*P/2*l*q
unit: N·m
tolerance: 0.5%

## Torque: {P} poles, $\lambda_m$ = {l}, $i_q$ = {q} A?

::: misses
- [any] $\frac{3}{2}\frac{P}{2}\lambda_mi_q$.
:::
:::

::: check
given: l = 0.03 | 0.3; L = 0.1 | 2
answer: l/(L*1e-3)
unit: A
tolerance: 0.5%

## Characteristic current: {l} Wb, {L} mH?

::: misses
- [any] $\lambda_m/L_d$.
:::
:::

::: check
given: V = 80 | 400; l = 0.04 | 0.15; L = 0.2 | 1.2; i = 30 | 200; P = 4 | 10
answer: V/sqrt((L*1e-3*i)^2 + l^2)/(P/2)*60/(2*pi)
unit: rpm
tolerance: 0.5%

## Base speed: {V} V, $\lambda_m$ = {l}, L = {L} mH, {i} A, {P} poles?

::: misses
- [any] $V/\sqrt{(Li)^2 + \lambda^2}$ / pole pairs.
:::
:::
:::
