TIDUF67 April   2024  – December 2024

 

  1.   1
  2.   Description
  3.   Resources
  4.   Features
  5.   Applications
  6.   6
  7. 1System Description
    1. 1.1 Terminology
    2. 1.2 Key System Specifications
  8. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Highlighted Products
      1. 2.2.1 AM263x Microcontrollers
        1. 2.2.1.1 TMDSCNCD263
        2. 2.2.1.2 LP-AM263
  9. 3System Design Theory
    1. 3.1 Three-Phase PMSM Drive
      1. 3.1.1 Mathematical Model and FOC Structure of PMSM
      2. 3.1.2 Field Oriented Control of PM Synchronous Motor
        1. 3.1.2.1 The (a, b) → (α, β) Clarke Transformation
        2. 3.1.2.2 The (α, β) → (d, q) Park Transformation
        3. 3.1.2.3 The Basic Scheme of FOC for AC Motor
        4. 3.1.2.4 Rotor Flux Position
      3. 3.1.3 Sensorless Control of PM Synchronous Motor
        1. 3.1.3.1 Enhanced Sliding Mode Observer With Phase Locked Loop
          1. 3.1.3.1.1 Design of ESMO for PMSM
          2. 3.1.3.1.2 Rotor Position and Speed Estimation with PLL
      4. 3.1.4 Hardware Prerequisites for Motor Drive
      5. 3.1.5 Additional Control Features
        1. 3.1.5.1 Field Weakening (FW) and Maximum Torque Per Ampere (MTPA) Control
        2. 3.1.5.2 Flying Start
  10. 4Hardware, Software, Testing Requirements, and Test Results
    1. 4.1 Hardware Requirements
    2. 4.2 Software Requirements
      1. 4.2.1 Importing and Configuring Project
      2. 4.2.2 Project Structure
      3. 4.2.3 Lab Software Overview
    3. 4.3 Test Setup
      1. 4.3.1 LP-AM263 Setup
      2. 4.3.2 BOOSTXL-3PHGANINV Setup
      3. 4.3.3 TMDSCNCD263 Setup
      4. 4.3.4 TMDSADAP180TO100 Setup
      5. 4.3.5 TMDSHVMTRINSPIN Setup
    4. 4.4 Test Results
      1. 4.4.1 Level 1 Incremental Build
        1. 4.4.1.1 Build and Load Project
        2. 4.4.1.2 Setup Debug Environment Windows
        3. 4.4.1.3 Run the Code
      2. 4.4.2 Level 2 Incremental Build
        1. 4.4.2.1 Build and Load Project
        2. 4.4.2.2 Setup Debug Environment Windows
        3. 4.4.2.3 Run the Code
      3. 4.4.3 Level 3 Incremental Build
        1. 4.4.3.1 Build and Load Project
        2. 4.4.3.2 Setup Debug Environment Windows
        3. 4.4.3.3 Run the Code
      4. 4.4.4 Level 4 Incremental Build
        1. 4.4.4.1 Build and Load Project
        2. 4.4.4.2 Setup Debug Environment Windows
        3. 4.4.4.3 Run the Code
    5. 4.5 Adding Additional Functionality to Motor Control Project
      1. 4.5.1 Using DATALOG Function
      2. 4.5.2 Using PWMDAC Function
      3. 4.5.3 Adding CAN Functionality
      4. 4.5.4 Adding SFRA Functionality
        1. 4.5.4.1 Principle of Operation
        2. 4.5.4.2 Object Definition
        3. 4.5.4.3 Module Interface Definition
        4. 4.5.4.4 Using SFRA
    6. 4.6 Building a Custom Board
      1. 4.6.1 Building a New Custom Board
        1. 4.6.1.1 Hardware Setup
        2. 4.6.1.2 Migrating Reference Code to a Custom Board
          1. 4.6.1.2.1 Setting Hardware Board Parameters
          2. 4.6.1.2.2 Modifying Motor Control Parameters
          3. 4.6.1.2.3 Changing Pin Assignment
          4. 4.6.1.2.4 Configuring the PWM Module
          5. 4.6.1.2.5 Configuring the ADC Module
          6. 4.6.1.2.6 Configuring the CMPSS Module
  11. 5General Texas Instruments High Voltage Evaluation (TI HV EVM) User Safety Guidelines
  12. 6Design and Documentation Support
    1. 6.1 Design Files
      1. 6.1.1 Schematics
      2. 6.1.2 BOM
      3. 6.1.3 PCB Layout Recommendations
        1. 6.1.3.1 Layout Prints
    2. 6.2 Tools and Software
    3. 6.3 Documentation Support
    4. 6.4 Support Resources
    5. 6.5 Trademarks
  13. 7About the Author

