Zero-position offset fault detection method for permanent magnet synchronous motors

By calculating and compensating for stator flux linkage in real time using a pure voltage model, and combining observation angle and frequency detection, the hysteresis and delay problems in zero-position offset fault detection of permanent magnet synchronous motors are solved, achieving fast and accurate fault detection.

CN123122406APending Publication Date: 2026-11-17NANJING HENGLI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611482879.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-22
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In the existing technology, the zero-position offset fault detection method of permanent magnet synchronous motor cannot achieve rapid online detection, and there are problems such as phase lag and dynamic response delay caused by filters, high computing power requirements of complex observers, and convergence lag of closed-loop regulation.

Method used

A pure voltage model is used to calculate the stator flux linkage in real time. By acquiring the stator voltage and current, the flux linkage offset is calculated and compensated, and the pure flux linkage observation value is directly obtained. The observation angle and frequency are compared with the electrical synchronization angle and frequency to achieve rapid detection of zero-position offset fault.

Benefits of technology

It enables rapid detection of zero-position offset faults, avoids phase lag and dynamic response delay caused by filters, reduces computational load and processor requirements, simplifies the complexity of the observer, and improves detection speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123122406A_ABST
    Figure CN123122406A_ABST
Patent Text Reader

Abstract

This invention relates to the field of motor technology, providing a method and apparatus for detecting zero-position offset faults in permanent magnet synchronous motors. The method includes: calculating stator flux linkage using a voltage model; extracting the stator flux linkage from the previous cycle to obtain the flux linkage offset for the current cycle; compensating for the flux linkage offset in the current cycle to obtain a pure flux linkage observation value; extracting the observation angle and frequency of the pure flux linkage observation value; and comparing the observation angle and frequency with the electrical synchronization angle and electrical angular frequency to detect whether a zero-position offset fault exists in the position sensor. This invention uses a pure voltage model for real-time calculation of stator flux linkage and directly performs flux linkage compensation for the current cycle based on the stator flux linkage value, avoiding the phase lag and dynamic response delay problems caused by filters, and with minimal computational load. It also avoids the convergence lag problem of flux linkage observers and closed-loop regulation, thereby achieving rapid detection of zero-position offset faults.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of motor technology, and specifically to a method and apparatus for detecting zero-position offset faults in a permanent magnet synchronous motor. Background Technology

[0002] Permanent magnet synchronous motors may experience zero-position offset faults due to factors such as mechanical installation and manufacturing deviations, parameter variations, and aging wear, causing a discrepancy between the zero position of the motor rotor position sensor and the actual zero position of the rotor magnetic poles (i.e., the d-axis). Since the motor controller's field-oriented control relies entirely on accurate rotor position to orient the stator current, zero-position offset prevents the controller from precisely driving the motor. This can range from reduced efficiency and performance to system instability and equipment damage. Therefore, detecting zero-position offset faults in the position sensor is crucial during motor manufacturing, installation, and long-term operation and maintenance.

[0003] Currently, there are offline calibration methods for zero-position offset fault detection of position sensors. These methods are typically performed under specific operating conditions during motor manufacturing or maintenance and cannot be used for online detection. To achieve online zero-position offset fault detection, most related technologies employ the flux linkage observation method. However, this method requires pure integration in principle. In actual systems, sensor errors, inverter nonlinearities (such as dead-zone effects), and sampling noise introduce a small DC bias into the back EMF signal to be integrated, causing severe drift or even saturation in the flux linkage observation results, resulting in completely distorted calculations.

[0004] To address the integral drift problem in flux linkage observation, low-pass filters, complex observers (such as model reference adaptive systems and sliding mode observers), or closed-loop regulation are typically employed. These approaches present several challenges: while filters suppress integral drift, they introduce phase lag, thus reducing position estimation accuracy; constructing complex flux linkage observers involves complex algorithms, demands high processor computing power, and the observer's convergence process itself takes time, slowing down the system's dynamic response and hindering rapid fault detection; closed-loop regulation involves online calculation of the flux linkage and comparison with a reference value, feeding the deviation into the regulator, waiting for convergence, and outputting a compensation angle. When the deviation is too large, a zero-position deviation fault is detected. The entire process takes several seconds or even longer to stabilize, resulting in long convergence times and slow dynamic response. Summary of the Invention

[0005] To address the aforementioned technical problems, the first objective of this invention is to propose a method for detecting zero-position offset faults in permanent magnet synchronous motors. This method avoids the phase lag and dynamic response delay issues caused by filters, while requiring minimal computation. It also avoids the convergence lag issues of flux observers and closed-loop regulation, thereby enabling rapid detection of zero-position offset faults.

