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 17 / 22

FOC Motor Control - Initial Position Acquisition by Six-Pulse Injection

Sailike R&DFOC technical notes 中文原文

Introduction

Before a permanent magnet synchronous motor starts, the rotor is at standstill and the back-EMF is zero, so position observation based on the back-EMF model cannot work. Six-pulse injection is an effective method that applies specific voltage vectors with the inverter and identifies the initial rotor position from the current response; it is particularly suitable for motors with low saliency or for cases that require fast initial positioning. The method needs no high-frequency signal injection, is simple to implement and has good robustness.

a. Basic principle

Six-pulse injection relies on the saturation of the motor magnetic circuit: when the applied voltage vector aligns with the rotor magnetic pole axis, the d axis, the magnetomotive force of the stator current adds to that of the permanent magnet, the magnetic circuit tends to saturate and the equivalent inductance decreases, so the current rises faster and its steady-state amplitude is larger. Conversely, when the voltage vector is perpendicular to the d axis, that is, along the q axis, the magnetic circuit is unsaturated, the equivalent inductance is larger and the current response is smaller.

For an interior permanent magnet synchronous motor, because Ld<Lq , the current response along the d axis exceeds that along the q axis even without saturation. For a surface-mounted permanent magnet synchronous motor ( Ld≈Lq ), position dependence must rely on magnetic saturation.

Fixed positions of six-pulse injection: The spatial positions of the six basic voltage vectors are fixed, at 0∘ , 60∘ , 120∘ , 180∘ , 240∘ and 300∘ of electrical angle respectively. Owing to the saturation of the permanent magnet poles, the current response is largest when the injected vector aligns with the N pole direction, and smaller when it aligns with the S pole direction because of demagnetization. Among the six samples, the vector direction with the largest value therefore indicates the N pole direction and the vector direction with the smallest value indicates the S pole direction. This property makes six-pulse injection inherently identify magnetic polarity, without an additional polarity determination step.

b. Six-pulse injection sequence and rotor micro-motion suppression

The program drives the six switches of the inverter to output the six basic voltage vectors in turn, corresponding to switching states 1 to 6, and samples the current response after each vector has been applied for a fixed time.

Adjacent injection positions are spatially opposite: To prevent cumulative micro-motion of the rotor during injection, the injection order alternates between spatially opposite positions. For example, the 0∘ vector is injected first, then the 180∘ vector, then the 60∘ vector, then the 240∘ vector, and so on. Because adjacent injection vectors are 180∘ apart in space, the electromagnetic torques they produce are opposite and the average net torque on the rotor is zero, which effectively suppresses small rotor movements during positioning and preserves the accuracy of the initial position identification.

Waiting for the freewheeling current to reach zero: After each injection, enough time must be allowed for the freewheeling current in the motor windings to decay completely to zero before the next injection. The offTime parameter in the program serves this purpose. If the freewheeling current of the previous vector has not fully decayed, it adds to the injection current of the next vector, which distorts the samples and degrades positioning accuracy. offTime is usually set to several times the on-time to ensure that the current decays to zero.

c. Current sampling methods

The program supports two sampling hardware topologies, whose current sampling methods differ:

Single-shunt sampling (1Shunt): A shunt resistor is connected in series in the DC bus circuit. For each voltage vector, the DC bus current is sampled directly during conduction, and the offset is subtracted to give the current response amplitude of that vector.

Dual/triple-shunt sampling (23Shunt): Shunt resistors are connected in series with the low-side switches of two or three bridge legs. The sampling sequence in the program is as follows: after the injected voltage vector ends, all high-side switches are turned off so that the motor windings freewheel through the low-side freewheeling diodes, and the two phase currents are then sampled with the low-side switches conducting. The key points of this operation are:

  • After the injected vector ends, the winding current has not yet reached zero and must freewheel through the low-side switches.
  • Sampling with the low-side switches conducting avoids interference from high-side switching noise and gives a more stable current signal.
  • After offset correction of the two sampled phase currents ia,ib , the third phase current ic=−ia−ib is computed, and half the sum of the absolute values of the three phase currents is taken as the current response amplitude of that vector:
