**INTRODUCTION**

In this module of the 3-Phase PMSM Control Workshop with NXP's Model-Based Design Toolbox, the focus is on the theory of the Permanent Magnet Synchronous Motor (PMSM) operation and Field Oriented Control (FOC) used to control the speed and position of PMSM's rotor.

From the beginning we need to point out that we will not go thru all the details of construction or mathematical models of the PMSM. If you look for specific details then the advice is to look for specific engineering handbooks.

The main goal of this article is to highlight only the specific details that represents the basics of PMSM motor control since we will use these aspects throughout the workshop. You can think about this as crash course that explains the key aspects of the theory behind PMSM and FOC.

Video training: How Permanent Magnet Synchronous Motors are built and what is Field Oriented Control | ||
---|---|---|

Please watch this video before going further. The rest of the article is a summary of the video.

**PMSM MAIN COMPONENTS**

A typical PMSM construction consists in a stator (Fig. 1) that supports three windings/coils connected in star or delta configuration which are energized with AC power. These windings/coils are placed around magnetic pole shoes that force the magnetic flux produced by the AC current passing the coil to take a specific path in order to maximize the motor efficiency.

The PMSM's rotor (Fig. 2) is usually made of permanent magnets mounted on the surface (SPM) or inside the rotor (IPM) and a steel shaft that transit the torque to various devices.

The motor we are going to use thin this workshop was chosen to facilitate the development of the sensorless motor control. It has two pole pairs which are built in so called salient pole rotor type. This means that the stator flux path lengths varies in respect with the rotor position. This is a fancy way to say that the magnetic reactance is different between the motor flux and torque axes. This will helps us to build a magnetic salient tracking observer to estimate the rotor position and to eliminate the need for having a position sensor mounted on the motor shaft.

**ROTATING MAGNETIC FIELDS**

The key to rotate the motor's rotor is to be able to produce a rotating magnetic field in the stator like the one in Fig. 3. The most common way to produce a rotating magnetic field is to energized the coils with AC currents. If a three phase balanced current system is passed thru a system made of three windings/coils that are spatially distributed at 120 degrees apart, then the resulting magnetic field will rotate with the same frequency as the 3-phase AC current. The "guy" that figured this out was Mr. Tesla

If we oversimplify the physical processes that happens inside the stator coils and yoke, and instead of a continuous AC current waveforms we conveniently choose only 6 strategic interest points then you can easily see how the resulting magnetic flux vector is shifting its direction in sync with the AC current systems.

Controlling the position and strength of the magnetic field produced in the stator is the first step towards the Field Oriented Control.

**FIELD ORIENTED CONTROL SECRETS**

The ESSENCE of Field Oriented Control is to align the stator current vector (Is) that produces the rotating magnetic field (red dotted line arrow in Fig. 4.) with the rotor torque-axis. To have the motor to perform at its peek efficiency the magnetic flux produced by the stator windings must be at 90 electrical degrees compared to the magnetic flux produced by the rotor.

To align the stator flux vector with the rotor torque axis a the key aspect of Field Oriented Control technique is to know the position of the rotor at any moment (the angle between the rotor flux axis and the stator phase A magnetic axis). Without this critical piece of information the whole mechanism will fail to perform.

The Field Oriented Control gives us a the possibility to simplify the entire control structure of the synchronous machines using a series of mathematical transformations that allows us to think and act as in a linear domain rather that in a complex one where quantities varies in time and space. In other words, by using the FOC and the concepts derived from it we can transforms a 3-phase AC motor into a simple 1-phase DC motor where magnetic field and motor torque can be controlled separately and this mechanism is described in Fig. 5.

Starting from a 3-phase PMSM standard mathematical model that is described by 3 differential equations in a fixed reference system, we can perform a simple Clark transformation to reduce the number of equations and then have them translated using Park transformation from a time domain into a Laplace domain where the model can be described by 2 simple linear algebraic equations as shown in Fig. 6.

That's the beauty of Field Oriented Control.

We hope you find this information useful. Feel free to LIKE this article and comment below.

Thank you dumitru-daniel.popa

this was very helpful to understand the abstract theory !

I'm really excited to see the implementation in detail soon...

I want to realize your workshop with the high voltage platform.

For me it would also be interesting to model the plant and to see some influences.

So first I want to design a controller and simulate it's behavior with the pmsm from simscape.

what I have to account here ?

After that it would be possible to create an own plant model from the pmsm in simulink.

Also the Controller could be tuned to get more robust for a range of the parameters, e.g. R,L...