[0006] The second objective of this invention is to provide a zero-position offset fault detection device for a permanent magnet synchronous motor.

[0007] The technical solution adopted in this invention is as follows:

[0008] An embodiment of the first aspect of the present invention proposes a method for detecting zero-position offset fault in a permanent magnet synchronous motor, comprising the following steps: acquiring the stator voltage and stator current of the motor; calculating the stator flux linkage based on the stator voltage and stator current using a voltage model; extracting the stator flux linkage of the previous cycle; obtaining the flux linkage offset of the current cycle based on the stator flux linkage of the previous cycle; compensating the stator flux linkage of the current cycle based on the flux linkage offset to obtain the pure flux linkage observation value of the current cycle; extracting the observation angle and observation frequency of the pure flux linkage observation value; acquiring the electrical synchronization angle and electrical angular frequency fed back by the motor position sensor; comparing the observation angle and observation frequency with the electrical synchronization angle and electrical angular frequency; and detecting whether the position sensor has the zero-position offset fault based on the comparison result.

[0009] The zero-position offset fault detection method for permanent magnet synchronous motors proposed in this invention may also have the following additional technical features:

[0010] According to one embodiment of the present invention, obtaining the flux linkage offset of the current cycle based on the stator flux linkage of the previous cycle specifically includes: extracting the maximum and minimum values ​​of the stator flux linkage along the α-axis and β-axis of the previous cycle; averaging the maximum and minimum values ​​of the flux linkage along the α-axis of the previous cycle to obtain the first flux linkage offset of the α-axis of the current cycle; and averaging the maximum and minimum values ​​of the flux linkage along the β-axis of the previous cycle to obtain the first flux linkage offset of the β-axis of the current cycle.

[0011] According to one embodiment of the present invention, obtaining the flux linkage offset of the current period based on the stator flux linkage of the previous period further includes: calculating the sine integral or cosine integral value of the stator flux linkage along the α-axis and β-axis of the previous period; using the sine integral or cosine integral value of the stator flux linkage along the α-axis as the second flux linkage offset of the α-axis in the current period; and using the sine integral or cosine integral value of the stator flux linkage along the β-axis as the second flux linkage offset of the β-axis in the current period.

[0012] According to one embodiment of the present invention, obtaining the flux linkage offset of the current period based on the stator flux linkage of the previous period further includes: differentiating the absolute value of the difference between the stator flux linkage of each sampling point on the α axis of the previous period and the stator flux linkage at the previous moment, and taking the stator flux linkage with the differential result greater than a set differential threshold as the third flux linkage offset of the α axis of the current period; differentiating the absolute value of the difference between the stator flux linkage of each sampling point on the β axis of the previous period and the stator flux linkage at the previous moment, and taking the stator flux linkage with the differential result greater than a set differential threshold as the third flux linkage offset of the β axis of the current period. According to one embodiment of the present invention, the stator flux linkage of the current period is compensated based on the flux linkage offset to obtain the pure flux linkage observation value of the current period. Specifically, this includes: removing the first flux linkage offset, the second flux linkage offset, and the third flux linkage offset of the current period α axis from the stator flux linkage of the current period α axis to obtain the pure flux linkage observation value of the current period α axis; and removing the first flux linkage offset, the second flux linkage offset, and the third flux linkage offset of the current period β axis from the stator flux linkage of the current period β axis to obtain the pure flux linkage observation value of the current period β axis.

[0013] According to one embodiment of the present invention, the observation angle and observation frequency of the pure flux observation are extracted using Atan (Arctangent) or PLL (Phase-Locked Loop).

[0014] According to one embodiment of the present invention, comparing the observation angle and observation frequency with the electrical synchronization angle and electrical angular frequency, and detecting whether the position sensor has the zero-position offset fault based on the comparison result, specifically includes: calculating the absolute value of the difference between the observation angle and the electrical synchronization angle, and calculating the absolute value of the difference between the observation frequency and the electrical angular frequency; determining whether, within a set time window, the absolute value of the difference between the observation frequency and the electrical angular frequency exceeds a set frequency threshold a first set number of times; if not, further determining whether, within the set time window, the absolute value of the difference between the observation angle and the electrical synchronization angle exceeds a set angle threshold a second set number of times; if yes, determining that the position sensor has the zero-position offset fault.

[0015] According to an embodiment of the present invention, the above-described method for detecting zero-position offset faults in a permanent magnet synchronous motor further includes: if, within the set time window, the absolute value of the difference between the observed frequency and the electrical angular frequency exceeds a set frequency threshold a first set number of times, then the position sensor is determined to be faulty.

