National High-Tech Enterprise IEC 61000 EMC · IEC 60730 Class B · RoHS ISO 9001 certified Jinhua, Zhejiang · around 200 staff · 25 in R&D
TECHNICAL NOTE 06 / 22

FOC Motor Control — Offline Parameter Identification

Sailike R&DFOC technical notes 中文原文

Detailed explanation of offline parameter identification for synchronous motors: resistance, inductance and flux linkage

In modern high-performance motor control systems the accuracy of vector control (field-oriented control) depends heavily on accurate motor parameters. Nameplate data are often insufficient to support high-precision control algorithms, and once the motor is actually installed its electrical parameters change with temperature, load and other factors. A variable-frequency drive or servo drive must therefore have offline parameter self-learning capability to identify the key parameters automatically with the motor at standstill or at no load.

This article describes in detail the offline identification principles and engineering implementation methods of three core parameters — stator resistance, dq-axis inductance and permanent-magnet flux linkage. All parameters are handled uniformly on an equivalent star-connection model.


I. Stator resistance identification

1.1 Identification principle

Stator resistance is the most fundamental parameter and directly affects the resistive drop term of the voltage equations. Its identification is based on Ohm's law, but in engineering practice a single measurement is not used; instead the two-point method eliminates the influence of contact resistance and lead resistance.

1.2 Procedure

Inject two DC currents of different magnitude, I1 and I2 , into the motor windings and measure the corresponding steady-state voltages U1 and U2 ; the per-phase resistance is then:

Rs=U1−U2I1−I2

1.3 Engineering notes

  • Temperature compensation: the DC test is usually performed in the cold state, whereas in operation the resistance rises with temperature (the temperature coefficient of copper windings is about 0.00393/°C), so the control algorithm must compensate according to a temperature model.
  • Uniform connection model: all motor parameters are stored and calculated on the equivalent star-connection model, which makes them easy to reuse across control algorithms.
  • Two-point voltage identification removes the influence of dead time and the IGBT conduction voltage drop, but it cannot remove the influence of the MOS on-resistance: the measured result is the motor resistance plus the MOS on-resistance, and the MOS on-resistance must be compensated out when dead-time compensation is performed.

II. dq-axis inductance identification

The dq-axis inductances ( Ld and Lq ) are key parameters determining the torque characteristics and the dynamic response capability. For interior permanent magnet synchronous motors (IPMSM), Ld≠Lq , so they must be identified separately.

2.1 Core idea

The high-frequency AC standstill method is used: a high-frequency sinusoidal voltage signal is injected into the motor and the inductance is calculated from the measured high-frequency current response. Because the injection frequency is far above the cut-off frequency of the mechanical system, the rotor remains macroscopically stationary, so the parameters are extracted in an electrically locked state.

2.2 d-axis inductance test

Procedure:

  1. Rotor pre-positioning: apply a DC voltage to the motor to lock the rotor at the 0° electrical angle position (d axis aligned with the phase A axis).
  2. High-frequency voltage injection: inject a high-frequency sinusoidal voltage along the 0° current vector direction (that is, the d axis), usually at 500Hz~1kHz with an amplitude of about 5%~10% of the rated voltage.
  3. Response measurement: acquire the amplitude Iinj of the high-frequency current response in that direction.
  4. Inductance calculation:
  • High-frequency impedance magnitude: Z=UinjIinj
  • High-frequency reactance: Xd=Z2−Rs2
  • d-axis inductance: Ld=Xd2πfinj

Physical meaning: with the rotor locked on the d axis, a field injected along the d axis produces no torque, so the rotor stays still and the test result is Ld .

2.3 q-axis inductance test

Procedure:

  1. Maintain the rotor position: the rotor stays locked at the 0° electrical angle (d axis aligned) and is not released.
  2. Change the current vector direction: rotate the current vector angle by 90°, so the excitation direction becomes the q-axis direction.
  3. High-frequency voltage injection: inject a high-frequency sinusoidal voltage along the q axis with the same frequency and amplitude as in the d-axis test.
  4. Inductance calculation: computed in the same way from Z=U/I , Xq=Z2−Rs2 and Lq=Xq/(2πfinj) .
  5. Note that the identification result is strongly affected by dead time plus the IGBT conduction voltage drop, so dead-time compensation must be in place first.