Imag=|ia|+|ib|+|ic|2

This value represents the magnitude of the current response and depends on the degree of inductance saturation.

d. Rotor position calculation

The six samples I0~I5 are the current response amplitudes of the six basic voltage vectors. Owing to saturation, the current response is largest in the direction of the N pole. The program computes the rotor electrical angle in the following steps:

  1. Coarse positioning: The maximum of the six samples is found and its sector index sectionTmp ( 0~5 ) is recorded. The N pole then lies within the interval [sectionTmp×60∘,(sectionTmp+1)×60∘) .
  2. Fine positioning: The samples of the two adjacent sectors are compared to determine the offset direction of the N pole within the 60∘ interval. If the sample of the later sector is larger than that of the earlier one, the N pole is closer to the boundary of the later sector and the angle is increased by 15∘ ; otherwise it is decreased by 15∘ . The step angle in the program is 15∘ , corresponding to a digital value of 2730, where the full digital range of 10923 corresponds to 60∘ .
  3. Angle calculation:
θ=sectionTmp×60∘+15∘×sign(Inext−Iprev)

where Inext is the sample of the later sector and Iprev is the sample of the earlier sector. The positive sign applies when Inext>Iprev , and the negative sign otherwise.

The algorithm determines the rotor position over a 60∘ sector at a resolution of 15∘ , which is sufficient for initial positioning. If higher accuracy is required, interpolation or curve fitting can be applied.

e. Implicit polarity identification

Because the six injection vectors have fixed spatial positions and the current response is largest in the N pole direction and smallest in the S pole direction, the N pole direction is determined simply by finding the vector direction with the largest sample. This means that six-pulse injection requires no additional polarity determination step; the polarity information is already contained in the relative magnitudes of the six samples. With the alternating opposite-position strategy, the six samples naturally contrast the N pole with the S pole, the maximum corresponding to the N pole and the minimum to the S pole.

f. Implementation considerations

  • Selection of the on-time onTime: It must be long enough for the current to reach a measurable amplitude, yet not so long that the rotor moves noticeably. Several hundred microseconds to a few milliseconds are typical, depending on the motor inductance and the current sampling resolution.
  • Selection of the dead time offTime: It ensures that the freewheeling current of the previous vector has fully decayed and does not affect the sampling of the next vector. It is generally several times the on-time.
  • Injection order: Alternate injections at spatially opposite positions, for example 0∘→180∘→60∘→240∘→120∘→300∘ , to cancel the net torque and prevent rotor micro-motion.
  • Sampling delay: With dual/triple-shunt sampling, wait for the current to settle after the injected vector ends, the high-side switches are turned off and the low-side switches conduct, and then sample in order to avoid switching noise.
  • Hardware protection: Overcurrent and overvoltage faults are monitored during injection, and all switches are turned off immediately if one occurs, to prevent damage.

g. Advantages and disadvantages

Advantages| Disadvantages ---|--- Simple to implement, with no high-frequency signal injection| Only the initial position is obtained; not usable during dynamic operation Insensitive to motor parameters and robust| Depends strongly on magnetic saturation, and surface-mounted motors may require a higher injection voltage Low computational load, suitable for resource-constrained microcontrollers| The rotor may move slightly during injection, which must be suppressed by injecting at opposite positions Polarity identification is implicit in the samples, with no extra step| The injection takes longer than high-frequency injection, because the freewheeling current must decay

Conclusion: Six-pulse injection is a reliable and efficient method of initial rotor position detection and is widely used in sensorless starting control of permanent magnet synchronous motors. By applying the six basic voltage vectors in turn and comparing the current response amplitudes, the algorithm achieves a resolution of 60∘ and identifies the N pole direction quickly. Alternating injections at spatially opposite positions and waiting for the freewheeling current to reach zero effectively suppress rotor micro-motion and preserve positioning accuracy. The method is simple to implement, with polarity identification implicit in the samples, and it is a common solution in engineering practice.