[0016] A second aspect of the present invention provides a zero-position offset fault detection device for a permanent magnet synchronous motor, comprising: a calculation module for acquiring the stator voltage and stator current of the motor, and calculating the stator flux linkage based on the stator voltage and stator current using a voltage model; a compensation module for extracting the stator flux linkage of the previous cycle, obtaining the flux linkage offset of the current cycle based on the stator flux linkage of the previous cycle, and compensating the stator flux linkage of the current cycle based on the flux linkage offset to obtain the pure flux linkage observation value of the current cycle; an extraction module for extracting the observation angle and observation frequency of the pure flux linkage observation value; and a detection module for acquiring the electrical synchronization angle and electrical angular frequency fed back by the motor position sensor, comparing the observation angle and observation frequency with the electrical synchronization angle and electrical angular frequency, and detecting whether the position sensor has the zero-position offset fault based on the comparison result.

[0017] The zero-position offset fault detection device for permanent magnet synchronous motors proposed in this invention may also have the following additional technical features:

[0018] According to one embodiment of the present invention, the compensation module is specifically used to extract the maximum and minimum values ​​of the stator flux linkage of the α-axis and β-axis of the previous cycle; to average the maximum and minimum values ​​of the flux linkage of the α-axis of the previous cycle to obtain the first flux linkage offset of the α-axis of the current cycle; and to average the maximum and minimum values ​​of the flux linkage of the β-axis of the previous cycle to obtain the first flux linkage offset of the β-axis of the current cycle.

[0019] According to one embodiment of the present invention, the compensation module is further configured to: calculate the sine integral or cosine integral value of the stator flux linkage of the α-axis and β-axis in the previous period; use the sine integral or cosine integral value of the stator flux linkage of the α-axis as the second flux linkage offset of the α-axis in the current period; and use the sine integral or cosine integral value of the stator flux linkage of the β-axis as the second flux linkage offset of the β-axis in the current period.

[0020] According to one embodiment of the present invention, the compensation module is further configured to: differentiate the absolute value of the stator flux linkage at each sampling point of the α-axis in the previous period after subtracting it from the stator flux linkage at the previous moment, and use the stator flux linkage with the differentiation result greater than a set differentiation threshold as the third flux linkage offset of the α-axis in the current period; differentiate the absolute value of the stator flux linkage at each sampling point of the β-axis in the previous period after subtracting it from the stator flux linkage at the previous moment, and use the stator flux linkage with the differentiation result greater than a set differentiation threshold as the third flux linkage offset of the β-axis in the current period.

[0021] According to one embodiment of the present invention, the compensation module is further configured to: remove the first flux linkage offset, the second flux linkage offset, and the third flux linkage offset of the current period α axis from the stator flux linkage of the current period α axis to obtain the pure flux linkage observation value of the current period α axis; and remove the first flux linkage offset, the second flux linkage offset, and the third flux linkage offset of the current period β axis from the stator flux linkage of the current period β axis to obtain the pure flux linkage observation value of the current period β axis.

[0022] According to one embodiment of the present invention, the extraction module uses Atan or PLL to extract the observation angle and observation frequency of the pure magnetic flux observation value.

[0023] According to one embodiment of the present invention, the detection module is specifically used for: calculating the absolute value of the difference between the observation angle and the electrical synchronization angle, and calculating the absolute value of the difference between the observation frequency and the electrical angle frequency; determining whether there exists a first set number of times within a set time window the absolute value of the difference between the observation frequency and the electrical angle frequency is greater than a set frequency threshold; if not, further determining whether there exists a second set number of times within the set time window the absolute value of the difference between the observation angle and the electrical synchronization angle is greater than a set angle threshold; if yes, determining that the position sensor has a zero-position offset fault.

[0024] According to one embodiment of the present invention, the detection module is further configured to: determine that the position sensor is faulty if, within the set time window, the absolute value of the difference between the observation frequency and the electrical angular frequency is greater than a set frequency threshold a number of times.

[0025] The beneficial effects of this invention are:

[0026] This invention employs a pure voltage model for real-time calculation of stator flux linkage and directly performs flux linkage compensation for the current cycle based on the calculated stator flux linkage. Based on the compensated pure flux linkage, it can accurately determine whether the position sensor has zero-position offset, completely eliminating the filter stage and fundamentally avoiding the phase lag and dynamic response delay problems caused by filters. This achieves dynamic zero-delay flux linkage observation, and the compensation process does not rely on complex observers or closed-loop regulators, resulting in minimal computational load and low processor requirements, making it easy to deploy in automotive-grade products. At the same time, it avoids the convergence hysteresis problems caused by flux linkage observers and closed-loop regulation, enabling rapid detection of zero-position offset faults. Attached Figure Description