2.4 Key engineering question: does applying q-axis current make the rotor turn?

This is a question many engineers raise: since the rotor is locked on the d axis, applying a perpendicular q-axis current produces electromagnetic torque, so will the rotor move?

Answer: if a constant DC current were applied, the rotor would certainly turn or move slightly. This method, however, uses a high-frequency AC signal whose current alternates in sign, so the electromagnetic torque produced is also a high-frequency alternating torque. Because the mechanical inertia of the rotor cannot respond to such high-frequency torque pulsation, the rotor only vibrates by a few micrometres and its macroscopic position stays unchanged, which makes precise measurement of the q-axis inductance possible with the rotor at standstill.

This is the elegance of high-frequency injection in engineering practice: exploiting the difference in time constants between the electrical and the mechanical system to obtain a test state that is electrically active and mechanically frozen.


III. Permanent-magnet flux linkage identification

The permanent-magnet flux linkage ψf is a key parameter determining the back-EMF magnitude and the torque constant, and it directly affects field weakening control and torque accuracy.

3.1 Basic principle

Under no-load operation the voltage equation of the motor simplifies to:

Uq=RsIq+ψfω

where Uq is the q-axis voltage (approximately equal to the phase voltage amplitude) and ω is the electrical angular speed. If the resistive drop term can be eliminated, the flux linkage follows directly.

3.2 Two-point identification

To eliminate the influence of the temperature dependence of the resistance Rs , the two-point method is used in engineering practice:

  1. First measurement point: drive the motor to the speed ω1 (usually 30%~50% of the rated speed) and measure the q-axis voltage Uq1 and the no-load current Iq1 at that point.
  2. Second measurement point: drive the motor to another speed ω2 (such as 70%~90% of the rated speed) and measure Uq2 and Iq2 .
  3. Simultaneous equations:
{Uq1=RsIq1+ψfω1Uq2=RsIq2+ψfω2
  1. Solving for the flux linkage (when Iq1≈Iq2 ):
ψf≈Uq1−Uq2ω1−ω2

This effectively eliminates the resistance term, so temperature changes during operation do not affect the identification accuracy.

3.3 Engineering notes

  • Voltage reconstruction: a dead-time error exists between the commanded voltage of the drive and the actual output voltage, so dead-time compensation or voltage reconstruction must be enabled; otherwise the identification error can exceed 10%.
  • Fundamental extraction: the back-EMF waveform may contain harmonics, so the fundamental component must be extracted by a phase-locked loop or a Fourier transform for the calculation.
  • Multi-point fitting: to improve robustness, several speed points are usually collected and fitted linearly, with the slope taken as the flux linkage value.

IV. Summary

Parameter| Identification method| Core formula| Key condition ---|---|---|--- Stator resistance R_s| DC two-point method| R_s = \frac{U_1 - U_2}{I_1 - I_2}| Temperature compensation, equivalent star model d-axis inductance L_d| High-frequency injection method (rotor locked on the d axis)| L_d = \frac{\sqrt{(U/I)^2 - R_s^2}}{2\pi f_{inj}}| Injection frequency 500Hz~1kHz q-axis inductance L_q| High-frequency injection method (rotor locked on the d axis, current angle rotated 90°)| Same as above| High-frequency signal keeps the rotor macroscopically still Permanent-magnet flux linkage \psi_f| No-load two-point method| \psi_f = \frac{U_{q1} - U_{q2}}{\omega_1 - \omega_2}| Consistent no-load current, dead-time compensation

These four identification methods form the core framework of offline parameter self-learning in modern drives. Combined appropriately — resistance first, then inductance, and finally flux linkage by rotating the motor — they let the system obtain high-precision motor parameters automatically without external equipment, providing a solid data foundation for vector control.

In practical engineering applications, dead-time compensation, temperature correction and multi-current-point testing (inductance saturates with current) also require attention before a parameter identification accuracy within ±1% can be achieved. This is a very elegant idea. Your idea is essentially to extend the two-point method used in resistance identification to the field of inductance identification, decoupling the true inductance value from impedance measurements at different frequencies and thereby removing the fixed voltage error caused by dead time and the IGBT voltage drop.