# PMSM Field-Weakening Controller

Permanent magnet synchronous machine field-weakening controller

**Libraries:**

Simscape /
Electrical /
Control /
PMSM Control

## Description

The PMSM Field-Weakening Controller block implements a field-weakening controller for a permanent magnet synchronous machine (PMSM).

Use this block to enforce phase voltage constraints on a current-controlled PMSM. The block decreases the PMSM phase voltage by adjusting the angle of the reference current vector when the voltage vector magnitude exceeds its limit. The block does not adjust the amplitude of the current vector.

You can use this block as part of a PMSM control system:

Use the zero

*d*-axis control technique to generate an unconstrained current reference vector to drive the PMSM. You can implement this strategy with the PMSM Current Reference Generator block.Use this block to adjust the angle of the current reference vector in order to satisfy voltage phase constraints.

Use a PMSM Current Controller to generate a voltage reference vector to drive the PMSM.

### Equations

An internal integral controller outputs a factor* β∈[0,1]*, which
is determined by how closely the required stator voltage approaches the saturated
voltage value at any instant in time:

When the required stator voltage exceeds the limit,

*β*tends to 0, decreasing the*q*-axis current.When the required stator voltage is within its limit,

*β*tends to 1 and the angle remains unchanged.

This diagram shows the structure of the field-weakening controller.

In the diagram, you provide the modulation index threshold
*M _{th}* as an input parameter to the
block, and the block computes the modulation index

*M*as the ratio between the actual phase voltage and the maximum available phase voltage

*V*:

_{ph_max}$M=\frac{\sqrt{{v}_{d}^{2}+{v}_{q}^{2}}}{{V}_{ph\_max}},$

where *v _{d}* and

*v*are the

_{q}*d*-axis and

*q*-axis components of the voltage vector.

## Ports

### Input

### Output

## Parameters

## References

[1] Wai, J., and T. M. Jahns. "A new control technique for achieving wide constant
power speed operation with an interior PM alternator machine." *In Industry
Applications Conference.* Vol. 2, 2001, pp. 807-814.

## Extended Capabilities

## Version History

**Introduced in R2017b**