[0027] Figure 1 This is a flowchart of a method for detecting zero-position offset faults in a permanent magnet synchronous motor according to an embodiment of the present invention;

[0028] Figure 2This is a flowchart of a zero-position offset fault detection method for a permanent magnet synchronous motor according to another embodiment of the present invention;

[0029] Figure 3 This is a block diagram of a zero-position offset fault detection device for a permanent magnet synchronous motor according to an embodiment of the present invention. Detailed Implementation

[0030] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0031] Figure 1 This is a flowchart of a zero-position offset fault detection method for a permanent magnet synchronous motor according to an embodiment of the present invention, as follows: Figure 1 As shown, the zero-position offset fault detection method includes:

[0032] S1: Obtain the stator voltage and stator current of the motor, and use the voltage model to calculate the stator flux linkage based on the stator voltage and stator current.

[0033] Specifically, the formula for calculating stator flux linkage using the voltage model is as follows: Where us and is are the stator voltage and stator current, respectively, Rs is the stator resistance, ψs is the flux linkage, and t is the sampling time.

[0034] The α-axis stator flux linkage is calculated at each sampling point by collecting the α-axis stator voltage and stator current; the β-axis stator flux linkage is calculated at each sampling point by collecting the β-axis stator voltage and stator current.

[0035] S2, extract the stator flux linkage from the previous cycle, and obtain the flux linkage offset ψ for the current cycle based on the stator flux linkage from the previous cycle. add According to the magnetic flux offset ψ add stator flux linkage ψ for the current period raw Compensation is performed to obtain the observed pure magnetic flux linkage ψ for the current period. comp .

[0036] Specifically, the magnetic flux offset ψ add From the stator flux linkage ψ of the current cycle raw Remove from the middle to determine the stator flux linkage ψ for the current cycle. raw Compensation is performed to obtain the stator flux linkage ψ for the current period. raw , that is ψ comp =ψ raw -ψ add .

[0037] As a first example, the flux linkage offset ψ for the current cycle is obtained based on the stator flux linkage of the previous cycle. add Specifically, it includes the following steps S21-S23:

[0038] S21, extract the maximum and minimum flux linkage values ​​of the stator flux linkage along the α and β axes of the previous period. S22, for the maximum flux linkage ψ along the α axis of the previous period... α_max and the minimum magnetic flux linkage ψ α_min Taking the average, we obtain the first flux linkage offset ψ along the α axis of the current period. α_add1 .

[0039] In other words, ψ α_add1 =(ψ α_max +ψ α_min ) / 2.

[0040] S23, the maximum flux linkage ψ along the β axis in the current period. β_max and the minimum magnetic flux linkage ψ β_min Taking the average, we obtain the first flux linkage offset ψ along the β axis of the current period. β_add1 .

[0041] In other words, ψ β_add1 =(ψ β_max +ψ β_min ) / 2.

[0042] As a second example, the flux linkage offset ψ for the current cycle is obtained based on the stator flux linkage of the previous cycle. add Specifically, it includes the following steps S24-S26:

[0043] S24, calculate the sine or cosine integral of the stator flux linkage along the α and β axes of the previous period.

[0044] S25, take the sine or cosine integral of the stator flux linkage along the α-axis as the second flux linkage offset ψ along the α-axis in the current period. α_add2 .

[0045] S26, take the sine or cosine integral of the stator flux linkage along the β-axis as the second flux linkage offset ψ along the β-axis in the current period. β_add2 .

[0046] As a third example, the flux linkage offset ψ for the current cycle is obtained based on the stator flux linkage of the previous cycle. add Specifically, it includes the following steps S27-S28:

[0047] S27, Differentiate the absolute value of the difference between the stator flux linkage at each sampling point of the α-axis in the previous period and the stator flux linkage at the previous moment. Take the stator flux linkage whose differential result is greater than a set differential threshold as the third flux linkage offset ψ of the α-axis in the current period.α_add3 .

[0048] S28, Differentiate the absolute value of the difference between the stator flux linkage at each sampling point of the β-axis in the previous period and the stator flux linkage at the previous moment, and take the stator flux linkage with the differential result greater than the set differential threshold as the third flux linkage offset ψ of the β-axis in the current period. β_add3 .

