Permanent magnet synchronous motor current detection method, device and system
By constructing a sensor health assessment system and a weighted fusion method, the problem of current detection accuracy in permanent magnet synchronous motors was solved, achieving stable operation and fault identification when sensors fail, and improving the fault tolerance of the motor control system.
Patent Information
- Application Number
- CN202611324733.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing current detection methods for permanent magnet synchronous motors cannot guarantee current detection accuracy when the sensor fails, leading to a decline in the performance of the motor control system.
By constructing a sensor health assessment system, the health of each phase current sensor is calculated using a preset exponential mapping function. Based on the health, a fusion weight is generated, and the right-angle current is weighted and fused. Combined with the mathematical model of the permanent magnet synchronous motor, the current state equation is recursively solved and sampled for correction, and the current waveform is reconstructed.
It enables the output of highly reliable current detection information in the event of sensor failure, ensuring the stable operation of the motor vector control system, and providing complete current data to support fault identification and diagnosis, thereby improving fault tolerance.
Smart Images

Figure CN123184549A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of motor control technology, and more specifically, to a method, device, and system for detecting the current of a permanent magnet synchronous motor. Background Technology
[0002] Permanent magnet synchronous motors (PMSMs) possess outstanding advantages such as high power density, high operating efficiency, and excellent dynamic response performance, and are now widely used in many fields such as high-precision electromechanical servo systems, new energy vehicles, and industrial robots. Vector control, as the mainstream control scheme for PMSMs, operates on the principle of transforming the AC current in the stator coordinate system to the rotor rotating coordinate system through coordinate transformation, obtaining the direct-axis current and quadrature-axis current. This enables decoupled and independent control of motor torque and flux linkage. Therefore, the accuracy of the current detection results is crucial.
[0003] However, in actual operation of permanent magnet synchronous motors, current sensors are critical components with a high failure rate. Common failure types include zero-point drift, gain deviation, and complete sensor failure. To improve the reliability and accuracy of current detection, related technologies typically employ multi-phase independent sampling to acquire multiple current sample values, and then use median filtering to output the final current detection result. However, with this processing method, when the current sensor experiences a minor fault, the algorithm will still output a detection result with a large deviation, making it difficult to guarantee the accuracy of current detection, and thus affecting the working performance of the motor control system. Summary of the Invention
[0004] This application provides a method, apparatus, and system for current detection in a permanent magnet synchronous motor, aiming to at least solve the technical problem that current detection methods are unable to guarantee accuracy. Specifically: The first aspect of this application provides a method for detecting the current of a permanent magnet synchronous motor, including: The current sampling signals of each phase of the motor are collected from the current sensors of each phase circuit, and the corresponding groups of right-angle shaft currents are obtained based on the current sampling signals of each phase. For each phase current sensor, obtain the current deviation index, inter-phase deviation index, and noise level index of the corresponding current sensor. The three types of indicators are input into a preset exponential mapping function to calculate the health status of the corresponding current sensor. Based on the health status of each phase current sensor, a fusion weight is generated. The fusion weight is then used to weight and fuse each group of orthogonal axis currents to obtain the fused orthogonal axis current. A current state equation is constructed based on the mathematical model of a permanent magnet synchronous motor. The current state equation is solved recursively, and the recursive result is corrected according to the fused orthogonal axis current to reconstruct the current waveform.
[0005] Optionally, the step of converting the sampled signals of each phase current to obtain the corresponding sets of orthogonal axis currents includes: The current sampling signal of each phase current sensor is used as an independent current sampling channel. For each current sampling channel, based on the single-phase current value of the current sampling channel, and combined with the sampling information of other current sampling channels and the constraint that the sum of the three-phase currents is zero, a three-phase current dataset corresponding to the current sampling channel is obtained. The coordinate transformation is performed sequentially on the three-phase current dataset to obtain a set of orthogonal axis current values corresponding to the current sampling channel; Multiple sets of right-angle axis current values are obtained from the current sampling channels of each phase.
[0006] Optionally, obtaining the current deviation index, phase-to-phase deviation index, and noise level index of the corresponding current sensor includes: The absolute deviation between the current sampled value of the current phase in the current sampling period and the average value of the current sampled value of the current phase in the past preset number of sampling periods is obtained as the current deviation index. The absolute deviation between the current sample value of this phase and the average value of the current sample values of the other two phases in the current sampling period is obtained as the inter-phase deviation index. The standard deviation of the phase current sampling value within a preset number of sampling periods is obtained as the noise level indicator.
[0007] Optionally, the step of inputting the three types of indicators into a preset exponential mapping function to calculate the health status of the corresponding current sensor includes: The current deviation index, the inter-phase deviation index, and the noise level index are weighted and summed based on preset weighting coefficients to obtain a comprehensive deviation index. The overall deviation index is input into the exponential decay function to calculate the health status of the corresponding current sensor.
[0008] Optionally, the comprehensive deviation index is obtained by weighting and summing the current deviation index, the inter-phase deviation index, and the noise level index based on preset weighting coefficients, including: The current deviation index, the phase deviation index, and the noise level index are squared respectively to obtain the corresponding first squared term, second squared term, and third squared term; The first squared term, the second squared term, and the third squared term are weighted and summed based on the preset weighting coefficients to obtain the comprehensive deviation index. The sum of the preset weighting coefficients is 1.
[0009] Optionally, the exponential decay function is: ; in, The health status of the k-th phase current sensor; This is the current deviation index of the k-th phase current sensor; The phase-to-phase deviation index of the k-th phase current sensor; The noise level index of the k-th phase current sensor; α is the rated current of the motor; α is the first weighting coefficient, corresponding to the current deviation index; β is the second weighting coefficient, corresponding to the phase-to-phase deviation index; and γ is the third weighting coefficient, corresponding to the noise level index.
[0010] Optionally, the second weighting coefficient is greater than the first weighting coefficient and the third weighting coefficient.
[0011] Optionally, the generation of fusion weights based on the health status of each phase current sensor includes: Compare the health status of each phase current sensor with the preset health status threshold; In response to a phase current sensor’s health status falling below the preset health status threshold, the fusion weight of that phase current sensor is reset to zero. In response to a phase current sensor’s health status not being lower than the preset health status threshold, the health status of that phase current sensor is determined as the corresponding fusion weight.
[0012] Optionally, the step of resetting the fusion weight of a phase current sensor to zero in response to a health level lower than the preset health level threshold includes: In response to a change in the health status of a phase current sensor from not lower than the preset health status threshold to lower than the preset health status threshold, the fusion weight of the phase current sensor is gradually reduced from the current health status value to zero within a preset transition period according to a preset gradient curve.
[0013] Optionally, the method further includes: In response to the health status of a certain phase current sensor recovering from below the preset health status threshold to not below the preset health status threshold, the fusion weight of the phase current sensor is gradually increased from zero to the health status value calculated in the current period within a preset transition period according to a preset gradient curve.
[0014] Optionally, a fusion weight is generated based on the health status of each phase current sensor, and the fusion weight is used to weight and fuse the orthogonal axis currents of each group to obtain the fused orthogonal axis current, including: Multiply the current of each phase by the corresponding health level to obtain the weighted current of each phase. The weighted orthogonal axis currents of each phase are summed, and the summation result is divided by the sum of the health of each phase to generate the fused orthogonal axis current.
[0015] Optionally, the mathematical model based on the permanent magnet synchronous motor constructs a current state equation, recursively solves the current state equation, and corrects the recursive result based on the fused orthogonal axis current, including: The current state equation is constructed based on the mathematical model of the permanent magnet synchronous motor; Using the fused orthogonal axis current as the initial value of the current state equation, the current state equation is recursively solved using a preset numerical integration algorithm to generate the reconstructed orthogonal axis current. At a preset sampling correction time, the reconstructed orthogonal axis current is corrected based on the fused orthogonal axis current.
[0016] Optionally, the step of correcting the reconstructed quadrature axis current based on the fused quadrature axis current at a preset sampling correction time includes: Obtain the fused right-angle axis current corresponding to the preset sampling correction time; wherein, the preset sampling correction time is the rotor position trigger point when the rotor direct axis or rotor quadrature axis is aligned with the axis of any phase winding of the stator; Based on a preset correction coefficient, the reconstructed orthogonal axis current is weighted and corrected using the fused orthogonal axis current, wherein the weight of the fused orthogonal axis current is greater than the weight of the reconstructed orthogonal axis current in the weighted correction.
[0017] Optionally, after reconstructing the current waveform, the method further includes: Based on the reconstructed current of the orthogonal axis corresponding to the current waveform, three-phase currents are generated through inverse coordinate transformation. These three-phase currents serve as input data for the motor upper-level status monitoring and fault diagnosis system.
[0018] Optionally, the method further includes: In response to a single current sensor’s health status falling below a preset health status threshold, the right-angle axis current is obtained based on the sampling signals of the remaining two phase current sensors to maintain full-power operation. In response to the fact that the health status of two current sensors is lower than the preset health status threshold and only one phase current sensor is normal, the right-angle shaft current is obtained based on the sampling signal of the only remaining phase current sensor and the constraint that the sum of the three phase currents is zero, so as to maintain derating operation and limit the motor output power. When the health status of all three phase current sensors is lower than the preset health status threshold, a safety shutdown protection is triggered. When the health status of each phase current sensor is greater than or equal to the preset health status threshold and the three-phase current imbalance exceeds the preset imbalance threshold, a motor body fault alarm signal is generated.
[0019] Optionally, limiting the motor output power includes: The motor output power is limited to a preset percentage below the rated power; wherein the preset percentage is determined based on the number of current sensors currently operating normally, and the preset percentage decreases as the number of current sensors operating normally decreases.
[0020] A second aspect of this application also provides a permanent magnet synchronous motor current detection device, comprising: The current conversion module is used to collect the current sampling signals of each phase of the motor output by the current sensors of each phase circuit, and convert them into corresponding groups of right-angle and right-axis currents based on the current sampling signals of each phase. The index acquisition module is used to acquire the current deviation index, inter-phase deviation index, and noise level index of each phase current sensor. The health calculation module is used to input three types of indicators into a preset exponential mapping function to calculate the health of the corresponding current sensor. The weighted fusion module is used to generate fusion weights based on the health status of each phase current sensor, and to use the fusion weights to weight and fuse each group of orthogonal axis currents to obtain the fused orthogonal axis current. The current reconstruction module is used to construct the current state equation based on the mathematical model of the permanent magnet synchronous motor, recursively solve the current state equation, and correct the recursive result according to the fused orthogonal axis current to reconstruct the current waveform.
[0021] A third aspect of this application also provides a permanent magnet synchronous motor drive system, including the aforementioned permanent magnet synchronous motor current detection device.
[0022] A fourth aspect of this application also provides an electronic device, including: At least one processor; Memory, used to store at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the above-described permanent magnet synchronous motor current detection method.
[0023] The fifth aspect of this application also provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, it implements the above-described method for detecting the current of a permanent magnet synchronous motor.
[0024] A sixth aspect of this application also provides a permanent magnet synchronous motor controller, comprising: Multiphase current sensors are arranged in each phase of the motor circuit; The sampling circuit is connected to the signal of the multiphase current sensor. A processor, signal-connected to the sampling circuit, is configured to perform the method described above.
[0025] After using the above technical solution, this application has the following beneficial effects compared with the prior art: The permanent magnet synchronous motor current detection method provided in this application can automatically reduce the weight of fault phase current in the fusion result based on the sensor's health status, effectively suppressing detection deviations introduced by minor sensor faults such as zero-point drift and gain deviation. Even when the sensor malfunctions, it can still output highly reliable current detection information, achieving seamless output switching under fault conditions without requiring shutdown intervention, ensuring the continuous and stable operation of the permanent magnet synchronous motor vector control system. Simultaneously, the reconstructed current waveform provides complete current data for the motor drive system, supporting not only high-precision calculations for motor closed-loop control but also providing ample data support for early fault identification and fault source diagnosis of current sensors and even the motor itself, enhancing the fault tolerance and early warning capabilities of the motor control system. Attached Figure Description
[0026] Figure 1 This is a flowchart of the permanent magnet synchronous motor current detection method in the embodiments of this application. Detailed Implementation
[0027] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0028] In the description of this application, the phrase "in one embodiment" does not necessarily refer to the same embodiment, although it may refer to the same embodiment. Similarly, the phrase "in some embodiments," as used herein, does not necessarily refer to the same embodiment when used multiple times, although it may refer to the same embodiment. As used herein, the term "or" is an inclusive "or" operator and is equivalent to the term "and / or," unless the context clearly specifies otherwise. The term "based on" is not exclusive and allows for reliance on additional factors not described, unless the context clearly specifies otherwise. The word "exemplary" herein means "serving as an example, instance, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior to or better than other embodiments. The scope of this application is limited only by the scope of the appended claims, and any examples set forth in this specification are not intended to be limiting, but merely to illustrate some of the many possible embodiments of the claimed application. The various embodiments provided in this application should not be construed as limiting the scope of protection of this application.
[0029] 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 one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0030] In this application, unless otherwise expressly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0031] This application relates to the field of permanent magnet synchronous motor (PMSM) control technology, specifically to a PMSM current detection method, a PMSM current detection device, a PMSM drive system, electronic equipment, a computer-readable storage medium, and a PMSM controller. The technical solution provided in this application can be applied to vector control systems for PMSMs, including but not limited to high-precision electromechanical servo systems, new energy vehicle drive systems, industrial robots, and air conditioning compressor control systems. In these application scenarios, PMSMs typically need to operate continuously for extended periods under complex operating conditions, placing high demands on the reliability, accuracy, and fault tolerance of current detection.
[0032] In related technologies, the current detection stage of vector control for permanent magnet synchronous motors has the following problems: First, the traditional scheme based on synchronous sampling of three-phase current sensors and outputting a single set of direct- and quadrature-axis currents after coordinate transformation relies on only one set of three-phase current sampling values. If any one phase current sensor fails, the entire current detection system cannot work properly, resulting in poor system reliability. Second, the scheme of obtaining multiple current sampling values through multi-phase independent sampling and fusing them through median filtering or simple voting achieves redundant detection to a certain extent, but this method cannot effectively identify slight zero-point drift and gain deviations of the sensors. When multiple sensors experience slight faults simultaneously, the fusion result still has a large error. Third, the direct detection method only samples at the direct and quadrature-axis positions, obtaining only six sampling points per electrical cycle. The equivalent sampling rate is only six times the electrical frequency, which cannot obtain current information for the complete electrical cycle. It is difficult to capture harmonic components and waveform distortion characteristics in the current, thus hindering motor condition monitoring, harmonic analysis, and early fault diagnosis, thereby affecting the overall performance of the motor control system.
[0033] In view of the above problems, this application proposes a current detection scheme for permanent magnet synchronous motors based on sensor health assessment and weighted fusion, and further combined with the motor mathematical model for full-cycle current reconstruction. In other words, this application constructs a three-dimensional index system of current deviation index, inter-phase deviation index, and noise level index, calculates the health of each phase current sensor using a preset exponential mapping function, and dynamically weights and fuses the orthogonal axis currents obtained independently from multi-phase detection based on the real-time health, automatically suppressing the influence of faulty sensors and isolating serious faults; furthermore, using the fused orthogonal axis current as a benchmark, a current state equation is constructed based on the dq axis voltage equation of the permanent magnet synchronous motor, and a preset numerical integration algorithm is used for recursive solution, with sampling correction at the rotor position trigger point, thereby reconstructing a high-resolution current waveform within a complete electric cycle, taking into account both the fault-tolerant reliability of current detection and the integrity of current waveform data.
[0034] It should be understood that in this application, "motor phase current sampling signal" can refer to the digital current value obtained after sampling, holding and analog-to-digital conversion of the analog current signal output by the phase current sensor, or it can be the digital current signal directly output by the current sensor, without limitation.
[0035] In this application, "direct-axis and quadrature-axis current" refers to the collective term for direct-axis current and quadrature-axis current, that is, the current components in the rotating dq coordinate system, where the direct-axis current corresponds to the excitation component of the motor and the quadrature-axis current corresponds to the torque component of the motor.
[0036] It should be understood that in this application, "current sampling channel" can refer to an independent signal processing path from sampling by a single-phase current sensor to outputting a set of orthogonal axis current values. This path may include physical and logical processing steps such as signal conditioning, analog-to-digital conversion, and coordinate transformation.
[0037] It should be understood that in this application, "health" can refer to a quantitative indicator that characterizes the current health status of the current sensor. Its value is between 0 and 1. A health value of 1 indicates that the sensor is completely healthy, and a health value of 0 indicates that the sensor is completely faulty. The closer the health value is to 0, the more serious the fault of the sensor.
[0038] It should be understood that in this application, "current deviation index" can refer to the absolute deviation between the current sample value of the current phase in the current sampling period and the average value of the current sample value of the current phase in the past preset number of sampling periods. It is used to reflect the gradual fault characteristics of the sensor, such as zero drift and gain deviation. Such faults will cause the sample value to deviate from the normal historical value for a long time.
[0039] It should be understood that in this application, "phase-to-phase deviation index" can refer to the absolute deviation between the current sample value of the current phase in the current sampling period and the average value of the current sample values of the other two phases, used to reflect the consistency of the sensor with other phase sensors. For a three-phase permanent magnet synchronous motor, the three-phase currents satisfy the constraint that the sum of the three-phase currents is zero. Under normal circumstances, the three-phase currents have a high degree of consistency. When a current sensor of a certain phase fails, its sample value will deviate significantly from the sample values of the other two phases.
[0040] It should be understood that in this application, the "noise level index" can refer to the standard deviation of the phase current sampling value within a preset number of sampling periods in the past, which is used to reflect the noise level and early failure trend of the sensor. The noise level of the sensor will increase with the increase of the running time, and the noise level will rise sharply when the sensor is about to fail.
[0041] It should be understood that in this application, the "preset exponential mapping function" can refer to an exponential decay function that maps the comprehensive deviation index to the health interval of [0, 1]. This function has the characteristics that the health decreases slowly when the deviation is small and the health approaches zero quickly when the deviation is large, which can effectively distinguish between the normal state and the fault state of the sensor.
[0042] It should be understood that in this application, the "exponential decay function" is a specific form of a predefined exponential mapping function.
[0043] It should be understood that in this application, "fusion weight" can refer to the weight of the orthogonal axis current of each phase current sensor in the weighted fusion output. The higher the fusion weight, the higher the reliability and the greater the contribution of the current sampling value of the corresponding sensor in the fusion result.
[0044] It should be understood that in this application, "fused orthogonal axis current" may refer to the orthogonal axis current obtained by weighted fusion based on the orthogonal axis current of each phase and the fusion weight of each phase.
[0045] It should be understood that in this application, "current state equation" can refer to a differential equation derived from the dq-axis voltage equation of a permanent magnet synchronous motor, with direct-axis current and quadrature-axis current as state variables. "Recursive solution" can refer to the process of progressively solving for the state at the next time step by step from the initial state using a preset numerical integration algorithm. "Correction" can refer to the process of correcting the reconstructed current value obtained by recursive solution using the actual sampled current value at a preset sampling correction time.
[0046] like Figure 1 As shown in the embodiments of this application, the method for detecting the current of a permanent magnet synchronous motor includes the following steps: S110 collects the current sampling signals of each phase of the motor from the current sensors of each phase circuit, and converts them into corresponding groups of right-angle shaft currents based on the current sampling signals of each phase.
[0047] S120 acquires the current deviation index, inter-phase deviation index, and noise level index of each phase current sensor.
[0048] S130: Input the three types of indicators into the preset exponential mapping function to calculate the health status of the corresponding current sensor.
[0049] S140: Generate fusion weights based on the health status of each phase current sensor, and use the fusion weights to perform weighted fusion of each group of orthogonal axis currents to obtain the fused orthogonal axis current.
[0050] S150 constructs a current state equation based on the mathematical model of a permanent magnet synchronous motor, recursively solves the current state equation, and corrects the recursive result based on the fused orthogonal axis current to reconstruct the current waveform.
[0051] The permanent magnet synchronous motor current detection method provided in this application can automatically reduce the weight of fault phase current in the fusion result based on the sensor's health status, effectively suppressing detection deviations introduced by minor sensor faults such as zero-point drift and gain deviation. Even when the sensor malfunctions, it can still output highly reliable current detection information, achieving seamless output switching under fault conditions without requiring shutdown intervention, ensuring the continuous and stable operation of the permanent magnet synchronous motor vector control system. Simultaneously, the reconstructed current waveform can provide complete current data for the motor drive system, supporting not only high-precision calculations for motor closed-loop control but also providing sufficient data support for early fault identification and fault source diagnosis of current sensors and even the motor itself, improving the fault tolerance and maintenance early warning capabilities of the motor control system.
[0052] In one implementation, S110 involves converting the sampled signals of each phase current to obtain the corresponding sets of orthogonal axis currents, including S111, establishing a current sampling channel; S112, generating a three-phase current dataset; and S113, performing coordinate transformation to obtain the orthogonal axis currents. The document also includes three sub-steps: S111, S112, S113, S114, S115, S116, S117, S118, S119, S110 ...
[0053] S111: The current sampling signal of each phase current sensor is used as an independent current sampling channel. Specifically, for the A-phase current sensor, B-phase current sensor, and C-phase current sensor, there are corresponding A-phase current sampling channels, B-phase current sampling channels, and C-phase current sampling channels, forming three independent current sampling channels. Each channel physically includes its own independent current sensor, signal conditioning circuit, and analog-to-digital converter, forming a three-phase redundant sampling architecture.
[0054] S112, for each current sampling channel, based on the single-phase current value of that current sampling channel, and combined with the sampling information of other current sampling channels and the constraint that the sum of the three-phase currents is zero, a three-phase current dataset corresponding to that current sampling channel is obtained. Specifically, for the A-phase current sampling channel, the A-phase current value i is sampled. a According to the constraint that the sum of the three-phase currents is zero, i a +i b +i c =0, and combined with the historical sampling values of the B-phase and C-phase current sampling channels or the estimated values of the B-phase and C-phase currents for the current cycle calculated based on the motor electrical angle and motor parameters, the B-phase current value i can be calculated. b and C-phase current value i c Thus, the three-phase current dataset (i) corresponding to the A-phase current sampling channel is obtained. a i b i c ).
[0055] Similarly, for the B-phase current sampling channel, the sampled B-phase current value i is obtained. b By combining the constraints and utilizing the sampling information or estimated values from the A-phase and C-phase current sampling channels, the A-phase current value ia and the C-phase current value ic are calculated, resulting in a three-phase current dataset (i a i b i c For the C-phase current sampling channel, a similar method is used to obtain the three-phase current dataset. In one specific implementation, the inverse transformation relationship of coordinate transformation can be used, combined with the motor rotor electrical angle and motor parameters, to deduce the estimated values of the currents of the other two phases from the single-phase sampled current values, thereby uniquely determining the three-phase current dataset.
[0056] S113, the three-phase current dataset is sequentially transformed using coordinate transformations to obtain a set of orthogonal axis current values corresponding to each current sampling channel. Specifically, the three-phase current dataset is first converted to current components in the α-β two-phase stationary coordinate system using a Clarke transformation, and then converted to direct-axis and quadrature-axis currents in the dq rotating coordinate system using a Park transformation combined with the rotor electrical angle. Through this method, multiple sets of orthogonal axis current values are obtained for each phase current sampling channel. Specifically, each of the three phase current sampling channels obtains three sets of orthogonal axis current values: the A-phase current sampling channel corresponds to the first set of orthogonal axis currents, the B-phase current sampling channel corresponds to the second set, and the C-phase current sampling channel corresponds to the third set. These three sets of orthogonal axis currents are redundant, providing a multi-source data foundation for subsequent health assessment and weighted fusion.
[0057] In the technical solution of the above embodiment, through five core steps from S110 to S150, multiple sets of orthogonal axis currents are first obtained using multi-phase redundant current sampling channels. Then, the health of each phase current sensor is evaluated in real time based on three-dimensional indicators. Next, the multiple sets of orthogonal axis currents are dynamically weighted and fused according to the health status. Finally, the full-cycle current waveform is reconstructed through numerical integration recursion and sampling correction using the motor mathematical model. Compared with the traditional single-sensor group solution, this solution can improve the fault tolerance of current detection by utilizing multi-channel redundant information. Compared with the existing median filtering fusion solution, this solution can identify minor sensor faults and achieve smooth weight reduction, effectively suppressing the influence of faulty sensors on the detection results.
[0058] The following details the specific methods for obtaining the three types of indicators in S120. Obtaining the current deviation indicator, phase-to-phase deviation indicator, and noise level indicator for the corresponding current sensor includes: S121, obtain the absolute deviation between the current sample value of this phase in the current sampling period and the average value of the current sample value of this phase in the past preset number of sampling periods, and use it as the current deviation index. Specifically, Historical Deviation Indicators It can be calculated using the following formula: ,in, This represents the sampled value of the k-th phase current sensor in the current sampling period. This represents the average value of the sampled values of the k-th phase current sensor over the past M sampling periods, where M is the first preset number.
[0059] In a preferred embodiment, M is set to 100, corresponding to a 10ms time window, and the sampling period is consistent with the current control period, typically 100μs. Zero-point drift and gain deviation of the current sensor are gradual faults that can cause the sampled values to deviate from the normal values for a long period of time. Historical deviation indicators can effectively capture this gradual trend.
[0060] S122: Obtain the absolute deviation between the sampled current value of this phase and the average value of the sampled current values of the other two phases in the current sampling period, as the inter-phase deviation index. Specifically, this is the multi-phase consistency index. It can be calculated using the following formula: ,in, This represents the sampled value of the k-th phase current sensor in the current sampling period. and These represent the sampled values of the other two phase current sensors in the current sampling period.
[0061] For a three-phase permanent magnet synchronous motor, i a +i b +i c =0, meaning the true current of any phase can be uniquely estimated from the other two phases. Under normal operating conditions, the sampled value of the k-th phase should closely match the estimated values of the other two phases. When a sensor in a certain phase fails, the sampled value of that phase will deviate from the estimated value; therefore, this indicator directly reflects an anomaly in the consistency of the sampling channel.
[0062] S123, obtain the standard deviation of the phase current sampling values over a preset number of sampling periods, and use it as a noise level indicator. Specifically, the noise level indicator... It can be calculated using the following formula: Where M is the second preset quantity, This indicates that the k-th phase current sensor has been in the past... Sampled values for each sampling period ( (This is a loop variable, with a value range of 1-M). This is the total number of sampling periods contained in the sliding window (i.e., the second preset number). This represents the average value of the k-th phase sampled over the past M sampling periods. The noise level of the sensor increases with usage time; when the sensor is about to fail, the noise level rises sharply. Therefore, the noise level indicator can serve as an early warning signal for sensor failure. In one optional implementation, the first preset quantity and the second preset quantity can be the same or different; this application does not limit this.
[0063] The three types of indicators described above characterize the health status of the sensor from three dimensions: longitudinal time, horizontal space, and degree of fluctuation. Each indicator has independent physical meaning and different fault response sequences: slow drift faults are characterized by a deterioration in historical deviation first, followed by a deterioration in interphase deviation; sudden gain faults are characterized by a deterioration in interphase deviation first, followed by a gradual deterioration in historical deviation over time; and when the sensor is about to fail, the noise level first rises sharply, followed by changes in other indicators. Through comprehensive evaluation using these three dimensions of indicators, it is possible to achieve comprehensive coverage and accurate identification of various types of sensor faults.
[0064] It should be noted that the three sub-steps S121, S122, and S123 mentioned above are parallel. In actual execution, one or more sub-steps can be selected to be executed according to the sensor fault type and application requirements, or all of them can be executed and used in combination to balance computing resources and fault detection sensitivity.
[0065] Furthermore, in S130 above, the three types of indicators are input into a preset exponential mapping function to calculate the health status of the corresponding current sensor, including the following sub-steps.
[0066] S131, based on preset weighting coefficients, the current deviation index, the inter-phase deviation index, and the noise level index are weighted and summed to obtain the comprehensive deviation index.
[0067] In a preferred embodiment, the current deviation index, the inter-phase deviation index, and the noise level index are squared respectively to obtain the corresponding first squared term, second squared term, and third squared term. The first squared term, second squared term, and third squared term are then weighted and summed based on preset weighting coefficients to obtain the comprehensive deviation index. The sum of the preset weighting coefficients is 1. Using the squared term form essentially applies a Gaussian penalty to the deviation, which conforms to the normal distribution characteristics of sensor errors. This corresponds to the physical statistical law that the larger the deviation, the exponentially lower the probability of it being a normal error.
[0068] S132, the comprehensive deviation index is input into the exponential decay function to calculate the health status of the corresponding current sensor. This exponential decay function is a specific implementation of the aforementioned exponential decay function.
[0069] In one alternative embodiment, the exponential decay function takes the following form: ; in, The health status of the k-th phase current sensor; This refers to the historical deviation index of the k-th phase current sensor; The interphase consistency index of the k-th phase current sensor; The noise level index of the k-th phase current sensor; Let α be the rated current of the motor; β be the first weighting coefficient, corresponding to the historical deviation index; β be the second weighting coefficient, corresponding to the multi-phase consistency index; and γ be the third weighting coefficient, corresponding to the noise level index. α, β, and γ satisfy α + β + γ = 1.
[0070] Furthermore, considering that the phase-to-phase deviation index most directly reflects the sensor's fault status, and that the current deviation index reflects the sensor's long-term drift trend, while the noise level index is significantly affected by external interference, the second weighting coefficient β is preferably greater than the first weighting coefficient α and the third weighting coefficient γ. This weighting configuration can prevent significant fluctuations in secondary indicators such as noise level interference from causing a sharp drop in health, while ensuring a rapid response to sudden sensor deviation faults. In one specific embodiment, the first weighting coefficient α is set to 0.4, the second weighting coefficient β to 0.5, and the third weighting coefficient γ to 0.1; these values are optimal values determined through extensive experimental statistics.
[0071] The aforementioned health assessment method quantifies the sensor's health status as a continuous value within the range [0, 1], achieving an exponential degradation characteristic of slow descent with small deviations and rapid descent with large deviations: minor fluctuations under normal operating conditions have almost no impact on health; after a fault occurs, the larger the deviation, the faster the health decays; when the deviation exceeds a certain range, the health approaches zero, thus physically achieving automatic isolation of faulty sensors. Compared to linear weighting, exponential health will not be misjudged due to noise interference under small deviations, nor will it fail to quickly isolate serious faults due to slow descent under large deviations; compared to pure threshold methods, exponential health is a continuous range value, which can accurately quantify the degree of sensor health degradation, supports dynamic weighting adjustment, and achieves a seamless transition from faults.
[0072] Specifically, in the linear weighting method, small deviations are easily affected by noise disturbances, causing drastic changes in health status. With large deviations, the rate of health status decline is constant, failing to rapidly decay to near zero in the event of severe faults, which is detrimental to fault isolation. In the pure threshold method, health status exhibits discontinuous jump characteristics, failing to reflect the gradual degradation process of the sensor. The contamination of the fusion result by faulty sensors cannot be smoothly suppressed near the threshold critical point. In contrast, exponential health status can avoid both of these defects simultaneously.
[0073] Through the technical solutions of the above embodiments, a three-dimensional index system of current deviation index, phase-to-phase deviation index and noise level index is constructed, and the health status is calculated by using an exponential mapping function. This realizes continuous quantitative evaluation of the health status of the current sensor, which can accurately identify minor faults and gradual faults of the sensor, and provides a reliable judgment basis for subsequent weighted fusion and graded fault tolerance.
[0074] The following is a detailed explanation of the specific implementation method for generating fusion weights based on the health status of each phase current sensor in S140, including the following steps: S141, compare the health status of each phase current sensor with a preset health status threshold. This preset health status threshold can be scaled according to the motor's rated current and control accuracy requirements, or it can be adaptively adjusted according to operating conditions. Specifically, the threshold can be appropriately lowered under low-speed, light-load conditions to improve anti-interference capability, and appropriately increased under high-speed, heavy-load conditions to strengthen fault protection. In a typical embodiment, the preset health status threshold is set to 0.3. This value is an optimal value determined through extensive experimental statistics, and in practical applications, it can be flexibly set according to specific needs without limitation.
[0075] S142, in response to a phase current sensor's health level falling below a preset health level threshold, the fusion weight of that phase current sensor is reset to zero. In a preferred embodiment, in response to a phase current sensor's health level changing from not lower than a preset health level threshold to lower than a preset health level threshold, the fusion weight of that phase current sensor is gradually reduced from its current health level value to zero within a preset transition period according to a preset gradient curve. A typical preset transition period is 20 control cycles, corresponding to 2ms (sampling period is 0.1ms). This gradual transition mechanism avoids the current output jump caused by immediate isolation of a faulty sensor, achieving seamless switching during fault isolation. Optionally, the preset gradient curve can be an exponential decay curve or a linear decrease curve; there is no limitation.
[0076] S143, in response to the health status of a certain phase current sensor recovering from below a preset health status threshold to above a preset health status threshold, according to a preset gradual change curve, the fusion weight of the phase current sensor is gradually increased from zero to the health status value calculated in the current cycle within a preset transition period. Through this gradual recovery mechanism, a step jump in current output can be avoided when the sensor fault is recovered, further improving the smoothness of system operation.
[0077] S144, in response to the health status of a certain phase current sensor not being lower than a preset health status threshold, the health status of that phase current sensor is determined as the corresponding fusion weight. Specifically, when the health status of a certain phase is not lower than the preset health status threshold, it indicates that the phase sensor is in a normal or slightly degraded state, and there is no need to set it to zero or perform special processing. The health status is directly used as the fusion weight of that phase current to participate in the weighted fusion calculation.
[0078] Furthermore, in the above S140, the weighted fusion of each group of orthogonal axis currents is used to obtain the fused orthogonal axis current. In one specific implementation, this includes: multiplying the orthogonal axis current of each phase by the corresponding health level to obtain the weighted orthogonal axis current of each phase; summing the weighted orthogonal axis currents of each phase; and dividing the summation result by the sum of the health levels of each phase to generate the fused orthogonal axis current.
[0079] Specifically, for phases A, B, and C, the combined direct-axis current is calculated using the following formula: , , in, and These are the fusion of direct-axis current and fusion of quadrature-axis current, respectively. , and The health status of the current sensors for phases A, B, and C are respectively. , and These are the direct-axis currents of the current sensors for phases A, B, and C, respectively. , and These are the quadrature-axis currents of the current sensors for phases A, B, and C, respectively.
[0080] Through the aforementioned weighted fusion mechanism, the system can utilize information from all normal sensors to improve detection accuracy and handle situations where multiple sensors have minor faults. It can dynamically adjust weights based on sensor health status, automatically reducing the impact of faulty sensors rather than simply eliminating them through binarization. Even if multiple sensors simultaneously experience minor faults, the weight of sensors with higher health naturally increases during fusion, while the weight of sensors with lower health naturally decreases, maintaining high accuracy in the fused output. Optionally, a first-order low-pass filter can be configured at the fused current output, with a cutoff frequency set to 5 to 10 times the current loop bandwidth. This does not affect the dynamic control performance and further suppresses minor fluctuations caused by weight switching.
[0081] Based on the aforementioned health assessment and weighted fusion, it should be noted that the health assessment process and the weighted fusion process can be implemented independently or in combination. The health assessment process itself can achieve continuous quantitative monitoring of the health status of the current sensor and can be protected as an independent claim; the weighted fusion process can also be independently applied in multi-sensor redundancy detection scenarios and can be protected as an independent claim for a health-based multi-source data fusion method. Separating the two into independent technical solutions facilitates flexible deployment in different application scenarios and also makes it easier to improve and optimize individual components.
[0082] The following details the specific implementation of the current state equation construction based on the mathematical model of the permanent magnet synchronous motor in S150, the recursive solution of the current state equation, and the correction of the recursive result based on the fused orthogonal axis current to reconstruct the current waveform.
[0083] S151, the current state equation is constructed based on the mathematical model of the permanent magnet synchronous motor. Specifically, the dq-axis voltage equation of the permanent magnet synchronous motor is used as the reconstructed model, and its state equation form can be expressed as:
[0084] in, , These are the d-axis stator voltage and the q-axis stator voltage, respectively, and R is the stator resistance. and These are the direct-axis current and the quadrature-axis current, respectively. , These are direct-axis inductors and quadrature-axis inductors, respectively. This is the first derivative of the direct-axis current with respect to time (the rate of change of the d-axis current). This is the first derivative of the quadrature-axis current with respect to time (the rate of change of the q-axis current). It is a permanent magnet flux chain. ω is the electric angular velocity.
[0085] The voltage equations are rearranged into state equations: .
[0086] Regarding the source of motor parameters, the default approach uses the rated motor parameters (stator resistance, right-angle shaft inductance, permanent magnet flux linkage) obtained offline, acquired through standard motor parameter identification methods such as no-load tests and stall tests. The solution also supports online parameter identification extension, updating parameters through online methods including but not limited to model reference adaptation and recursive least squares methods. Temperature rise primarily affects stator resistance and permanent magnet flux linkage; optional parameter temperature compensation is available: temperature is collected by a stator temperature sensor, and the resistance and flux linkage parameters are corrected using temperature compensation formulas to further improve reconstruction accuracy under high-temperature conditions.
[0087] Regarding the source of speed / position information, it can be obtained through rotor position sensors, including but not limited to photoelectric encoders, rotary transformers, and Hall sensors. In sensorless control scenarios, the speed and position estimates output by a sensorless observer (such as a sliding mode observer or an extended Kalman filter) can be used. If a sensorless observer is used, the position estimation error will cause deviations in the reconstructed coordinate transformation, but the impact is limited: under medium and high speed conditions, the position error of the sensorless observer is usually less than 1° electrical angle, and the impact on the reconstruction accuracy is less than 0.5%, which can be ignored; under low speed conditions, the observer error increases, but thanks to the periodic calibration of the sampling points, the error will not accumulate, and will only cause a small shift in the reconstructed waveform between two calibrations, and the overall error is still acceptable.
[0088] S152, using the fused orthogonal axis current as the initial value of the current state equation, a preset numerical integration algorithm is used to recursively solve the current state equation, generating the reconstructed orthogonal axis current. In a preferred embodiment, the preset numerical integration algorithm adopts the fourth-order Runge-Kutta method (RK4). RK4 is a high-precision numerical integration method with the advantages of high accuracy and good stability, suitable for numerical solutions of motor models. Specifically, it is known that... Current value at time , ,beg Current value at time , ,in Let be the integration step size. Let the dq-axis voltage during the current control cycle be... , The electric angular velocity is The slope remains constant within the integration step. The first, second, third, and fourth order slopes are calculated sequentially: First-order slope: ; .
[0089] Second-order slope: ; .
[0090] Third-order slope: ; .
[0091] Fourth-order slope: ; .
[0092] Then calculate the current value at the next moment: ; .
[0093] In the formula, k is the discrete integration step number, corresponding to the k-th integration time t. k T s The integral step size is equal to the controller control cycle, which is the time interval between two adjacent integral moments. d (k), i q (k) is t k The initial values of the d-axis and q-axis currents at time u (start of integration). d (k), u q (k) is t k The stator voltages along the d and q axes at time ω are calculated from the PWM duty cycle of the controller. e (k) is t k The electric angular velocity of the motor at any given moment. f d f q Let k be the d-axis and q-axis current change rate state function, with inputs being current, voltage, and rotational speed, and output being the first derivative of current with respect to time. d1 k q1 First-order slope: starting point of integration t k The rate of change of current along the d and q axes at point k. d2 k q2 Second-order slope: midpoint t k +T s The rate of change of current at / 2 is calculated after estimating the current using the first-order slope. d3 k q3 The third-order slope: midpoint t k +T s At / 2, the rate of change of current is calculated after correcting the estimated current with the second-order slope. d4 k q4 The fourth-order slope: endpoint t k +T s The rate of change of current is calculated by estimating the endpoint current using the third-order slope. d (k+1),i q (k+1) is t k+1 The d-axis and q-axis reconstructed current values (integral results) at time t, the 1 / 6 and 2 / 6 coefficients, and the RK4 standard weighted coefficients are obtained through Taylor expansion matching to ensure fourth-order numerical accuracy.
[0094] The integration step size is consistent with the controller's sampling period, typically 100μs. Each control cycle executes an RK4 integral recursion, progressing from the current state to the next, thus continuously outputting the reconstructed right-angle axis current value at any given time. This continuous recursion mode, rather than re-integrating the entire electrical cycle each cycle, reduces computational complexity and improves real-time performance. At motor startup, the fused right-angle axis current obtained from the initial sampling is used as the initial integration value. Each control cycle, based on the current voltage, speed, and current values, an RK4 integration is performed to obtain the reconstructed current for the next time step. When the motor reaches the sampling point, the reconstructed value is corrected using the actual sampled fused current; the corrected current is then used as the initial value for the next integration step, continuing the recursion. This method results in low computational complexity, high real-time performance, and continuous output of the reconstructed current value at any given time.
[0095] At a preset sampling correction time, the reconstructed right- and right-axis currents are corrected based on the fused right- and right-axis currents. The preset sampling correction time is the rotor position trigger point when the rotor's direct axis or quadrature axis is aligned with the axis of any stator phase winding. In a typical direct current sensing architecture, there are six sampling correction points within a complete electrical cycle, corresponding to the positions where the positive and negative q-axis (or positive and negative d-axis) of each of the three-phase windings are aligned with the rotor's direct or quadrature axis. Each phase winding corresponds to two sampling positions (d-axis alignment and q-axis alignment), for a total of six sampling positions across the three phases. Specifically, the rotor position electrical angles corresponding to the six sampling correction points are 0°, 60°, 120°, 180°, 240°, and 300°, respectively. When the rotor d-axis is aligned with the axis of the A-phase winding, it corresponds to 0°; when the rotor q-axis is aligned with the axis of the A-phase winding, it corresponds to 60°; and so on. When the rotor d-axis is aligned with the axis of the B-phase winding, it corresponds to 120°; when the rotor q-axis is aligned with the axis of the B-phase winding, it corresponds to 180°; when the rotor d-axis is aligned with the axis of the C-phase winding, it corresponds to 240°; and when the rotor q-axis is aligned with the axis of the C-phase winding, it corresponds to 300°.
[0096] The above six sampling correction points are distributed at equal electrical angle intervals, and the correction frequency is six times the electrical frequency. Taking a two-pole motor with a rated speed of 1500 rpm as an example, the electrical frequency is 50 Hz, and the correction frequency reaches 300 Hz. The correction is performed once every 3.3 ms. The integral error only accumulates between two corrections and will be reset before it reaches a significant level.
[0097] Since the correction frequency is six times the electrical frequency, when the motor operating frequency is low, the time interval between two corrections is relatively long, and the accumulation of integral error is relatively significant. To suppress this error accumulation, the following error suppression mechanism can be adopted in the case of parameter drift: between two sampling corrections, the deviation between the fused right-angle axis current and the reconstructed right-angle axis current is monitored in real time. When the deviation exceeds a preset deviation threshold, a correction operation is immediately inserted at the current position to replace the reconstructed right-angle axis current with the fused right-angle axis current, thereby limiting the integral error to within the preset deviation threshold.
[0098] In one specific implementation, optimization can also be made for single-resistor sampling scenarios. When the single-resistor sampling window cannot cover all six rotor position trigger points, the missing sampling points are filled by the recursive result of the current state equation between adjacent sampleable correction points, and the correction operation is performed at the sampleable correction points to maintain the reconstruction accuracy.
[0099] In a preferred embodiment, S153 specifically includes: acquiring the fused orthogonal axis current corresponding to a preset sampling correction time; and performing weighted correction on the reconstructed orthogonal axis current using the fused orthogonal axis current based on a preset correction coefficient, wherein the weight of the fused orthogonal axis current is greater than the weight of the reconstructed orthogonal axis current in the weighted correction. Specifically, the corrected reconstructed orthogonal axis current is calculated according to the following formula: , .in, A preset correction coefficient is used to assign a higher weight to the fused orthogonal axis current than to the orthogonal axis reconstruction current. In a preferred embodiment, the preset correction coefficient is between 0.5 and 1, and preferably, the fused orthogonal axis current is given a higher weight. Since the fused orthogonal axis current is the optimal estimate closest to the true value, it has the strongest fault tolerance and the highest reliability. Using the fused orthogonal axis current as the correction benchmark ensures that the correction process remains accurate and effective even in the event of partial sensor failure.
[0100] In the formula, k is the kth sampling correction time (i.e., the sequence number of the shaft alignment sampling point triggered by the rotor position). , These are the corrected d-axis and q-axis current values, which will serve as the new initial values for subsequent RK4 integral recursion. , The actual sampled d-axis and q-axis current values obtained by weighted fusion of health status at this correction time. , For this correction time, the reconstructed d-axis and q-axis current values are obtained by recursion from the RK4 integral.
[0101] Furthermore, after reconstructing the current waveform of the complete electrical cycle, the method of this application also includes: S154: Reconstruct the current based on the orthogonal axis corresponding to the current waveform of the complete electrical cycle, and generate three-phase currents through inverse coordinate transformation. Specifically, the reconstructed dq-axis current is converted into αβ-axis current through Park inverse transformation, and then the αβ-axis current is converted into three-phase current through Clarke inverse transformation.
[0102] The conversion formula is as follows: ; .
[0103] In the formula, and Let i be the α-axis and β-axis currents in the α-β stationary coordinate system. d and i q For the reconstructed dq rotating coordinate system, the right and quadrature axis currents are given. a i b and i c The final reconstructed three-phase stator currents A, B, and C are given.
[0104] The reconstructed full-cycle dq current and three-phase current are primarily used as input data for upper-level status monitoring and fault diagnosis modules, supporting the development and operation of diagnostic algorithms for inter-turn short circuits, permanent magnet demagnetization, and bearing faults. The data interface is a real-time data buffer in the embedded system memory, which can be directly accessed by the on-chip diagnostic module via DMA or internal bus, or output externally via CAN, serial port, Ethernet, and other communication interfaces for offline analysis and status display by the host computer. In an optional extended application, under highly dynamic operating conditions, the reconstructed current can also be used as an auxiliary observation value for the current loop, complementing the sampled and fused current to improve the smoothness and speed of control.
[0105] In the aforementioned current reconstruction process, if rotor position information provided by a sensorless observer is used, the observer's position error will affect the reconstruction accuracy. In the medium-to-high speed operating range, the position estimation error of the sensorless observer is typically less than 1 electrical angle. This level of position error results in a small current reconstruction error, meeting the accuracy requirements for condition monitoring and fault diagnosis. In the low-speed operating range, the observer error may increase relatively, but through a sampling correction mechanism, the reconstructed value is corrected each correction cycle by fusing the right-angle axis current. The integral drift caused by the position error will not accumulate continuously, thus maintaining the reconstruction accuracy within a controllable range. Furthermore, under sudden load changes, rapid current changes may cause a temporary increase in the current deviation index. To avoid misjudging historical deviations, a multi-index cross-validation mechanism can be used: when a certain previous deviation index increases but the inter-phase deviation index and noise level index are normal, it is judged as a transient condition rather than a sensor fault, and the health status only decreases slightly, without affecting the weight contribution of that phase in the fusion. Simultaneously, the historical window length can be set to cover the duration of typical dynamic processes to smooth the impact of transient fluctuations on historical averages.
[0106] In some embodiments of this application, the above method may further include a hierarchical fault-tolerance strategy S160, specifically including the following multiple response paths.
[0107] S161, in response to a single current sensor's health level falling below a preset health threshold, obtains the right-angle axis current based on the sampling signals of the remaining two-phase current sensors to maintain full-power operation. Since the two-phase current sensors are functioning normally, the three-phase current can be completely solved by combining the constraint that the sum of the three-phase currents is zero, and the system's full-power operation capability remains unaffected.
[0108] S162, in response to the condition that the health status of two current sensors is lower than a preset health status threshold and only one phase current sensor remains normal, the right-angle axis current is obtained based on the sampling signal of the remaining phase current sensor and the constraint that the sum of the three-phase currents is zero, in order to maintain derating operation and limit the motor output power. In one embodiment, the motor output power is limited to a preset percentage below the rated power, wherein the preset percentage is determined based on the number of currently normal current sensors, and the preset percentage decreases as the number of normal current sensors decreases. Specifically, when only one phase sensor remains normal, the output power is limited to 30% of the rated power to ensure that the equipment can be safely shut down or return at low speed, avoiding direct system shutdown.
[0109] S163, in response to the fact that the health status of all three phase current sensors is lower than the preset health status threshold, triggers the safety shutdown protection.
[0110] S164, in response to the fact that the health status of each phase current sensor is greater than or equal to the preset health status threshold and the three-phase current imbalance exceeds the preset imbalance threshold, generates a motor body fault alarm signal.
[0111] This mechanism utilizes cross-validation between sensor health status and current imbalance to effectively distinguish between current imbalance caused by sensor faults and current imbalance caused by motor body faults. Sensor faults are characterized by abnormal sampling values in only the faulty phase while the other two phases are normal, with a significant deterioration in inter-phase deviation indicators and a rapid decline in the health of the faulty phase, while the health of the normal phases remains unchanged. Motor body faults are characterized by an imbalance in the three-phase currents themselves, but all phase sensors are healthy and accurate. The current waveforms reflected by the three-phase current sampling values are unbalanced, but no additional deviation is introduced into the sampling channels of each phase, the inter-phase deviation indicators remain good, and the health of each phase sensor does not decline. Therefore, when the health of all three phase sensors is normal but the three-phase current imbalance exceeds a preset imbalance threshold, it can be determined as a motor body fault, and a motor body fault alarm signal can be output.
[0112] In an improved embodiment, this application may further include a user prompt and interaction process. Specifically, in response to the generation of a motor body fault alarm signal or any current sensor health level falling below a preset health level threshold, a voice prompt message is played through a speaker, and / or the fault type, fault phase, health level value, and suggested handling measures are displayed on a display screen, and / or an alarm message is sent to an external host computer or cloud monitoring platform through a communication interface. The voice prompt message includes, but is not limited to, prompts such as "Sensor fault, please check" and "Motor body fault, please stop for maintenance"; the display screen can display real-time health level histograms of each phase current sensor, three-phase current imbalance values and trend curves, fault occurrence time, fault type, and other information.
[0113] In a further implementation, when the health level of a single current sensor is detected to be lower than a preset health level threshold, the system queries the user via a human-machine interface whether to switch to a derating operation mode and receives a confirmation or cancellation command from the user. In response to the user's confirmation command, the system switches to the corresponding derating operation mode in the next control cycle. In response to the user's cancellation command, the system maintains the current operation mode and continues to monitor the sensor health level. Optionally, a preset safety waiting time is established before triggering the safety shutdown protection. During this waiting time, a countdown prompt is output via the human-machine interface, and the system receives a stop shutdown command or continue shutdown command from the user, thereby providing the user with necessary opportunities for manual intervention while ensuring safety.
[0114] In a preferred embodiment, before triggering the safety shutdown protection in step S163, the process further includes: outputting a shutdown countdown prompt through a human-machine interface and receiving a user-input command to cancel the shutdown operation; if no command to cancel the shutdown operation is received within a preset time threshold, then the safety shutdown protection is executed. This interactive process allows the user to make flexible decisions based on the actual working conditions while ensuring safety.
[0115] The technical solution of the above embodiments has the following beneficial effects: Through health threshold comparison and a gradual transition mechanism, seamless switching of fault sensor detection, isolation, and recovery processes is achieved, with no step jump in the fused output current. Specifically, during this seamless switching process, the peak jump of the fused output d / q axis current is less than 1% of the rated current, the torque ripple increment does not exceed 2% of the rated torque, and the peak speed fluctuation is less than 0.5% of the rated speed, effectively ensuring the smoothness of the switching process and control performance. Through weighted fusion, the information from all normal sensors can be fully utilized, effectively handling the situation of minor faults in multiple sensors. Through the recursive current state equation based on RK4 numerical integration and rotor position sampling point correction, a high-resolution full-cycle current waveform is reconstructed, increasing the equivalent sampling rate to the controller sampling frequency (above 10kHz), providing complete data support for motor condition monitoring and early fault diagnosis. Through a hierarchical fault-tolerance strategy, the system can continue to operate stably when some sensors fail, and safely shut down when all sensors fail.
[0116] In one implementation, when hardware resources are limited, some current sampling channels can be omitted, and only two-phase current sensors can be retained. In this case, the third-phase current can be deduced from the two-phase sampled currents by using the constraint that the sum of the three-phase currents is zero. In the above S110, the corresponding sets of orthogonal axis currents are obtained by converting the current sampling signals of each phase, and two sets of orthogonal axis currents can be obtained accordingly based on the two-phase sampled signals. The subsequent health assessment and weighted fusion process is performed on the two-phase current sensors, which can still achieve the basic fault-tolerant current detection function.
[0117] In this scheme, if one phase of the two-phase current sensor fails, operation can continue based on the sampling signal of the remaining phase current and the constraint that the sum of the three-phase currents is zero. Although full-power operation cannot be achieved, the system can still maintain short-term operation in derating mode until a safe shutdown is achieved. In another alternative embodiment, when hardware resources are further limited, only a single-phase current sensor can be retained, and the currents of the other two phases can be reconstructed using the motor mathematical model and current state equation to achieve basic current detection functionality, but the fault tolerance is correspondingly reduced. The above-described degraded implementation method is still within the scope of protection of this application.
[0118] In an alternative embodiment, in the above S110, the corresponding sets of orthogonal axis currents can also be obtained by directly triggering sampling through rotor position.
[0119] Specifically, when the rotor d-axis is aligned with the axis of the A-phase stator winding, the instantaneous phase current of phase A is numerically equal to the d-axis current; when the rotor q-axis is aligned with the axis of the A-phase stator winding, the absolute value of the instantaneous phase current of phase A is equal to the q-axis current, that is, the instantaneous phase current of phase A is equal to the negative q-axis current (ia = -iq). Considering the phase relationship, this should be expressed as the absolute value of the instantaneous phase current of phase A being equal to the q-axis current, or the instantaneous phase current of phase A being equal to the negative q-axis current. Utilizing this electromagnetic correspondence, without coordinate transformation, the corresponding set of right-angle axis current values can be directly obtained by sampling the phase currents. Those skilled in the art will understand that the technical solution of this application does not require limiting the specific implementation method of converting the sampling signals of each phase current to obtain each set of right-angle axis currents; any method that can obtain multiple sets of right-angle axis currents from the sampling signals of each phase current can be applied to this application.
[0120] It should be noted that the execution order of steps S110 to S150 in the above embodiments is merely exemplary. In actual implementation, the timing of health assessment, weighted fusion, and current reconstruction can be adjusted according to actual control requirements. Specifically, the health assessment in S120 to S130 can be performed immediately after obtaining the current sampling signals of each phase, and the current reconstruction in S151 to S153 is performed after obtaining the fused orthogonal axis currents. Since the weighted fusion in S140 depends on the health calculation result of S130, and the recursive solution and correction in S150 depend on the fusion result of S140, S150 cannot be executed in parallel with S120 to S130. In actual systems, S110, S120 to S130, S140, and S150 can be executed sequentially within the same control cycle, forming a pipeline-like processing flow. Each step is executed in sequence to ensure the correct data dependency relationship.
[0121] The above preferred embodiments use a three-phase permanent magnet synchronous motor as an example for illustration. However, the technical solution of this application is also applicable to multi-phase permanent magnet synchronous motors with two or more phases or three or more phases, as well as application scenarios in which current reconstruction is performed using the speed and position estimates output by the observer in a sensorless control scenario. Optionally, the rotor position information used in the health assessment process can be obtained through a photoelectric encoder, a rotary transformer, a Hall sensor, or it can come from a sensorless observer, without limitation.
[0122] This application also provides a permanent magnet synchronous motor current detection device. The permanent magnet synchronous motor current detection device includes a current conversion module, an index acquisition module, a health calculation module, a weighted fusion module, and a current reconstruction module, as well as the data flow between these modules. The device is used to implement the above method, specifically including: a current conversion module for acquiring the current sampling signals of each phase of the motor from the current sensors of each phase circuit, and converting each phase current sampling signal to obtain corresponding groups of right-angle axis currents; an index acquisition module for acquiring the current deviation index, inter-phase deviation index, and noise level index of each phase current sensor; a health calculation module for inputting the three types of indicators into a preset exponential mapping function to calculate the health of the corresponding current sensor; a weighted fusion module for generating fusion weights based on the health of each phase current sensor, using the fusion weights to weight and fuse each group of right-angle axis currents to obtain a fused right-angle axis current; and a current reconstruction module for constructing a current state equation based on the mathematical model of the permanent magnet synchronous motor, recursively solving the current state equation, and correcting the recursive result based on the fused right-angle axis current to reconstruct the current waveform.
[0123] In one feasible implementation, the current conversion module may include a phase A current sampling channel, a phase B current sampling channel, and a phase C current sampling channel. Each phase current sampling channel includes a current sensor, a signal conditioning circuit, and an analog-to-digital converter. The indicator acquisition module and the health calculation module can be implemented by a digital signal processor or a microcontroller program, or by a field-programmable gate array (FPGA). The weighted fusion module and the current reconstruction module can run on the same processor or be configured on different processors; there is no limitation on this.
[0124] This application also provides a permanent magnet synchronous motor drive system, including the aforementioned permanent magnet synchronous motor current detection device. This drive system can be applied to scenarios such as air conditioning compressor control systems, new energy vehicle drive systems, and industrial servo systems. Specifically, in an air conditioning compressor control system, the permanent magnet synchronous motor current detection device is integrated with the compressor motor, inverter, and controller, enabling real-time and highly reliable detection of the compressor motor current, effectively preventing abnormal compressor shutdown due to current sensor failure.
[0125] This application also provides an electronic device, including at least one processor and a memory, wherein the memory is used to store at least one program; when the at least one program is executed by the at least one processor, the at least one processor implements the permanent magnet synchronous motor current detection method described above. Optionally, the processor may be any one of a central processing unit, a digital signal processor, a microcontroller, or an application-specific integrated circuit, and the memory may be any one of random access memory, flash memory, or read-only memory, without limitation.
[0126] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the permanent magnet synchronous motor current detection method described above. Optionally, the computer-readable storage medium may be a read-only memory, random access memory, optical disc, magnetic tape, floppy disk, or flash memory, etc., and is not limited thereto.
[0127] This application also provides a permanent magnet synchronous motor controller, including a multiphase current sensor, a sampling circuit, and a processor. The multiphase current sensor is arranged in each phase of the motor circuit; the sampling circuit is signal-connected to the multiphase current sensor; the processor is signal-connected to the sampling circuit, and the processor is configured to execute the permanent magnet synchronous motor current detection method described above. Optionally, the multiphase current sensor can be a Hall effect current sensor, a magnetoresistive current sensor, or a current detection sensor based on sampling resistance, without limitation.
[0128] Compared with the prior art, the technical solution of this application has the following beneficial effects: 1. This application constructs a three-dimensional index system of current deviation index, phase-to-phase deviation index, and noise level index, and uses a preset exponential mapping function to calculate the health status, thereby realizing continuous quantitative evaluation of the health status of current sensors. It can accurately identify minor faults and gradual faults of sensors, and solves the problem that the existing multiphase current fusion mechanism has limited fault tolerance for minor faults of multiple sensors.
[0129] 2. This application generates fusion weights based on the health of each phase and performs weighted fusion on multiple sets of orthogonal axis currents. This can automatically reduce the weight of faulty sensors, isolate severely faulty sensors, and improve detection accuracy by utilizing information from all normal sensors. It achieves seamless switching between sensor fault detection and isolation processes, avoids current step jumps, and solves the problem that existing methods cannot guarantee the continuous and stable operation of the system when some sensors fail.
[0130] 3. This application constructs the current state equation based on the mathematical model of a permanent magnet synchronous motor, uses a preset numerical integration algorithm for recursive solution, and corrects the recursive result by using the fused orthogonal axis current at the rotor position trigger point, reconstructing the current waveform of the complete electric cycle, and increasing the equivalent sampling rate to the controller sampling frequency. This solves the problem that existing methods cannot obtain full-cycle current information, and provides rich full-cycle data support for early fault diagnosis such as inter-turn short circuits in motor stator windings, permanent magnet demagnetization, and bearing failures.
[0131] 4. This application adopts a graded fault-tolerant strategy to dynamically adjust the system operation mode according to the number of current sensors that are working normally, realizing a stepped fault-tolerant protection from full power operation, derating operation to safe shutdown, and maximizing the system's availability time in the event of sensor failure.
[0132] 5. By decoupling the health assessment and weighted fusion process into independent modules, and by making the fusion weight generation method independent of a specific health assessment algorithm, this application is compatible with other health assessment methods based on fuzzy evaluation, neural networks, Kalman filter residuals, etc., thus expanding the scope of application of this application.
[0133] In the above embodiments of this application, the descriptions of each embodiment have their own emphasis. Parts not described in detail in a certain embodiment can be referred to in the relevant descriptions of other embodiments. The steps illustrated in the related flowcharts can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown here. In other words, the order of steps described in the foregoing embodiments is merely an example. Reasonable adjustments to the order of steps based on the content of the embodiments of this application are also within the protection scope of the embodiments of this application.
[0134] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application. Furthermore, those skilled in the art can combine and integrate the different embodiments or examples described in this specification.
Claims
1. A method for detecting the current of a permanent magnet synchronous motor, characterized in that, include: The current sampling signals of each phase of the motor are collected from the current sensors of each phase circuit, and the corresponding groups of right-angle shaft currents are obtained based on the current sampling signals of each phase. For each phase current sensor, obtain the current deviation index, inter-phase deviation index, and noise level index of the corresponding current sensor. The three types of indicators are input into a preset exponential mapping function to calculate the health status of the corresponding current sensor. Based on the health status of each phase current sensor, a fusion weight is generated. The fusion weight is then used to weight and fuse each group of orthogonal axis currents to obtain the fused orthogonal axis current. A current state equation is constructed based on the mathematical model of a permanent magnet synchronous motor. The current state equation is solved recursively, and the recursive result is corrected according to the fused orthogonal axis current to reconstruct the current waveform.
2. The method for detecting the current of a permanent magnet synchronous motor according to claim 1, characterized in that, The process of converting the sampled signals of each phase current to obtain the corresponding sets of orthogonal axis currents includes: The current sampling signal of each phase current sensor is used as an independent current sampling channel. For each current sampling channel, based on the single-phase current value of the current sampling channel, and combined with the sampling information of other current sampling channels and the constraint that the sum of the three-phase currents is zero, a three-phase current dataset corresponding to the current sampling channel is obtained. The coordinate transformation is performed sequentially on the three-phase current dataset to obtain a set of orthogonal axis current values corresponding to the current sampling channel; Multiple sets of right-angle axis current values are obtained from the current sampling channels of each phase.
3. The method for detecting the current of a permanent magnet synchronous motor according to claim 1, characterized in that, The acquisition of the current deviation index, phase-to-phase deviation index, and noise level index of the corresponding current sensor includes: The absolute deviation between the current sampled value of the current phase in the current sampling period and the average value of the current sampled value of the current phase in the past preset number of sampling periods is obtained as the current deviation index. The absolute deviation between the current sample value of this phase and the average value of the current sample values of the other two phases in the current sampling period is obtained as the inter-phase deviation index. The standard deviation of the phase current sampling value within a preset number of sampling periods is obtained as the noise level indicator.
4. The method for detecting the current of a permanent magnet synchronous motor according to claim 1, characterized in that, The step of inputting three types of indicators into a preset exponential mapping function to calculate the health status of the corresponding current sensor includes: The current deviation index, the inter-phase deviation index, and the noise level index are weighted and summed based on preset weighting coefficients to obtain a comprehensive deviation index. The overall deviation index is input into the exponential decay function to calculate the health status of the corresponding current sensor.
5. The method for detecting the current of a permanent magnet synchronous motor according to claim 4, characterized in that, The comprehensive deviation index is obtained by weighting and summing the current deviation index, the inter-phase deviation index, and the noise level index based on preset weighting coefficients, including: The current deviation index, the phase deviation index, and the noise level index are squared respectively to obtain the corresponding first squared term, second squared term, and third squared term; The first squared term, the second squared term, and the third squared term are weighted and summed based on the preset weighting coefficients to obtain the comprehensive deviation index. The sum of the preset weighting coefficients is 1.
6. The method for detecting the current of a permanent magnet synchronous motor according to claim 5, characterized in that, The exponential decay function is: ; in, The health status of the k-th phase current sensor; This is the current deviation index of the k-th phase current sensor; The phase-to-phase deviation index of the k-th phase current sensor; The noise level index of the k-th phase current sensor; α is the rated current of the motor; β is the first weighting coefficient, corresponding to the current deviation index; β is the second weighting coefficient, corresponding to the phase-to-phase deviation index; and γ is the third weighting coefficient, corresponding to the noise level index.
7. The method for detecting the current of a permanent magnet synchronous motor according to claim 6, characterized in that, The second weighting coefficient is greater than the first weighting coefficient and the third weighting coefficient.
8. The method for detecting the current of a permanent magnet synchronous motor according to claim 1, characterized in that, The generation of fusion weights based on the health status of each phase current sensor includes: Compare the health status of each phase current sensor with the preset health status threshold; In response to a phase current sensor’s health status falling below the preset health status threshold, the fusion weight of that phase current sensor is reset to zero. In response to a phase current sensor’s health status not being lower than the preset health status threshold, the health status of that phase current sensor is determined as the corresponding fusion weight.
9. The method for detecting the current of a permanent magnet synchronous motor according to claim 8, characterized in that, The step of resetting the fusion weight of a phase current sensor to zero in response to a health level lower than the preset health level threshold includes: In response to a change in the health status of a phase current sensor from not lower than the preset health status threshold to lower than the preset health status threshold, the fusion weight of the phase current sensor is gradually reduced from the current health status value to zero within a preset transition period according to a preset gradient curve.
10. The method for detecting the current of a permanent magnet synchronous motor according to claim 8, characterized in that, The method further includes: In response to the health status of a certain phase current sensor recovering from below the preset health status threshold to not below the preset health status threshold, the fusion weight of the phase current sensor is gradually increased from zero to the health status value calculated in the current period within a preset transition period according to a preset gradient curve.
11. The method for detecting the current of a permanent magnet synchronous motor according to claim 1, characterized in that, A fusion weight is generated based on the health status of each phase current sensor. This fusion weight is then used to weight and fuse the currents in each group of orthogonal axes to obtain a fused orthogonal axis current, including: Multiply the current of each phase by the corresponding health level to obtain the weighted current of each phase. The weighted orthogonal axis currents of each phase are summed, and the summation result is divided by the sum of the health of each phase to generate the fused orthogonal axis current.
12. The method for detecting the current of a permanent magnet synchronous motor according to claim 1, characterized in that, The mathematical model based on the permanent magnet synchronous motor constructs a current state equation, recursively solves the current state equation, and corrects the recursive result based on the fused orthogonal axis current, including: The current state equation is constructed based on the mathematical model of the permanent magnet synchronous motor; Using the fused orthogonal axis current as the initial value of the current state equation, the current state equation is recursively solved using a preset numerical integration algorithm to generate the reconstructed orthogonal axis current. At a preset sampling correction time, the reconstructed orthogonal axis current is corrected based on the fused orthogonal axis current.
13. The method for detecting the current of a permanent magnet synchronous motor according to claim 12, characterized in that, The step of correcting the reconstructed orthogonal axis current based on the fused orthogonal axis current at a preset sampling correction time includes: Obtain the fused right-angle axis current corresponding to the preset sampling correction time; wherein, the preset sampling correction time is the rotor position trigger point when the rotor direct axis or rotor quadrature axis is aligned with the axis of any phase winding of the stator; Based on a preset correction coefficient, the reconstructed orthogonal axis current is weighted and corrected using the fused orthogonal axis current, wherein the weight of the fused orthogonal axis current is greater than the weight of the reconstructed orthogonal axis current in the weighted correction.
14. The method for detecting the current of a permanent magnet synchronous motor according to claim 1, characterized in that, After reconstructing the current waveform, the method further includes: Based on the reconstructed current of the orthogonal axis corresponding to the current waveform, three-phase currents are generated through inverse coordinate transformation. These three-phase currents serve as input data for the motor upper-level status monitoring and fault diagnosis system.
15. The method for detecting the current of a permanent magnet synchronous motor according to claim 1, characterized in that, The method further includes: In response to a single current sensor’s health status falling below a preset health status threshold, the right-angle axis current is obtained based on the sampling signals of the remaining two phase current sensors to maintain full-power operation. In response to the fact that the health status of two current sensors is lower than the preset health status threshold and only one phase current sensor is normal, the right-angle shaft current is obtained based on the sampling signal of the only remaining phase current sensor and the constraint that the sum of the three phase currents is zero, so as to maintain derating operation and limit the motor output power. When the health status of all three phase current sensors is lower than the preset health status threshold, a safety shutdown protection is triggered. When the health status of each phase current sensor is greater than or equal to the preset health status threshold and the three-phase current imbalance exceeds the preset imbalance threshold, a motor body fault alarm signal is generated.
16. The method for detecting the current of a permanent magnet synchronous motor according to claim 15, characterized in that, The limitation on motor output power includes: The motor output power is limited to a preset percentage below the rated power; wherein the preset percentage is determined based on the number of current sensors currently operating normally, and the preset percentage decreases as the number of current sensors operating normally decreases.
17. A current detection device for a permanent magnet synchronous motor, characterized in that, include: The current conversion module is used to collect the current sampling signals of each phase of the motor output by the current sensors of each phase circuit, and convert them into corresponding groups of right-angle and right-axis currents based on the current sampling signals of each phase. The index acquisition module is used to acquire the current deviation index, inter-phase deviation index, and noise level index of each phase current sensor. The health calculation module is used to input three types of indicators into a preset exponential mapping function to calculate the health of the corresponding current sensor. The weighted fusion module is used to generate fusion weights based on the health status of each phase current sensor, and to use the fusion weights to weight and fuse each group of orthogonal axis currents to obtain the fused orthogonal axis current. The current reconstruction module is used to construct the current state equation based on the mathematical model of the permanent magnet synchronous motor, recursively solve the current state equation, and correct the recursive result according to the fused orthogonal axis current to reconstruct the current waveform.
18. A permanent magnet synchronous motor drive system, characterized in that, Includes the permanent magnet synchronous motor current detection device as described in claim 17.
19. An electronic device, characterized in that, include: At least one processor; Memory, used to store at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the permanent magnet synchronous motor current detection method as described in any one of claims 1 to 16.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the permanent magnet synchronous motor current detection method as described in any one of claims 1 to 16.
21. A permanent magnet synchronous motor controller, characterized in that, include: Multiphase current sensors are arranged in each phase of the motor circuit; The sampling circuit is connected to the signal of the multiphase current sensor. A processor, signal-connected to the sampling circuit, is configured to perform the method as described in any one of claims 1 to 16.