h. Adaptive injection time calculation

In practical applications the DC bus voltage Udc is not constant; in battery-fed or rectifier-fed systems in particular, the voltage may vary by more than ±20% . With a fixed injection time ton , a higher bus voltage raises the peak injection current, which may trip the overcurrent protection or even damage the power devices, while a lower bus voltage gives too small a current peak, reducing the sampling signal-to-noise ratio and degrading position identification accuracy. The injection time must therefore be adjusted dynamically according to the bus voltage and the motor parameters, so that the peak injection current stays near the target value Itarget .

Calculation of the peak injection current: During six-pulse injection, each basic voltage vector acts on the motor windings, which is equivalent to applying a step voltage across the phase inductance L and the phase resistance R . Neglecting the back-EMF, since the rotor is at standstill, the current response is the step response of a first-order RL circuit:

i(t)=UR(1–e−RLt)

where U is the equivalent voltage applied to the windings. For a basic voltage vector, the relation between the equivalent winding voltage and the bus voltage depends on the vector type and the motor connection. For a star-connected motor, the equivalent phase voltage of the basic vector 100 , with the U-phase high-side switch and the V- and W-phase low-side switches conducting, is U=23Udc .

The peak injection current occurs at the end of the injection, at time t=ton :

Ipeak=UR(1–e−RLton)

Solving for the injection time: Given the target current peak Itarget , the required injection time is obtained by inversion:

ton=−LRln(1–RItargetU)

where U=k·Udc , and for a basic vector k=2/3 in star connection. The formula requires Itarget<U/R , that is, the target current must be smaller than the steady-state short-circuit current; otherwise the time tends to infinity.

Simplified engineering calculation: Because the motor resistance R is usually small, the exponential term can be expanded linearly for short injection times of several hundred microseconds to a few milliseconds:

Ipeak≈ULton

This gives the simplified formula for the injection time:

ton=L·ItargetU=L·Itargetk·Udc

This approximation avoids exponential and logarithmic operations and is suitable for real-time computation on resource-constrained microcontrollers. It is accurate when ton≪L/R ; for longer injection times, the exact exponential formula or a precomputed lookup table is recommended.

Adaptive injection procedure:

  1. Before each six-pulse injection, sample the current DC bus voltage Udc .
  2. Using the target current peak Itarget and the motor parameters L,R , which can be obtained by offline identification or calibration, compute the injection time ton for this sequence with the formulas above.
  3. Execute the injection and sample the current response.
  4. Optionally, the peak current actually sampled is used to trim ton in a closed loop to compensate parameter errors.

Implementation considerations:

  • Parameter acquisition: The motor inductance L and resistance R can be obtained by offline measurement or online identification. For volume production, they can be stored in a parameter table during factory calibration.
  • Target current setting: Itarget must balance sampling resolution against system safety and is usually set to 20%~50% of the motor rated current, depending on the ADC range and the gain of the current sampling circuit.
  • Saturation handling: When the computed ton exceeds the safety limit, it is clamped to the maximum value and either Itarget is reduced or a fault is reported.
  • Coordination with offTime: When the injection time ton changes, the time allowed for the freewheeling current to reach zero, toff , must be adjusted accordingly; it is generally set to toff=(3~5)·L/R to ensure complete decay of the current.

Advantages:

  • It adapts to DC bus voltage fluctuations and keeps the peak injection current constant, improving the robustness of position identification.
  • It provides a consistent sampling signal-to-noise ratio under different supply conditions, avoiding overcurrent or insufficient signal.
  • It provides a stable current response amplitude for subsequent polarity determination and position calculation, improving positioning accuracy.

This adaptive injection time calculation greatly improves the adaptability and reliability of six-pulse injection in engineering applications and is one of the key techniques for robust initial position identification.

This article was compiled by AI and proofread manually.