[0049] Specifically, the stator flux linkage of each sampling point in the previous period is extracted. The absolute value of the difference between the stator flux linkage of each sampling point and the stator flux linkage at the previous moment is differentiated. If the differentiation result is greater than a set differentiation threshold, the stator flux linkage of that sampling point is considered instantaneous noise data, and the stator flux linkage of that sampling point is used as the third flux linkage offset for the current period. This achieves jump detection. The stator flux linkage of all sampling points whose differentiation results are greater than the set differentiation threshold is used as the third flux linkage offset ψ. β_add3 .

[0050] In one embodiment of the invention, based on the magnetic flux offset ψ add stator flux linkage ψ for the current period raw Compensation is performed to obtain the observed pure magnetic flux linkage ψ for the current period. comp Specifically, it includes the following steps S29-S30:

[0051] S29, adjust the first flux linkage offset ψ of the current period α axis. α_add1 Second magnetic flux offset ψ α_add2 and the third flux offset ψ α_add3 From the current period α axis stator flux linkage ψ α_raw After removing the negative values, we obtain the pure flux linkage observation ψ along the α axis of the current period. α_comp .

[0052] In other words, the flux linkage offset ψ along the α axis α_add =ψ α_add1 +ψ α_add2 +ψ α_add3 , ψ α_comp =ψ α_raw -ψ α_add1 -ψ α_add2 -ψ α_add3 .

[0053] Stator flux linkage ψ along the α-axis of the current period α_raw It is calculated based on the average amplitude of the stator flux linkage sampling value of the current period α axis.

[0054] S30, the first flux linkage offset ψ of the current period β axis β_add1 Second magnetic flux offset ψ β_add2 and the third flux offset ψ β_add3 From the current period β axis stator flux linkage ψβ_raw After removing the negative values, the pure flux linkage observation ψ along the β axis of the current period is obtained. β_comp .

[0055] In other words, the flux linkage offset ψ along the β axis β_add =ψ β_add1 +ψ β_add2 +ψ β_add3 , ψ β_comp =ψ β_raw -ψ β_add1 -ψ β_add2 -ψ β_add3 .

[0056] Stator flux linkage ψ along the current period β axis β_raw It is calculated based on the average amplitude of the stator flux linkage sampling value of the current period β axis.

[0057] Specifically, to achieve pure integration without using a filter, this invention proposes a timed forced elimination strategy: Since this scheme monitors mechanical bias faults of the position sensor in the presence of a position sensor, it can read the motor frequency and record the stator flux linkages along the α and β axes in real time within each complete cycle (360° electrical angle). At the start of the next cycle, the first flux linkage offset ψ for the current cycle is calculated based on the extreme values ​​of the stator flux linkages along the α and β axes from the previous cycle. add1 The second flux linkage offset ψ is calculated based on the sine or cosine integral values ​​of the stator flux linkage along the α and β axes of the previous cycle. add2 The third flux offset ψ is extracted by differentiating the absolute values ​​of the stator flux linkage at each sampling point on the α and β axes of the previous cycle with the stator flux linkage at the previous moment. add3 .

[0058] After obtaining the offset, a feedforward compensation method is used to calculate ψ. add1 ψ add2 and ψ add3 Directly removed from the stator flux linkage of this cycle (ψ) comp =ψ raw -ψ add1 -ψ add2 -ψ add3 ), to obtain the compensated pure flux linkage observation ψ along the α axis. α_comp Pure flux linkage observations ψ along the β axis β_comp After compensation, because the offset is compensated for, both the α-axis flux linkage and the β-axis flux linkage are true values ​​in each cycle, thus yielding a pure flux linkage observation value ψ. comp The flux compensation process in this invention does not rely on closed-loop feedback adjustment for error accumulation, thus avoiding the convergence hysteresis problem present in traditional flux observers and achieving hysteresis-free, high-bandwidth flux observation.

[0059] In addition to obtaining the flux linkage offset of the current cycle by extracting the maximum and minimum values ​​of the stator flux linkage from the previous cycle as described in this application, the stator flux linkage of the current cycle can also be recorded, and the flux linkage offset ψ of the current cycle can be obtained based on the stator flux linkage of the current cycle. add The offset can be calculated in the same way as above.

[0060] S3, Extract the pure magnetic flux observation value ψ comp observation angle θ flux and observation frequency ω flux .

[0061] In one specific embodiment of the present invention, Atan or PLL can be used to extract the pure flux linkage observation value ψ. comp observation angle θ flux and observation frequency ω flux .

[0062] S4, Obtain the electrical synchronization angle θ fed back by the motor position sensor. sensor and electric angular frequency ω sensor , the observation angle θ flux and observation frequency ω flux With the electric synchronization angle θ sensor and electric angular frequency ω sensor The comparison is performed, and the position sensor is checked for zero-position offset fault based on the comparison results.