Field Weakening (FW) and Maximum Torque Per Ampere (MTPA) Control

Permanent magnet synchronous motor (PMSM) is widely used in home appliance applications due to the high power density, high efficiency, and wide speed range. The PMSM includes two major types: the surface-mounted PMSM (SPM), and the interior PMSM (IPM). SPM motors are easier to control due to the linear relationship between the torque and q-axis current. However, the IPMSM has electromagnetic and reluctance torques due to a large saliency ratio. The total torque is non-linear with respect to the rotor angle. As a result, the MTPA technique can be used for IPM motors to optimize torque generation in the constant torque region. The aim of the field weakening control is to optimize to reach the highest power and efficiency of a PMSM drive. Field weakening control can enable a motor operation over the base speed, expanding the operating limits to reach speeds higher than rated speed and allow optimal control across the entire speed and voltage range.

The voltage equations of the mathematical model of an IPMSM can be described in d-q coordinates as shown in Equation 37 and Equation 38.

Equation 37. vd=Lddiddt+Rsid-mLqiq 
Equation 38. vq=Lqdiqdt+Rsiq+mLdid+mψm

The dynamic equivalent circuit of an IPM synchronous motor is shown in Figure 3-12.

TIDM-02018 Equivalent Circuit of an IPM Synchronous MotorFigure 3-12 Equivalent Circuit of an IPM Synchronous Motor

The total electromagnetic torque generated by the IPMSM can be expressed as Equation 40 that the produced torque is composed of two distinct terms. The first term corresponds to the mutual reaction torque occurring between torque current iq and the permanent magnet,

Equation 39. ψm

while the second term corresponds to the reluctance torque due to the differences in d-axis and q-axis inductance.

Equation 40. Te=32p ψmiq+(Ld-Lq)idiq

In most applications, IPMSM drives have speed and torque constraints, mainly due to inverter or motor rating currents and available DC link voltage limitations respectively. These constraints can be expressed with the mathematical equations Equation 41 and Equation 42.

Equation 41. Ia=id2+iq2Imax
Equation 42. Va=vd2+vq2Vmax

Where Vmaxand Imax are the maximum allowable voltage and current of the inverter or motor. In a two-level three-phase Voltage Source Inverter (VSI) fed machine, the maximum achievable phase voltage is limited by the DC link voltage and the PWM strategy. The maximum voltage is limited to the value as shown in Equation 43 if Space Vector Modulation (SVPWM) is adopted.

Equation 43. vd2+vq2vmax=vdc3

Usually the stator resistance Rs is negligible at high speed operation and the derivative of the currents is zero in steady state, thus Equation 44 is obtained as shown.

Equation 44. Ld2(id+ψpmLd)2+Lq2iq2 Vmaxωm

The current limitation of Equation 41 produces a circle of radius Imax in the d-q plane, and the voltage limitation of Equation 43 produces an ellipse whose radius Vmax decreases as speed increases. The resultant d-q plane current vector must be controlled to obey the current and voltage constraints simultaneously. According to these constraints, three operation regions for the IPMSM can be distinguished as shown in Figure 3-13.

TIDM-02018 IPMSM Control Operation RegionsFigure 3-13 IPMSM Control Operation Regions
  1. Constant Torque Region: MTPA can be implemented in this operation region to maintain maximum torque generation.
  2. Constant Power Region: Field weakening control must be employed and the torque capacity is reduced as the current constraint is reached.
  3. Constant Voltage Region: In this operation region, deep field weakening control keeps a constant stator voltage to maximize the torque generation.

In the constant torque region, according to Equation 40, the total torque of an IPMSM includes the electromagnetic torque from the magnet flux linkage and the reluctance torque from the saliency between Ld and Lq. The electromagnetic torque is proportional to the q-axis current iq, and the reluctance torque is proportional to the multiplication of the d-axis current id, the q-axis current iq, and the difference between Ld and Lq.

Conventional vector control systems of a SPM motors only utilizes electromagnetic torque by setting the commanded id to zero for non-field weakening modes. But an IPMSM utilizes the reluctance torque of the motor, d-axis current must be controlled as well. The aim of the MTPA control is to calculate the reference currents id and iq to maximize the ratio between produced electromagnetic torque and reluctance torque. The relationship between id and iq, and the vectorial sum of the stator current Is is shown in the following equations.

Equation 45. Is=id2+iq2
Equation 46. Id=Iscosβ
Equation 47. Iq=Issinβ

Where β is the stator current angle in the synchronous (d-q) reference frame. Equation 40 can be expressed as Equation 48 where Is substituted for idand iq.

Equation 48 shows that motor torque depends on the angle of the stator current vector; as such

Equation 48. Te=32pIssinβ ψm+(Ld-Lq)Iscosβ