[0063] Specifically, using the compensated pure magnetic flux observation value ψ comp The rotor angle and frequency are directly extracted via Atan or a phase-locked loop (PLL) and compared in real time with the feedback values ​​from the position sensor. The deviation between the two values ​​quickly determines if a zero-position offset fault exists. The pure flux linkage observation value ψ for the α-axis is also considered. α_comp Pure flux linkage observations ψ along the β axis β_comp Perform steps S3-S4 respectively.

[0064] In one specific embodiment of the present invention, such as Figure 2 As shown, the observation angle and observation frequency are compared with the electrical synchronization angle and electrical angular frequency. Based on the comparison results, the position sensor is checked for zero-position offset faults. Specifically, this includes the following steps S41-S46:

[0065] S41, Calculate the observation angle θ flux and the electrical synchronization angle θ sensor The absolute value of the difference Δθ, and the calculation of the observation frequency ω flux and electric angular frequency ω sensor The absolute value of the difference Δω.

[0066] Specifically, Δθ = |θ flux -θsensor |,Δω=|ω flux -ω sensor |

[0067] S42, determine whether the observation frequency ω exists within the set time window. flux and electric angular frequency ω sensor The absolute value of the difference Δω is greater than the set frequency threshold ω th The number of times reached the first set number.

[0068] Specifically, statistics show that within a set time window (e.g., 100ms), Δω > ω. th The number of occurrences can be counted using the cumulative method, that is, within a set time window, as long as Δω>ω th If the count is incremented by 1, then the count can be incremented by 1; alternatively, an increment-decrement conditional count can be used, that is, within a set time window, if Δω>ω is satisfied... th If the condition is met, the count is incremented by 1; otherwise, the count is decremented by 1.

[0069] S43, if it exists within the set time window, the observation frequency ω flux and electric angular frequency ω sensor The absolute value of the difference Δω is greater than the set frequency threshold ω th If the number of times reaches the first set number, the position sensor is judged to be faulty.

[0070] Specifically, within the set time window, Δω>ω th If the number of times reaches the first set number, it is determined that the position sensor is faulty.

[0071] S44, if not, then further determine whether there is an observation angle ω within the set time window. flux and the electrical synchronization angle ω sensor The absolute value of the difference Δθ is greater than the set angle threshold θ th The number of times reached the second set number.

[0072] S45, if yes, then it is determined that the position sensor has a zero-position offset fault.

[0073] S46, if not, then the position sensor is considered to be normal.

[0074] Specifically, if within a set time window, Δω > ω th If the number of occurrences does not reach the first set number, further judgment is made that within the set time window, Δθ > θ. th Has the number of iterations reached the second set number of iterations? If Δθ>θ th If the number of times reaches the second set number, it is determined that the position sensor has a zero-position offset fault.

[0075] In this invention, the extraction of the maximum and minimum values ​​of stator flux linkage and flux linkage compensation are performed only when the motor is in steady-state operation. For example, when the motor speed fluctuation rate is less than a preset value (such as ±5%), extreme value extraction and flux linkage compensation calculation are performed to eliminate the interference of dynamic transient processes on extreme value sampling and ensure the accuracy of compensation.

[0076] In summary, the zero-position offset fault detection method for permanent magnet synchronous motors according to embodiments of the present invention uses a pure voltage model to calculate the stator flux linkage in real time, and directly performs flux linkage compensation for the current cycle based on the calculated stator flux linkage. Based on the compensated pure flux linkage, it can accurately determine whether the position sensor has zero-position offset, completely eliminating the filter stage and fundamentally avoiding the phase lag and dynamic response delay problems caused by the filter. It achieves dynamic zero-delay flux linkage observation, and the compensation process does not rely on complex observers or closed-loop regulators, with minimal computational load and low processor requirements, making it easy to deploy in automotive-grade products. At the same time, it can avoid the convergence hysteresis problem caused by flux linkage observers and closed-loop regulation, achieving rapid detection of zero-position offset faults.

[0077] Corresponding to the aforementioned method for detecting zero-position offset faults in permanent magnet synchronous motors, this invention also proposes a device for detecting zero-position offset faults in permanent magnet synchronous motors. For details not disclosed in the device embodiments, please refer to the method embodiments described above; further details will not be repeated here.

[0078] Figure 3 This is a block diagram of a zero-position offset fault detection device for a permanent magnet synchronous motor according to an embodiment of the present invention, as shown below. Figure 3 As shown, the zero-position offset fault detection device includes: a calculation module 1, a compensation module 2, an extraction module 3, and a detection module 4.

[0079] The calculation module 1 is used to obtain the stator voltage and stator current of the motor, and calculate the stator flux linkage based on the stator voltage and stator current using a voltage model; the compensation module 2 is used to extract the stator flux linkage of the previous cycle, and obtain the flux linkage offset ψ of the current cycle based on the stator flux linkage of the previous cycle. add According to the magnetic flux offset ψ add stator flux linkage ψ for the current period raw Compensation is performed to obtain the observed pure magnetic flux linkage ψ for the current period. comp Extraction module 3 is used to extract the pure magnetic flux linkage observation value ψ. comp observation angle θ flux and observation frequency ω flux Detection module 4 is used to acquire the electrical synchronization angle θ fed back by the motor position sensor. sensor and electric angular frequency ω sensor , the observation angle θ flux and observation frequency ωflux With the electric synchronization angle θ sensor and electric angular frequency ω sensor The comparison is performed, and the position sensor is checked for zero-position offset fault based on the comparison results.

[0080] According to one embodiment of the present invention, the extraction module 3 uses Atan or PLL to extract the observation angle and observation frequency of the pure magnetic flux observation value.

[0081] According to one embodiment of the present invention, the detection module 4 is specifically used to: calculate the absolute value of the difference between the observation angle and the electrical synchronization angle, and calculate the absolute value of the difference between the observation frequency and the electrical angular frequency; determine whether, within a set time window, the number of times the absolute value of the difference between the observation frequency and the electrical angular frequency exceeds a set frequency threshold reaches a first set number; if not, further determine whether, within a set time window, the number of times the absolute value of the difference between the observation angle and the electrical synchronization angle exceeds a set angle threshold reaches a second set number; if yes, determine that the position sensor has a zero-position offset fault. According to one embodiment of the present invention, the detection module is further used to: if, within a set time window, the number of times the absolute value of the difference between the observation frequency and the electrical angular frequency exceeds a set frequency threshold reaches a first set number, determine that the position sensor has a fault.

[0082] In summary, the zero-position offset fault detection device for permanent magnet synchronous motors according to embodiments of the present invention uses a pure voltage model to calculate the stator flux linkage in real time, and directly performs flux linkage compensation for the current cycle based on the calculated stator flux linkage. Based on the compensated pure flux linkage, it can accurately determine whether the position sensor has zero-position offset, completely eliminating the filter stage and fundamentally avoiding the phase lag and dynamic response delay problems caused by the filter. It achieves dynamic zero-delay flux linkage observation, and the compensation process does not rely on complex observers or closed-loop regulators. The computational load is extremely small, the processor requirements are low, and it is easy to deploy in automotive-grade products. At the same time, it can avoid the convergence lag problem caused by flux linkage observers and closed-loop regulation, and achieve rapid detection of zero-position offset faults.

[0083] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0084] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0085] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of the invention pertain.

[0086] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.

[0087] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any of the following techniques known in the art, or a combination thereof: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0088] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware, and the program can be stored in a computer-readable storage medium. When executed, the program includes one or a combination of the steps of the method embodiments.

[0089] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0090] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A method for detecting zero-position offset fault in a permanent magnet synchronous motor, characterized in that, Includes the following steps: Obtain the stator voltage and stator current of the motor, and use the voltage model to calculate the stator flux linkage based on the stator voltage and stator current; Extract the stator flux linkage from the previous cycle, obtain the flux linkage offset for the current cycle based on the stator flux linkage from the previous cycle, compensate the stator flux linkage for the current cycle based on the flux linkage offset, and obtain the observed pure flux linkage value for the current cycle. Extract the observation angle and observation frequency of the pure magnetic flux observations; The electrical synchronization angle and electrical angular frequency fed back by the motor position sensor are obtained, and the observed angle and observed frequency are compared with the electrical synchronization angle and electrical angular frequency. Based on the comparison result, it is detected whether the position sensor has the zero position offset fault.

2. The method for detecting zero-position offset fault in a permanent magnet synchronous motor according to claim 1, characterized in that, The flux linkage offset for the current cycle is obtained based on the stator flux linkage of the previous cycle, specifically including: Extract the maximum and minimum values ​​of the stator flux linkage along the α and β axes of the previous cycle; The first flux linkage offset of the α axis in the current period is obtained by averaging the maximum and minimum flux linkage values ​​of the previous period. The first flux linkage offset of the β axis in the current period is obtained by averaging the maximum and minimum flux linkage values ​​of the previous period.