The maximum efficiency point can be calculated when the motor torque differential is equal to zero. The MTPA point can be found when this differential

Equation 49. dTedβ

is zero as given in Equation 50.

Equation 50. dTe=32p ψmIscosβ+(Ld-Lq)Is2cos2β=0 

Following, the current angle of the MTPA control can be derived as in Equation 51.

Equation 51. βmtpa=cos-1-ψm+ψm2+8×Ld-Lq2×Is24×Ld-Lq×Is

Thus, the effective d-axis and q-axis reference currents can be expressed by Equation 52 and Equation 53 using the current angle of the MTPA control.

Equation 52. Id=Is×cosβmtpa
Equation 53. Iq=Is×sinβmtpa

However, as shown in Equation 51, the angle of the MTPA control, βmtpa is related to d-axis and q-axis inductance. This means that the variation of inductance impedes the ability to find the best MTPA point. To improve the efficiency of a motor drive, the d-axis and q-axis inductance must be estimated online, but the parameters Ld and Lq are not easily measured online and are influenced by saturation effects. A robust Look-Up Table (LUT) method maintains controllability under electrical parameter variations. Usually, to simplify the mathematical model, the coupling effect between d-axis and q-axis inductance can be neglected. Thus, assumes that Ld changes with id only, and Lq changes with iq only. Consequently, d- and q-axis inductance can be modeled as a function of the d-q currents respectively, as shown in Equation 54 and Equation 55.

Equation 54. Ld=f1id, iq=f1id
Equation 55. Lq=f2iq, id=f2iq

To reduce the ISR calculation burden by simplifying Equation 51. The motor-parameter-based constant, Kmtpa is expressed instead as Equation 56, where Kmtpa is computed in the background loop using the updated Ld and Lq.

Equation 56. Kmtpa=ψm4×Lq-Ld=0.25×ψmLq-Ld
Equation 57. βmtpa=cos-1Kmtpa÷Is-Kmtpa÷Is2+0.5

A second intermediate variable, Gmtpa described in Equation 58, is defined to further simplify the calculation. Using Gmtpa, the angle of the MTPA control, βmtpacan be calculated as Equation 59. These two calculations are performed in the ISR to achieve a real current angle βmtpa.

Equation 58. Gmtpa=Kmtpa÷Is
Equation 59. βmtpa=cos-1Gmtpa-Gmtpa2+0.5

In all cases, the magnetic flux can be weakened to extend the achievable speed range by acting on the direct axis current id. As a consequence of entering this constant power operating region, field weakening control is chosen instead of the MTPA control used in constant power and voltage regions. Since the maximum inverter voltage is limited, PMSM motors cannot operate in such speed regions where the back-electromotive force, almost proportional to the permanent magnet field and motor speed, is higher than the maximum output voltage of the inverter. The direct control of magnet flux is not an option in PM motors. However, the air gap flux can be weakened by the demagnetizing effect due to the d-axis armature reaction by adding a negative id. Considering the voltage and current constraints, the armature current and the terminal voltage are limited as Equation 41 and Equation 42. The inverter input voltage (DC-Link voltage) variation limits the maximum output of the motor. Furthermore, the maximum fundamental motor voltage also depends on the PWM method used. In Equation 44, the IPMSM has two factors: one is a permanent magnet value and the other is made by inductance and current of flux.

Figure 3-14 shows the typical control structure is used to implement field weakening.

βfw is the output of the field weakening (FW) PI controller and generates the reference id and iq. Before the voltage magnitude reaches the limit, the input of the PI controller of FW is always positive and therefore the output is always saturated at 0.

TIDM-02018 Block Diagram of Field-Weakening and Maximum Torque per Ampere ControlFigure 3-14 Block Diagram of Field-Weakening and Maximum Torque per Ampere Control

There are two control modules in the motor drive FOC system: one is MTPA control and the other one is field weakening control. These two modules generate current angle βmtpa and βfw respectively based on input parameters as show in Figure 3-15.

TIDM-02018 Current Phasor Diagram of an IPMSM During FW and MTPAFigure 3-15 Current Phasor Diagram of an IPMSM During FW and MTPA

The switching control module is used to decide which angle can be applied, and then calculate the reference id and iq as shown in Equation 46 and Equation 47. The current angle is chosen as following Equation 60 and Equation 61.

Equation 60. β=βfw if βfw>βmtpa
Equation 61. β=βmpta if βfw<βmtpa

Figure 3-16 shows the overall block diagram of sensorless FOC of PMSM using eSMO with field weakening control (FWC) and maximum torque per ampere (MTPA) in this reference design.

TIDM-02018 Sensorless FOC of PMSM using eSMO with FWC and MTPAFigure 3-16 Sensorless FOC of PMSM using eSMO with FWC and MTPA