3. The method for detecting zero-position offset fault in a permanent magnet synchronous motor according to claim 2, characterized in that, The method for obtaining the flux linkage offset of the current cycle based on the stator flux linkage of the previous cycle also includes: Calculate the sine or cosine integral values ​​of the stator flux linkage along the α and β axes in the previous cycle; The sine integral or cosine integral of the α-axis stator flux linkage is used as the second flux linkage offset of the α-axis in the current period. The sine or cosine integral of the stator flux linkage along the β-axis is used as the second flux linkage offset along the β-axis in the current period.

4. The method for detecting zero-position offset fault in a permanent magnet synchronous motor according to claim 3, characterized in that, The method for obtaining the flux linkage offset of the current cycle based on the stator flux linkage of the previous cycle also includes: Differentiate the absolute value of the difference between the stator flux linkage at each sampling point of the α axis in the previous period and the stator flux linkage at the previous moment, and take the stator flux linkage with the differential result greater than the set differential threshold as the third flux linkage offset of the α axis in the current period. Differentiate the absolute value of the stator flux linkage at each sampling point of the β axis in the previous period with the stator flux linkage at the previous moment, and take the stator flux linkage with the differential result greater than the set differential threshold as the third flux linkage offset of the β axis in the current period.

5. The method for detecting zero-position offset fault in a permanent magnet synchronous motor according to claim 4, characterized in that, The stator flux linkage of the current period is compensated according to the flux linkage offset to obtain the pure flux linkage observation value of the current period. Specifically, the first flux linkage offset, the second flux linkage offset and the third flux linkage offset of the current period α axis are removed from the stator flux linkage of the current period α axis to obtain the pure flux linkage observation value of the current period α axis. The first, second, and third flux linkage offsets of the current period β axis are removed from the stator flux linkage of the current period β axis to obtain the pure flux linkage observation value of the current period β axis.

6. The method for detecting zero-position offset fault in a permanent magnet synchronous motor according to claim 1, characterized in that, The observation angle and observation frequency of the pure magnetic flux observations are extracted using Atan or PLL.

7. The method for detecting zero-position offset fault in a permanent magnet synchronous motor according to claim 1, characterized in that, The observation angle and observation frequency are compared with the electrical synchronization angle and electrical angular frequency. Based on the comparison result, the position sensor is detected to determine if it has a zero-position offset fault. Specifically, this includes: Calculate the absolute value of the difference between the observation angle and the electrical synchronization angle, and calculate the absolute value of the difference between the observation frequency and the electrical angular frequency; Determine whether there exists a first set number of times within a set time window the absolute value of the difference between the observation frequency and the electrical angle frequency exceeds a set frequency threshold. If not, then further determine whether there is a second set number of times within the set time window the absolute value of the difference between the observation angle and the electrical synchronization angle is greater than the set angle threshold. If so, it is determined that the position sensor has a zero-position offset fault.

8. The method for detecting zero-position offset fault in a permanent magnet synchronous motor according to claim 7, characterized in that, Also includes: If, within the set time window, the absolute value of the difference between the observation frequency and the electrical angular frequency exceeds a set frequency threshold a certain number of times, then the position sensor is determined to be faulty.

9. A zero-position offset fault detection device for a permanent magnet synchronous motor, characterized in that, include: The calculation module is used to obtain the stator voltage and stator current of the motor, and calculate the stator flux linkage based on the stator voltage and stator current using a voltage model; The compensation module is used to extract the stator flux linkage of the previous cycle, obtain the flux linkage offset of the current cycle based on the stator flux linkage of the previous cycle, compensate the stator flux linkage of the current cycle based on the flux linkage offset, and obtain the pure flux linkage observation value of the current cycle. Extraction module, the extraction module is used to extract the observation angle and observation frequency of the pure magnetic flux observation value; The detection module is used to acquire the electrical synchronization angle and electrical angular frequency fed back by the motor position sensor, compare the observed angle and observed frequency with the electrical synchronization angle and electrical angular frequency, and detect whether the position sensor has the zero position offset fault based on the comparison result.

10. The zero-position offset fault detection device for a permanent magnet synchronous motor according to claim 9, characterized in that, The detection module is specifically used for: Calculate the absolute value of the difference between the observation angle and the electrical synchronization angle, and calculate the absolute value of the difference between the observation frequency and the electrical angular frequency; Determine whether there exists a first set number of times within a set time window the absolute value of the difference between the observation frequency and the electrical angle frequency exceeds a set frequency threshold. If not, then further determine whether there is a second set number of times within the set time window the absolute value of the difference between the observation angle and the electrical synchronization angle is greater than the set angle threshold. If so, it is determined that the position sensor has a zero-position offset fault.