Method, device and equipment for detecting locked-rotor of permanent magnet synchronous motor and medium
By utilizing the time-domain fluctuation characteristics of current parameters in permanent magnet synchronous motors and employing a dual-window accumulation mechanism for stall detection, the problems of insufficient detection reliability and high cost are solved, achieving reliable stall protection, avoiding motor damage, and improving system safety and energy efficiency.
Patent Information
- Application Number
- CN202611166253.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-03
- Publication Date
- 2026-11-24
AI Technical Summary
Existing methods for detecting stall in permanent magnet synchronous motors are unreliable, costly, and difficult to reliably trigger stall protection, potentially leading to motor burnout due to excessive temperature rise.
By acquiring the current parameters of the permanent magnet synchronous motor, it is determined whether the current change meets the fluctuation condition within the preset event detection window, the stall event count value is accumulated, and the stall state is determined when the accumulated count reaches the preset number threshold within the preset protection judgment window. The stall judgment is made by utilizing the time-domain fluctuation characteristics of the current parameters, avoiding reliance on motor models or observers.
This technology improves the reliability and accuracy of stall detection without increasing hardware costs, reduces the risk of false positives and false negatives, avoids damage to the motor caused by stall, and enhances the safety and energy efficiency of the system.
Smart Images

Figure CN123156014A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of motor control technology, and in particular to a stall detection method for a permanent magnet synchronous motor, a stall detection device for a permanent magnet synchronous motor, an electronic device, and a computer-readable storage medium. Background Technology
[0002] Permanent magnet synchronous motors (PMSMs) are characterized by high efficiency, high power density, and excellent speed regulation performance, and are widely used in household appliances (such as energy-saving air conditioner compressors and high-efficiency fans), industrial drives, and new energy vehicles. In these applications, the motor may stall due to excessive load, mechanical jamming, or other reasons. When stalled, the motor rotor cannot rotate normally. If this is not detected and protected in time, it will lead to excessively high motor temperature or even burnout, affecting the safe operation of the entire system.
[0003] In related technologies, permanent magnet synchronous motors typically employ sensorless field-oriented control (FOC). This involves identifying the rotor position and speed to achieve closed-loop control of the motor. Based on this, related stall detection schemes usually utilize the identified speed or position information as a criterion to detect whether the motor is stalled. However, in these schemes, when the motor is stalled, the rotor does not rotate or rotates very slowly, resulting in a very small back electromotive force. This makes it difficult to accurately identify the rotor position and speed, leading to insufficient reliability of the stall detection based on this information, and potentially preventing reliable triggering of stall protection. Furthermore, to obtain reliable detection data at low speeds or in stalled conditions, additional hardware sampling circuits or more complex computational processing are required, increasing the overall cost and hardware size of the solution. Summary of the Invention
[0004] The present invention provides a method, apparatus, equipment, and medium for detecting stalled motors, in order to solve or partially solve the problems of insufficient detection reliability and high detection cost in the stalled motor detection process.
[0005] This invention discloses a stall detection method for a permanent magnet synchronous motor, comprising: Obtain the current parameters of the permanent magnet synchronous motor; If, within the preset event detection window, it is determined based on the current parameters that the current change of the permanent magnet synchronous motor meets the preset fluctuation conditions, then the stall event count value is incremented once. Within a preset protection judgment window, the process of repeatedly judging whether the current change of the permanent magnet synchronous motor meets the preset fluctuation conditions based on the current parameters is repeated. In response to the end time of the protection judgment window being reached at the current time, if the calculated value of the stall event reaches a preset number of thresholds, the permanent magnet synchronous motor is judged to be in a stall state. The duration of the event detection window is shorter than the duration of the protection determination window.
[0006] In some feasible implementations, the step of accumulating a stall event count value if, within a preset event detection window, the current change of the permanent magnet synchronous motor is determined based on the current parameters to meet a preset fluctuation condition includes: Obtain the amplitude fluctuation of the current parameter within the event detection window; If the amplitude fluctuation is less than the preset stall current judgment threshold, the stall event count value will not be accumulated, and the data of the current parameter recorded in the event detection window will be cleared. If the amplitude fluctuation is greater than the preset stall current judgment threshold, then the stall event count value is incremented by one.
[0007] In some feasible implementations, the current parameter is a three-phase current, and the acquisition of the amplitude fluctuation of the current parameter within the event detection window includes: The three-phase currents are converted to a synchronous rotating coordinate system to obtain the corresponding q-axis current values. Record the maximum and minimum values of the q-axis current within the event detection window; The difference between the maximum value and the minimum value is used as the amplitude fluctuation of the current parameter within the event detection window.
[0008] In some feasible implementations, the acquisition of the amplitude fluctuation of the current parameter within the event detection window includes: Obtain the instantaneous maximum and minimum values of the current parameter within the event detection window; Calculate the difference between the instantaneous maximum value and the instantaneous minimum value, and use the difference as the amplitude fluctuation.
[0009] In some feasible implementations, the acquisition of the amplitude fluctuation of the current parameter within the event detection window includes: Obtain the variance or standard deviation of the current parameter within the event detection window, and use the variance or standard deviation as the amplitude fluctuation.
[0010] In some feasible implementations, the acquisition of the amplitude fluctuation of the current parameter within the event detection window includes: The cumulative value of the difference between adjacent sampling points of the current parameter within the event detection window is obtained, and the cumulative value is used as the amplitude fluctuation.
[0011] In some feasible implementations, before incrementing the stall event count if the amplitude fluctuation exceeds a preset stall current threshold, the method further includes: Obtain the maximum current value and the stall current judgment coefficient threshold of the permanent magnet synchronous motor; The product of the maximum current value and the stall current judgment coefficient threshold is used as the stall current judgment threshold.
[0012] In some feasible implementations, after determining that the permanent magnet synchronous motor is in a stalled state, the method further includes: Output a stall protection signal for the permanent magnet synchronous motor; In response to the stall protection signal, the permanent magnet synchronous motor is controlled to perform a shutdown protection action.
[0013] In some feasible implementations, in response to the end time of the protection determination window being reached at the current time, the method further includes: If the calculated value of the stall event does not reach the preset number threshold, the stall event count value is reset, and the judgment is re-performed in the next protection judgment window.
[0014] Among some feasible implementation methods are: Within the protection determination window, each time the current change is determined to satisfy the preset fluctuation condition, the corresponding satisfaction time is recorded; If the stall event count reaches the preset number threshold at the end of the protection decision window, the stall severity level of the permanent magnet synchronous motor within the protection decision window is determined according to each of the specified satisfying times.
[0015] This invention also discloses a stall detection device for a permanent magnet synchronous motor, comprising: The current parameter acquisition module is used to acquire the current parameters of the permanent magnet synchronous motor. The event detection module is used to increment the stall event count value once if the current change of the permanent magnet synchronous motor meets the preset fluctuation condition based on the current parameters within the preset event detection window. The protection determination module is used to repeatedly determine whether the current change of the permanent magnet synchronous motor meets the preset fluctuation conditions based on the current parameters within a preset protection determination window. In response to the end time of the protection determination window being reached at the current time, if the stall event count value reaches a preset number threshold, the permanent magnet synchronous motor is determined to be in a stall state. The duration of the event detection window is shorter than the duration of the protection determination window.
[0016] In some feasible implementations, the event detection module includes: The amplitude fluctuation acquisition unit is used to acquire the amplitude fluctuation of the current parameter within the event detection window; The comparison and accumulation unit is used to, if the amplitude fluctuation is less than a preset stall current judgment threshold, not to accumulate the stall event count value and to clear the data of the current parameter recorded in the event detection window; if the amplitude fluctuation is greater than the preset stall current judgment threshold, then to accumulate the stall event count value once.
[0017] In some feasible implementations, the current parameter is a three-phase phase current, and the amplitude fluctuation acquisition unit is specifically used for: The three-phase currents are converted to a synchronous rotating coordinate system to obtain the corresponding q-axis current values. Record the maximum and minimum values of the q-axis current within the event detection window; The difference between the maximum value and the minimum value is used as the amplitude fluctuation of the current parameter within the event detection window.
[0018] In some feasible implementations, the amplitude fluctuation acquisition unit is specifically used for: Obtain the instantaneous maximum and minimum values of the current parameter within the event detection window; Calculate the difference between the instantaneous maximum value and the instantaneous minimum value, and use the difference as the amplitude fluctuation.
[0019] In some feasible implementations, the amplitude fluctuation acquisition unit is specifically used for: Obtain the variance or standard deviation of the current parameter within the event detection window, and use the variance or standard deviation as the amplitude fluctuation.
[0020] In some feasible implementations, the amplitude fluctuation acquisition unit is specifically used for: The cumulative value of the difference between adjacent sampling points of the current parameter within the event detection window is obtained, and the cumulative value is used as the amplitude fluctuation.
[0021] In some feasible implementations, the event detection module further includes: The threshold generation unit is used to obtain the maximum current value of the permanent magnet synchronous motor and the stall current judgment coefficient threshold before the comparison and accumulation unit determines that the amplitude fluctuation is greater than the preset stall current judgment threshold, and to use the product between the maximum current value and the stall current judgment coefficient threshold as the stall current judgment threshold.
[0022] Among some feasible implementation methods are: The protection execution module is used to output a stall protection signal for the permanent magnet synchronous motor after the protection determination module determines that the permanent magnet synchronous motor is in a stall state, and to control the permanent magnet synchronous motor to perform a shutdown protection action in response to the stall protection signal.
[0023] In some feasible implementations, the protection determination module is further used for: If the stall event count does not reach the preset number threshold after the current time reaches the end time of the protection determination window, the stall event count is reset and the determination is performed again in the next protection determination window.
[0024] Among some feasible implementation methods are: The severity determination module is used to record the corresponding satisfaction time each time the current change satisfies the preset fluctuation condition within the protection judgment window; if the stall event count value reaches the preset number threshold at the end of the protection judgment window, the severity level of the stall of the permanent magnet synchronous motor within the protection judgment window is determined according to each satisfaction time.
[0025] This invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method described in the embodiments of the present invention.
[0026] This invention also discloses a computer-readable storage medium storing instructions that, when executed by one or more processors, cause the processors to perform the methods described in this invention.
[0027] The embodiments of the present invention have the following advantages: In this embodiment of the invention, the current parameters of the permanent magnet synchronous motor are obtained. Then, within a preset event detection window, it is determined whether the current change meets the preset fluctuation conditions based on the current parameters. If the conditions are met, the stall event count is accumulated. Then, within a preset protection judgment window, the above judgment process is repeated, and the stall state is determined based on the accumulated stall event count when the protection judgment window ends. Thus, by separating event detection and protection judgment in the time dimension through a dual-window accumulation mechanism, stall judgment can be performed using the time-domain fluctuation characteristics of the current parameters without relying on a motor model or observer and without sampling the phase voltage. This not only ensures that the stall judgment is based directly on the actual sampled signal rather than an estimated value, thus avoiding misjudgment or missed judgment caused by the observer's inaccuracy under stall conditions, but also, by requiring the accumulation to reach a preset number of thresholds within a longer protection judgment window before triggering the judgment, the instantaneous current disturbance within a single detection window will not directly trigger the stall protection. At the same time, since the entire judgment process only relies on the sampling of the current parameters without additional hardware support, the overall hardware cost and implementation complexity of the solution are reduced. Attached Figure Description
[0028] Figure 1 This is a flowchart of the steps of a stall detection method for a permanent magnet synchronous motor provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the motor stall detection process provided in an embodiment of the present invention; Figure 3 This is a structural block diagram of a stall detection device for a permanent magnet synchronous motor provided in an embodiment of the present invention. Detailed Implementation
[0029] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0030] As examples, in sensorless field-oriented control (FOC) applications of permanent magnet synchronous motors, the motors typically operate in load scenarios such as energy-efficient fans, energy-efficient compressors, and industrial drives. When the motor stalls due to mechanical jamming, excessive load, or other reasons, the rotor cannot rotate normally, and current continues to flow through the stator windings. If this is not detected and protected in time, it will lead to excessive temperature rise or even burnout of the motor.
[0031] In related technologies, sensorless FOC (Front-Off Control) solutions typically identify rotor position and speed using sensorless observers (such as sliding mode observers, model reference adaptive systems, etc.) or motor mathematical models, and then determine stall based on the identified speed information. However, when the motor is stalled, the rotor does not rotate or rotates very slowly, resulting in a very small back EMF. This makes it impossible for the sensorless observer to accurately estimate the rotor position and speed, leading to insufficient reliability of the stall criterion based on this identification information, which can easily result in missed or false detections, and stall protection may not be reliably triggered. Furthermore, to improve the reliability of stall detection, some existing solutions require additional sampling of motor phase voltage or the use of complex algorithms such as high-frequency injection to achieve rotor position identification at low or zero speeds, leading to increased hardware costs, larger PCB (Printed Circuit Board) sizes, or higher performance requirements for the main control chip.
[0032] In this invention, based on a mechanism of current time-domain fluctuation detection and dual-window cumulative judgment, when the permanent magnet synchronous motor is running, the control chip can acquire the motor's current parameters and determine whether a single stall event has occurred based on the amplitude fluctuation of the current parameters within a short-term window. Then, it accumulates the number of stall events within a long-term window to make a final stall judgment, thereby achieving reliable stall protection in a low-hardware-cost manner that relies solely on current sampling. Furthermore, it avoids the large amount of ineffective power consumption caused by continuous motor stalling, reducing the operating energy consumption of the motor drive system and improving the energy efficiency of permanent magnet synchronous motor control. This provides a reliable stall protection solution for energy-efficient products such as energy-saving air conditioner fans and energy-saving compressors.
[0033] Reference Figure 1 The diagram illustrates a flowchart of a stall detection method for a permanent magnet synchronous motor provided in an embodiment of the present invention, which may specifically include the following steps: Step 101: Obtain the current parameters of the permanent magnet synchronous motor; In this embodiment of the invention, the execution entity is a control chip for the permanent magnet synchronous motor (e.g., a microcontroller unit (MCU) or a digital signal processor (DSP)). This control chip is connected to the power inverter of the motor driver and obtains the current parameters of the permanent magnet synchronous motor through a current sampling circuit. The current sampling circuit typically includes sampling resistors, Hall current sensors, or fluxgate sensors located on the DC bus side of the inverter of the motor driver or on the phase lines of the three phases of the motor; this invention does not limit these components.
[0034] The current parameter can be an electrical quantity that reflects the stator current state of the permanent magnet synchronous motor. In this embodiment of the invention, the current parameter can be an instantaneous sampled value of the three-phase stator phase current (such as I...).u I v I w Alternatively, it can be the torque component current value obtained after coordinate transformation of the three-phase current (such as the q-axis current I). q It can also be other forms of current information, such as the DC bus current value. Optionally, as long as the current parameter can reflect the current amplitude during motor operation and its change over time, it can be applied to the technical solution of this invention.
[0035] Furthermore, in this embodiment of the invention, the sampling timing of the current parameter is related to the scheduling cycle of the field-oriented control (FOC). Specifically, the control chip triggers a current sampling interrupt once within each FOC control cycle, and reads the output value of the current sampling circuit through an analog-to-digital converter (ADC). The duration of the FOC control cycle is related to the PWM (Pulse Width Modulation) carrier cycle of the power inverter, and can be set by those skilled in the art according to actual application requirements.
[0036] Furthermore, after the control chip acquires the current parameters, it can temporarily store the current parameters in the control chip's cache register or memory for later retrieval and analysis within the event detection window.
[0037] Step 102: If, within the preset event detection window, it is determined based on the current parameters that the current change of the permanent magnet synchronous motor meets the preset fluctuation condition, then the stall event count value is incremented by one. In this embodiment of the invention, the control chip can use the current parameters obtained in step 101 to determine whether the current change of the motor meets the preset fluctuation conditions within a preset event detection window.
[0038] The event detection window can be a fixed or configurable time interval. The physical meaning of this window is that the control chip continuously collects and records current parameter data samples within the window. At the end of the window, all data samples are comprehensively analyzed to determine whether a potential stall event occurred during the window's duration. Optionally, each event detection window is independent and sequential; that is, the next event detection window begins immediately after the previous one ends, with no time interval in between. This window division method ensures the continuity of current monitoring and prevents monitoring blind spots due to window division.
[0039] Furthermore, the preset fluctuation conditions can be one or more criteria used to quantify the degree of change in current parameters within the event detection window. The physical meaning of these fluctuation conditions is as follows: Under sensorless FOC control, permanent magnet synchronous motors have closed-loop current regulation characteristics. When the motor is running in normal steady state, the current loop can maintain current stability, and the fluctuation amplitude of the current parameter on the time axis is small. When the motor stalls, due to the angular offset between the rotor position and the stator magnetic field, the output of the current loop regulator tends to saturate, resulting in significant fluctuations in the current parameter. Therefore, by detecting whether the fluctuation degree of the current parameter exceeds a preset threshold within the event detection window, it can be indirectly determined whether a stall event has occurred during that window.
[0040] In one example, the duration of the event detection window can be configured based on the motor's electrical time constant and load characteristics. Motors with smaller electrical time constants (such as low-power permanent magnet synchronous motors) respond faster to stall conditions and can use shorter event detection windows; motors with larger electrical time constants (such as high-power fan loads) experience relatively slow current changes and can use longer event detection windows.
[0041] Furthermore, in embodiments of the present invention, the stall event count value (D) num The counter is a non-negative integer, initially set to 0, and initialized by the control chip before the start of the first event detection window. Whenever the control chip determines that the current change within an event detection window meets a preset fluctuation condition at the end of that window, it increments the stall event count by one (i.e., D). num = D num +1); If the fluctuation condition is not met, the stall event count remains unchanged. Furthermore, this count will be used at the end of the subsequent protection decision window to make a final determination of whether stall has occurred.
[0042] In other feasible implementations, if the current change of the permanent magnet synchronous motor meets the preset fluctuation condition based on the current parameters within the preset event detection window, then a stall event count is accumulated. This includes: obtaining the amplitude fluctuation of the current parameters within the event detection window; if the amplitude fluctuation is less than the preset stall current judgment threshold, then the stall event count is not accumulated, and the data of the current parameters recorded in the event detection window is cleared; if the amplitude fluctuation is greater than the preset stall current judgment threshold, then a stall event count is accumulated.
[0043] In its implementation, the control chip first calculates the amplitude fluctuation quantity of the current parameter within the event detection window. This amplitude fluctuation quantity is a numerical indicator used to quantify the degree of change in the current parameter within the event detection window. There are various ways to calculate the amplitude fluctuation quantity, and those skilled in the art can choose an appropriate statistical measure based on the actual application scenario. Subsequently, the control chip compares the calculated amplitude fluctuation quantity with a preset stall current judgment threshold (If). ref The system compares the current parameters. If the amplitude fluctuation is less than or equal to the preset stall current threshold, it indicates that the change in the current parameter within the event detection window is within the allowable range of normal operation and does not meet the judgment criteria for a stall event. Therefore, the control chip does not accumulate the stall event count and clears the current parameter data (including the instantaneous value, maximum value, minimum value, variance, standard deviation, etc.) recorded in this event detection window to ensure that the detection of the next event window is not affected by the data in the current window. If the amplitude fluctuation is greater than the preset stall current threshold, it indicates that the change in the current parameter within the event detection window significantly exceeds the normal operating range, and a single stall event has occurred. Therefore, the control chip increments the stall event count once.
[0044] In the above process, the branch processing logic ensures that each event detection window can make a clear judgment decision (whether a stall event has occurred) at the end, and the data between windows is isolated from each other, preventing data aliasing across windows. In addition, through the "clear" operation, each event detection window independently records current parameter data from zero, ensuring the independence and accuracy of the judgment.
[0045] Furthermore, in some feasible implementations, the current parameter is a three-phase current, and the process of determining the amplitude fluctuation can be as follows: convert the three-phase current to a synchronous rotating coordinate system to obtain the corresponding q-axis current value, then record the maximum and minimum values of the q-axis current value within the event detection window, and then use the difference between the maximum and minimum values as the amplitude fluctuation of the current parameter within the event detection window.
[0046] In practical implementation, the control chip can sample the three-phase current value I for each FOC control cycle within the duration of the event detection window. u I v I w Perform coordinate transformation. The coordinate transformation process specifically includes the following two sub-steps: First, the Clarke transformation: transforms the current value I in a three-phase stationary coordinate system (a, b, c axes). u I v Iw Convert the current value I to a two-phase stationary coordinate system (α-β axis). α I β The transformation matrix of the Clarke transform can be:
[0047] Second, the Park transformation: transforms the current value I in the two-phase stationary coordinate system (α-β axis). α I β The current value I converted to the synchronous rotating coordinate system (dq axis) d I q The transformation matrix of the Park transform can be:
[0048] Where θ is the rotor magnetic field angle of the permanent magnet synchronous motor (which can be estimated by a sensorless observer), I q This is the q-axis current value, which corresponds to the torque current component of the permanent magnet synchronous motor and can directly reflect the electromagnetic torque output state of the motor.
[0049] After obtaining the I corresponding to each FOC control cycle q After the value is set, the control chip continuously records the I corresponding to each FOC control cycle within the event detection window. q Value. At the end of the event detection window, the control chip retrieves all recorded I... q Extract the maximum value I from the values qmax and minimum value I qmin And calculate the difference ΔI between the two. q =I qmax -I qmin This difference is the range of the q-axis current within the event detection window, reflecting the maximum fluctuation of the q-axis current within the window. This difference is used as the amplitude fluctuation of the current parameter within the event detection window.
[0050] To illustrate with a specific numerical example from this embodiment: assuming the event detection window duration T1 = 200ms and the FOC control cycle is 100μs, then one event detection window contains 2000 I... q Sampled values. Within this event detection window, the control chip recorded 2000 I... q The values are 0.62A and 0.15A, respectively. Therefore, the amplitude fluctuation ΔIq = 0.62 - 0.15 = 0.47A.
[0051] By converting the three-phase current to a synchronous rotating coordinate system to obtain the q-axis current value, the torque component and excitation component of the motor can be decoupled. This allows the calculation of amplitude fluctuation to directly reflect the fluctuation of the motor torque output, which is highly consistent with the physical mechanism of torque pulsation under stall conditions, thereby improving the sensitivity and accuracy of stall event detection.
[0052] In some other feasible implementations, obtaining the amplitude fluctuation of the current parameter within the event detection window includes: obtaining the instantaneous maximum value and instantaneous minimum value of the current parameter within the event detection window; calculating the difference between the instantaneous maximum value and the instantaneous minimum value, and using the difference as the amplitude fluctuation.
[0053] For some applications, the current parameters themselves (such as the amplitude of the three-phase current or the DC bus current) can be directly used for fluctuation calculations without coordinate transformation. For example, when the control chip directly samples and obtains the three-phase current I... u I v I w In this case, the difference between the instantaneous maximum and minimum values of each of the three phases (i.e., the range of each phase) can be calculated separately, and then the maximum or average value of the three phase differences can be taken as the final amplitude fluctuation. For example, when the current parameter is DC bus current, the control chip directly records the instantaneous maximum and minimum values of the bus current within the event detection window and calculates the difference as the amplitude fluctuation.
[0054] It should be noted that this implementation method has a significant advantage in computational efficiency when hardware resources are limited and complex coordinate transformation calculations are inconvenient. It is suitable for control chip platforms that are cost-sensitive or have limited computing resources.
[0055] In other feasible implementations, obtaining the amplitude fluctuation of the current parameter within the event detection window may also include: obtaining the variance or standard deviation of the current parameter within the event detection window, and using the variance or standard deviation as the amplitude fluctuation.
[0056] In practical implementation, variance and standard deviation are commonly used statistical indicators to measure the dispersion of data, comprehensively reflecting the overall deviation of the current parameter from its mean within the event detection window. The control chip records the current value (e.g., the q-axis current value I) for each FOC control cycle within the event detection window. q (or the original phase current sample value), and calculate the variance or standard deviation of the recorded current values at the end of the window.
[0057] Taking the q-axis current value as an example, the formula for calculating the variance is:
[0058] Where N is the number of sampling points within the event detection window, I qi Let q be the q-axis current value at the i-th sampling point. For all I's in the event detection window qi The average value is given by the variance σ², where the standard deviation is the square root of the variance. A larger variance or standard deviation indicates more severe fluctuations in the current parameter within the window, and a higher probability of stall. Compared to extreme values, variance and standard deviation are less sensitive to short-term spikes and better reflect the overall statistical trend of current fluctuations. They are suitable for applications where the current signal contains strong noise or occasional spike interference, effectively avoiding misjudgments caused by a single instantaneous spike.
[0059] In other feasible implementations, obtaining the amplitude fluctuation of the current parameter within the event detection window may also include: obtaining the cumulative value of the difference between adjacent sampling points of the current parameter within the event detection window, and using the cumulative value as the amplitude fluctuation.
[0060] In its implementation, the control chip calculates the absolute difference between the current value of the current sampling point and the current value of the previous sampling point every FOC control cycle within the event detection window. It then sums the differences of all adjacent sampling points within the window to obtain the total fluctuation. The calculation formula is as follows:
[0061] Where N is the number of sampling points within the event detection window, I i Let be the current value at the i-th sampling point (e.g., the q-axis current value). This cumulative difference index reflects the total path length of the current change within the event detection window, effectively capturing high-frequency fluctuation information. It is particularly suitable for current signals containing abundant high-frequency components. For example, in a scenario where high-frequency oscillations are caused by motor stall, the cumulative difference between adjacent sampling points will increase significantly, while the range or variance may fail to reach the threshold due to the limited oscillation amplitude. Therefore, this implementation provides a detection dimension that complements the aforementioned methods.
[0062] In some other feasible implementations, if the amplitude fluctuation is greater than the preset stall current judgment threshold, before accumulating a stall event count, the method also includes: obtaining the maximum current value of the permanent magnet synchronous motor and the stall current judgment coefficient threshold; and using the product between the maximum current value and the stall current judgment coefficient threshold as the stall current judgment threshold.
[0063] In the specific implementation, the locked-rotor current judgment threshold I ref It is not a fixed constant, but an adaptive threshold related to the rated operating parameters of the motor. Specifically, the control chip can obtain the maximum current value I of the permanent magnet synchronous motor. maxAnd the pre-configured stall current judgment coefficient threshold K x Then I max With K x Multiply by the product to obtain the stall current threshold I. ref =I max ×K x .
[0064] Among them, the maximum current value I max This is the maximum current limit that the current loop can output in sensorless FOC control, and it is related to the rated current parameters of the motor. In sensorless FOC control of a permanent magnet synchronous motor, the current loop can be set with an output limit value, which is I. max For example, when the rated current of the motor is 0.65A, I max Take 0.65A; when the motor's rated current is 2.0A, I max Take 2.0A. Optionally, I max The value can be obtained from the motor nameplate parameters or the current limiting setting of the controller, and the present invention does not limit it.
[0065] Among them, the threshold value of the locked rotor current judgment coefficient K x A dimensionless coefficient value between 0 and 1, used to adjust the sensitivity of stall detection. K x The larger the value of I, the higher the threshold for locked rotor current. ref The larger the value, the more lenient the judgment criteria, and the less likely it is to detect stalled rotor; K x The smaller the value of I, the better. ref The smaller the value, the stricter the judgment criteria, and the easier it is to detect stalled operation, but it may also increase the risk of false positives. x The specific value depends on the motor's load characteristics, the duration of the event detection window, and the system's anti-interference requirements.
[0066] Let's take a specific numerical example from this embodiment as an illustration: Assume the maximum current value I of the motor. max =0.65A, locked rotor current judgment coefficient threshold K x =0.6, then the locked rotor current judgment threshold I ref =0.65 × 0.6 = 0.39A. If the difference ΔI between the maximum and minimum values of the q-axis current within the event detection window... q =0.47A. Since 0.47A > 0.39A, the fluctuation condition is met, and the stall event count value D is set. num Accumulate once. If ΔI q =0.30A, since 0.30A < 0.39A, it is determined that the fluctuation condition is not met, D num It remains unchanged.
[0067] It should be noted that the dynamic threshold setting method allows the stall detection threshold to adaptively adjust according to the motor's maximum current value. This eliminates the need to recalibrate the fixed current threshold for motors of different power ratings and rated currents, improving the versatility and engineering applicability of the solution. Furthermore, by adjusting a single coefficient K... x The detection sensitivity can be flexibly adjusted, which facilitates engineering debugging and parameter tuning.
[0068] Step 103: Within the preset protection judgment window, repeat the process of judging whether the current change of the permanent magnet synchronous motor meets the preset fluctuation conditions based on the current parameters. In response to the end time of the protection judgment window being reached at the current time, if the calculated value of the stall event reaches the preset number of times threshold, then the permanent magnet synchronous motor is judged to be in a stall state. The duration of the event detection window is less than the duration of the protection judgment window.
[0069] In this embodiment of the invention, the control chip can repeatedly execute the judgment process in step 102 above within a preset protection judgment window, using the event detection window as the basic time unit. The duration of the protection judgment window is significantly longer than the duration of the event detection window; this duration can be set to several times or even tens of times the duration of the event detection window, so that the complete cycle of multiple event detection windows can be accommodated within a single protection judgment window, thereby allowing for the accumulation and statistical analysis of the judgment results from multiple event detection windows.
[0070] In practical implementation, the physical meaning of the protection judgment window can be: the control chip continuously monitors and accumulates the number of stall events within the window, but does not make a final judgment immediately when each event occurs. Instead, it waits until the entire protection judgment window ends, and then makes a comprehensive judgment based on the accumulated number of stall events to determine whether a stall has actually occurred. This "multiple detections, one judgment" mechanism can effectively filter out occasional and non-continuous current disturbances and avoid falsely triggering the stall protection due to instantaneous abnormalities within a single event detection window.
[0071] It should be noted that the timing relationship between the event detection window and the protection decision window can be described as follows: the event detection window is a time sub-unit of the protection decision window, and multiple event detection windows are arranged sequentially to form a complete protection decision window. Specifically, at the start time of the protection decision window, the first event detection window begins; when the first event detection window ends, the second event detection window immediately begins; and so on, until the end time of the protection decision window is reached. Therefore, the duration T1 of the event detection window and the duration T2 of the protection decision window satisfy T2 = N × T1 (N is a positive integer, N≥2), that is, the protection decision window contains N consecutive event detection windows.
[0072] In this embodiment of the invention, the relationship between the duration T2 of the protection decision window and the duration T1 of the event detection window can be configured such that T2 is a multiple of T1. In specific implementations, T2 can be an integer multiple of T1 to ensure that the event detection window is fully aligned within the protection decision window; T2 can also be a non-integer multiple of T1 (i.e., the last event detection window is incomplete), but generally, using an integer multiple alignment method is more convenient for timing control and data management.
[0073] Specifically, during the operation of the protection decision window, the control chip can monitor the stall event count value D. num Continuous accumulation is performed. Whenever an event detection window ends and the control chip determines that the current change within that window meets the fluctuation condition, D... num Accumulate once; if the fluctuation condition is not met, D num It remains unchanged. When the end time of the protection decision window is reached, the control chip stops accumulating and acquires D. num The current value.
[0074] Subsequently, the control chip will D num The current value and the preset number of times threshold F num The comparison is performed. The preset threshold number F is used for this comparison. num This defines the minimum number of stall events that must be detected within a single protection decision window before a stall condition can be determined. Specifically, F num F is a positive integer, and its value is related to the total number N of event detection windows contained in the protection decision window. It can be set to a positive integer less than or equal to N. num The larger the value of F, the stricter the stall detection condition, requiring more event detection windows to determine stall before triggering protection, and the stronger the anti-interference capability; num The smaller the value of , the more lenient the blocking judgment condition and the faster the response speed, but the risk of misjudgment increases accordingly.
[0075] If D num ≥ F num This indicates that the number of stall events detected within the protection judgment window has reached or exceeded the preset threshold, the stall judgment condition is met, and the control chip determines that the permanent magnet synchronous motor is in a stall state. If D num <F num This indicates that the number of detected stall events is insufficient and does not meet the stall criterion; therefore, the control chip determines that the motor is not in a stall state.
[0076] The aforementioned dual-window cumulative judgment mechanism achieves a stall detection strategy of "short window event detection, long window comprehensive judgment." In this strategy, current fluctuations within a single event detection window are only counted as "suspected stall events" and do not directly trigger stall protection. Only after accumulating a sufficient number of "suspected" events over a longer timescale is the final stall judgment result output. In this process, this mechanism significantly enhances the ability to resist instantaneous current disturbances and noise interference while maintaining high detection sensitivity to actual stalls.
[0077] Furthermore, by setting the final decision-making time at the end of the protection decision-making window rather than the end of the event detection window, sufficient statistical evidence can be accumulated over time before making a decision, avoiding misjudgments caused by abnormal data within a single short-term window. Simultaneously, since the entire decision-making process relies solely on current parameter sampling, without depending on the speed estimation results from the sensorless observer or the accuracy of the motor's mathematical model, this scheme can still make reliable decisions based on the actual sampled current data even if the observer is inaccurate and the estimated speed is completely wrong under stall conditions.
[0078] In other feasible implementations, after determining that the permanent magnet synchronous motor is in a stalled state, the method may also include: outputting a stall protection signal for the permanent magnet synchronous motor; and controlling the permanent magnet synchronous motor to perform a shutdown protection action in response to the stall protection signal.
[0079] Specifically, once the control chip determines that the motor is in a stalled state through the above steps, it can immediately output a stall protection signal to the power switch driver circuit of the motor driver through its general-purpose input / output interface (GPIO) or communication interface (such as UART (Universal Asynchronous Receiver / Transmitter), CAN (Controller Area Network), SPI (Serial Peripheral Interface), etc.). The stall protection signal can be a high-level or low-level digital signal, or a data packet containing protection command encoding; the specific form depends on the control interface protocol of the drive circuit, and this invention does not impose any limitations on it.
[0080] Upon receiving a stall protection signal, the drive circuit can immediately execute corresponding protection actions. In some implementations, the drive circuit shuts off the drive signals of all power switching transistors (such as IGBTs (Insulated Gate Bipolar Transistors) or MOSFETs (Metal-Oxide-Semiconductor Field-Effect Transistors) in the inverter, causing the inverter output to present a high-impedance state. This de-energizes the motor stator windings, reduces the electromagnetic torque to zero, and allows the motor to stop rotating freely under frictional resistance. Simultaneously, the control chip can report stall status information (including the time of stall occurrence, protection judgment window duration, and accumulated stall event count) to the host computer, system main controller, or cloud server for fault recording, alarm prompts, and subsequent fault analysis. This post-processing step ensures that once stall is detected, the system can promptly take physical protection measures to prevent the motor from overheating due to continuous stall, leading to insulation damage or burnout, thus ensuring the safety of the motor and the entire drive system.
[0081] In some other feasible implementations, if the stall event count value has not reached the preset number threshold after the current time has reached the end time of the protection decision window, the stall event count value is reset and the decision is re-made in the next protection decision window.
[0082] Specifically, when the end time of the protection decision window arrives, if the control chip determines D... num <F num If the stall event count value has not reached the preset threshold, it means that the number of stall events detected within the current protection judgment window is insufficient to support stall judgment, and the motor is in normal operation or only an occasional current disturbance has occurred. At this time, the control chip will update the stall event count value D. num Reset to 0 and clear all temporary record data (including the maximum and minimum values of current parameters recorded in each event detection window), and then begin the monitoring process for the next protection judgment window.
[0083] Within the new protection decision window, the control chip repeats all steps 101 to 103, namely, restarting the acquisition of current parameters, judging fluctuation conditions and accumulating count values within the event detection window, and comparing the count value with a preset threshold number at the end of the protection decision window. This reset mechanism ensures that each protection decision window is independent of each other, preventing false judgments due to the accumulation of count values across windows. Through this "window sliding" method, the embodiments of the present invention can achieve continuous and uninterrupted monitoring of the motor's operating status. Each protection decision window can independently generate a stall determination result, so that stalls occurring at any time can be detected in a timely manner without being missed due to window division.
[0084] In other feasible implementations, within the protection judgment window, each time the current change satisfies a preset fluctuation condition, the corresponding satisfaction time is recorded; if the stall event count reaches a preset threshold at the end of the protection judgment window, the stall severity level of the permanent magnet synchronous motor within the protection judgment window is determined based on each satisfaction time.
[0085] Specifically, during the protection decision window, the control chip, in addition to accumulating the stall event count value D, num In addition, it can also record the time information of each time the fluctuation condition is met. Whenever the current change meets the fluctuation condition at the end of an event detection window, it is determined that the current change meets the fluctuation condition and D is accumulated. num At the same time, the control chip records the timestamp corresponding to the end of the event detection window as the satisfaction time. This satisfaction time information is temporarily stored in the control chip's memory.
[0086] At the end of the protection decision window, if D num ≥ F num (That is, if the stall condition is met), the control chip further acquires all recorded times when the stall condition is met and performs time distribution analysis on these times to determine the severity level of the stall. Specifically, the control chip can calculate the variance or standard deviation of the time interval between adjacent times to assess the concentration of stall events. If multiple times are highly concentrated in the first half of the protection decision window, it indicates that the stall phenomenon occurs frequently and persists in the early part of the window, and can be judged as "severe stall". If the times are evenly distributed within the window, it indicates that the stall phenomenon is intermittent and non-persistent, and can be judged as "mild stall" or "intermittent stall".
[0087] The control chip can execute differentiated follow-up protection strategies based on different levels of stall severity. For example, for the "severe stall" level, the control chip immediately executes a shutdown protection action and latches the fault state, prohibiting the motor from automatically restarting, requiring manual troubleshooting and reset. For the "mild stall" or "intermittent stall" levels, the control chip can execute more lenient protection strategies such as reducing power, issuing speed reduction commands, or attempting automatic recovery after a delay, in order to minimize the impact on normal equipment operation while ensuring safety.
[0088] Furthermore, the recording of the timing information can also be used for fault diagnosis and maintenance analysis. For example, after a motor stalls, maintenance personnel can read the timing sequence recorded in the control chip to analyze the temporal pattern and frequency characteristics of the stall, which helps to determine the physical cause of the stall (such as periodic mechanical jamming, gradual increase in bearing wear, etc.) and improve the efficiency of fault diagnosis.
[0089] It should be noted that the embodiments of the present invention include, but are not limited to, the examples described above. It is understood that those skilled in the art can make further settings according to actual needs under the guidance of the ideas in the embodiments of the present invention, and the present invention does not limit such settings.
[0090] In this embodiment of the invention, the current parameters of the permanent magnet synchronous motor are obtained. Then, within a preset event detection window, it is determined whether the current change meets the preset fluctuation conditions based on the current parameters. If the conditions are met, the stall event count is accumulated. Then, within a preset protection judgment window, the above judgment process is repeated, and the stall state is determined based on the accumulated stall event count when the protection judgment window ends. Thus, by separating event detection and protection judgment in the time dimension through a dual-window accumulation mechanism, stall judgment can be performed using the time-domain fluctuation characteristics of the current parameters without relying on a motor model or observer and without sampling the phase voltage. This not only ensures that the stall judgment is based directly on the actual sampled signal rather than an estimated value, thus avoiding misjudgment or missed judgment caused by the observer's inaccuracy under stall conditions, but also, by requiring the accumulation to reach a preset number of thresholds within a longer protection judgment window before triggering the judgment, the instantaneous current disturbance within a single detection window will not directly trigger the stall protection. At the same time, since the entire judgment process only relies on the sampling of the current parameters without additional hardware support, the overall hardware cost and implementation complexity of the solution are reduced.
[0091] To enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the following examples are provided for illustrative purposes: As some examples, see Figure 2 The diagram illustrates a flowchart of a motor stall detection method provided in an embodiment of the present invention, which may include: First, obtain or determine the real-time current value I passing through the motor.u I v I w The maximum current value I of the sensorless FOC control of the motor max ; Locked rotor current judgment coefficient threshold K x ∈(0~1); Locked rotor current detection time threshold T1; Locked rotor duration judgment time threshold T2; Locked rotor current judgment number threshold F num wait.
[0092] Next, during the operation of the permanent magnet synchronous motor, the stall protection judgment method may include: 1) Obtain the real-time value of motor current I u I v I w That is, the current value is acquired in each FOC control cycle.
[0093] 2) Convert the phase current value to I q The value is the current value on the q-axis.
[0094] 3) During the locked-rotor current detection time T1, obtain I q The maximum value I qmax and minimum value I qmin .
[0095] 4) When time reaches T1, compare I. qmax -I qmin with I max *K x The size of I. qmax -I qmin >I max *K x This indicates that the current changes significantly during the T1 time period, and the motor is in a stalled state, with the stall count value D. num Add 1.
[0096] 5) Clear I qmax and I qmin Repeat logic 4), that is, continue to judge in a new T1 time period.
[0097] 6) During time period T2, if D num ≥F num If so, it is determined that the motor is stalled.
[0098] 7) The T2 time period is generally several times longer than the T1 time period, meaning that the judgment of the T1 time period can be repeated multiple times within the T2 time period to ensure the reliability of the blockage alarm judgment.
[0099] 8) If D is within time period T2 num <F num If so, all data is reset, and the state of the new T2 period is determined, i.e., repeating 1) to 7).
[0100] Furthermore, specific scenarios will be used as examples to illustrate this: Example Scenario 1: Detection of persistent stall caused by aging fan bearings: In a specific application scenario, a ceiling fan using sensorless FOC control experienced mechanical jamming due to bearing aging, causing intermittent stalling of the motor rotor. The fan's rated current is 0.65A, the control chip is configured with an event detection window T1=200ms, a protection decision window T2=5s, and a stall current judgment coefficient threshold K. x =0.6, preset number of times threshold F num =3, the maximum current value of the motor I max =0.65A, then the locked rotor current judgment threshold I ref =0.65×0.6=0.39A. The control chip samples the three-phase current and performs coordinate transformation in each FOC control cycle (100μs), continuously recording the q-axis current value.
[0101] Within the first event detection window (0~200ms), the q-axis current value fluctuated between 0.20A and 0.55A, with a maximum value of 0.55A and a minimum value of 0.20A, the difference being ΔI. q =0.35A, which is less than the threshold of 0.39A, so this window does not count stall events. D num Keep it at 0.
[0102] Within the second event detection window (200ms~400ms), the q-axis current value fluctuated wildly between 0.15A and 0.62A, with a maximum value of 0.62A and a minimum value of 0.15A, and a difference ΔI. q =0.47A, which is greater than the threshold of 0.39A, so the fluctuation condition is met. D num Accumulate to 1.
[0103] Within the third event detection window (400ms~600ms), the q-axis current value fluctuated between 0.10A and 0.58A, with a difference ΔI. q =0.48A, which is greater than the threshold of 0.39A, D num Accumulate to 2.
[0104] Within the fourth event detection window (600ms~800ms), the q-axis current value fluctuated between 0.12A and 0.60A, with a difference ΔI. q =0.48A, which is greater than the threshold of 0.39A, D num Accumulate to 3.
[0105] At this point, the protection decision window (5s) has not yet ended, and the control chip continues to monitor subsequent event detection windows at 200ms intervals. Until the end of the protection decision window, D...num The cumulative value has reached or exceeded F num After three occurrences, the control chip determines that the motor is in a stalled state and immediately outputs a stall protection signal to shut down the power switch, thus safely stopping the motor. Through this dual-window accumulation mechanism, this solution accumulates sufficient judgment evidence in the early stages of stall occurrence (within approximately 800ms), accurately triggering stall protection at the end of the protection judgment window.
[0106] Example Scenario 2: Misjudgment Avoidance under Load Disturbance: In another specific application scenario, an industrial compressor experiences occasional, non-continuous torque disturbances due to foreign objects in the refrigerant piping. These disturbances cause brief fluctuations in current within individual event detection windows. The protection decision window is configured as T2=10s, with a preset threshold number of events F. num =6 times, event detection window T1=200ms, then one protection judgment window contains 50 event detection windows.
[0107] Within the 10-second protection decision window, current fluctuations exceeding the threshold were detected only in the 3rd, 17th, and 35th event detection windows; the current fluctuations in the remaining 47 event detection windows were within the normal range. num The final value is 3, which is much smaller than F. num =6. Therefore, when the protection decision window ends, D num =3 <F num =6, the control chip determines that the motor is not in a stalled state, does not trigger the stall protection, and the motor continues to operate normally. Simultaneously, the control chip will... num Reset to 0 and begin monitoring for the next protection decision window.
[0108] This example clearly demonstrates how this solution passes the preset number of times threshold F. num Effectively distinguish between true continuous stalling and occasional load disturbances—protection will only be triggered if the stalling event occurs a certain frequency within a long time window. Single or occasional current disturbances will not trigger protection due to insufficient cumulative occurrences, thus avoiding production interruptions caused by false protection.
[0109] Example Scenario 3: Differentiated Congestion Severity Level Protection: In another specific application scenario, the outdoor fan of an inverter air conditioner intermittently stalled during operation. The control chip was configured with a protection decision window T2=10s, an event detection window T1=200ms, and a preset threshold number of occurrences F. num=4 times. Within a protection decision window (10s), a total of 4 stall events were detected, with the corresponding fulfillment times (i.e., the end time of each event detection window) being: 1.2 seconds, 3.5 seconds, 5.8 seconds, and 8.0 seconds, respectively. The control chip recorded these 4 fulfillment times and analyzed their time distribution within the protection decision window. The intervals between adjacent fulfillment times were 2.3 seconds, 2.3 seconds, and 2.2 seconds, respectively, showing a very uniform interval.
[0110] The control chip determines the severity of the stall to be "mild / intermittent" and executes a differentiated protection strategy: reducing the motor speed to 70% of the rated speed, running for 30 seconds, and then attempting to resume full speed operation. Simultaneously, the control chip stores the time-series record of the stall event in non-volatile memory for subsequent fault analysis and predictive maintenance.
[0111] If six stall events are detected within another protection detection window, and all of them occur within the first 3 seconds of that window (i.e., six stall events occur within approximately 15 event detection windows), the control chip determines the stall severity level to be "severe," executes an immediate shutdown protection action, latches the fault state, and prevents the motor from automatically restarting. On-site maintenance personnel must then investigate the cause of the mechanical jamming and manually reset the motor. Through this differentiated protection strategy, this solution can minimize unnecessary downtime caused by intermittent disturbances while ensuring equipment safety, thereby improving equipment operating efficiency and availability.
[0112] Example Scenario 4: Complete Detection Process Combining Coordinate Transformation and Range Calculation In another specific application scenario, a sensorless FOC drive system for a permanent magnet synchronous motor stalled during startup due to excessive load torque. The control chip was configured with an event detection window T1=100ms, a protection decision window T2=2s, and K... x =0.7, I max =1.0A, then I ref =1.0 × 0.7 = 0.7 A, F num =2 times.
[0113] The control chip immediately executes step 101 after startup, sampling the three-phase current I within each FOC control cycle (50μs). u I v I w Within each event detection window (100ms = 2000 FOC cycles), the control chip executes step 102: sampling I for each FOC cycle. u I v I w Perform Clarke and Park transforms to obtain the q-axis current value I. qAnd record it. At the end of the first event detection window, the control chip traverses all recorded Iq values, obtaining a maximum value of 0.95A, a minimum value of 0.10A, and a difference ΔI. q =0.85A, greater than I ref =0.7A, D num Accumulate to 1. At the end of the second event detection window, ΔI... q =0.90A, greater than 0.7A, D num Accumulate to 2. At this point, the protection decision window (2s) has not yet ended, but D num D has been satisfied num ≥F num =2 condition.
[0114] When the protection decision window ends (at the 2nd second), the control chip finally confirms D. num =2≥F num =2 indicates that the motor is in a stalled state, and a stall protection signal is output to stop the machine. In this example, even when the motor has not yet established a stable speed and the sensorless observer has not yet converged during the startup phase, this solution can still accurately detect stall based on the current sampling value, overcoming the blind spot of stall detection in the startup phase of traditional solutions.
[0115] In the above process, by separating event detection and protection determination in the time dimension through a dual-window accumulation mechanism, it is possible to perform stall judgment using the time-domain fluctuation characteristics of current parameters without relying on motor models or observers or sampling phase voltage. This not only ensures that the stall judgment is based directly on the actual sampled signal rather than the estimated value, thus avoiding misjudgment or missed judgment caused by observer inaccuracy in the stall state, but also ensures that the determination is triggered only after accumulating a preset number of times within a longer protection determination window. This prevents instantaneous current disturbances within a single detection window from directly triggering stall protection. Furthermore, since the entire determination process only relies on the sampling of current parameters without additional hardware support, the overall hardware cost and implementation complexity of the solution are reduced.
[0116] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0117] Reference Figure 3 The diagram shows a structural block diagram of a stall detection device for a permanent magnet synchronous motor provided in an embodiment of the present invention, which may specifically include the following modules: The current parameter acquisition module 301 is used to acquire the current parameters of the permanent magnet synchronous motor. The event detection module 302 is used to accumulate a stall event count value if the current change of the permanent magnet synchronous motor meets the preset fluctuation condition according to the current parameters within the preset event detection window. The protection determination module 303 is used to repeatedly determine whether the current change of the permanent magnet synchronous motor meets the preset fluctuation conditions based on the current parameters within a preset protection determination window. In response to the end time of the protection determination window being reached at the current time, if the stall event count value reaches a preset number threshold, the permanent magnet synchronous motor is determined to be in a stall state. The duration of the event detection window is shorter than the duration of the protection determination window.
[0118] In some feasible implementations, the event detection module 302 includes: The amplitude fluctuation acquisition unit is used to acquire the amplitude fluctuation of the current parameter within the event detection window; The comparison and accumulation unit is used to, if the amplitude fluctuation is less than a preset stall current judgment threshold, not to accumulate the stall event count value and to clear the data of the current parameter recorded in the event detection window; if the amplitude fluctuation is greater than the preset stall current judgment threshold, then to accumulate the stall event count value once.
[0119] In some feasible implementations, the current parameter is a three-phase phase current, and the amplitude fluctuation acquisition unit is specifically used for: The three-phase currents are converted to a synchronous rotating coordinate system to obtain the corresponding q-axis current values. Record the maximum and minimum values of the q-axis current within the event detection window; The difference between the maximum value and the minimum value is used as the amplitude fluctuation of the current parameter within the event detection window.
[0120] In some feasible implementations, the amplitude fluctuation acquisition unit is specifically used for: Obtain the instantaneous maximum and minimum values of the current parameter within the event detection window; Calculate the difference between the instantaneous maximum value and the instantaneous minimum value, and use the difference as the amplitude fluctuation.
[0121] In some feasible implementations, the amplitude fluctuation acquisition unit is specifically used for: Obtain the variance or standard deviation of the current parameter within the event detection window, and use the variance or standard deviation as the amplitude fluctuation.
[0122] In some feasible implementations, the amplitude fluctuation acquisition unit is specifically used for: The cumulative value of the difference between adjacent sampling points of the current parameter within the event detection window is obtained, and the cumulative value is used as the amplitude fluctuation.
[0123] In some feasible implementations, the event detection module 302 further includes: The threshold generation unit is used to obtain the maximum current value of the permanent magnet synchronous motor and the stall current judgment coefficient threshold before the comparison and accumulation unit determines that the amplitude fluctuation is greater than the preset stall current judgment threshold, and to use the product between the maximum current value and the stall current judgment coefficient threshold as the stall current judgment threshold.
[0124] Among some feasible implementation methods are: The protection execution module is used to output a stall protection signal for the permanent magnet synchronous motor after the protection determination module 303 determines that the permanent magnet synchronous motor is in a stall state, and to control the permanent magnet synchronous motor to perform a shutdown protection action in response to the stall protection signal.
[0125] In some feasible implementations, the protection determination module 303 is further used for: If the stall event count does not reach the preset number threshold after the current time reaches the end time of the protection determination window, the stall event count is reset and the determination is performed again in the next protection determination window.
[0126] Among some feasible implementation methods are: The severity determination module is used to record the corresponding satisfaction time each time the current change satisfies the preset fluctuation condition within the protection judgment window; if the stall event count value reaches the preset number threshold at the end of the protection judgment window, the severity level of the stall of the permanent magnet synchronous motor within the protection judgment window is determined according to each satisfaction time.
[0127] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0128] In addition, this invention also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described embodiment of the stall detection method for permanent magnet synchronous motor and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0129] This invention also provides a readable storage medium storing a computer program. When executed by a processor, the computer program implements the various processes of the stall detection method for the permanent magnet synchronous motor described above, achieving the same technical effect. To avoid repetition, it will not be described again here. The readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0130] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0131] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, EEPROM, Flash, and eMMC, etc.) containing computer-usable program code.
[0132] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0133] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0134] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0135] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0136] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0137] The above provides a detailed description of a stall detection method and a stall detection device for a permanent magnet synchronous motor provided by the present invention. Specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core idea of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the idea of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for detecting stall in a permanent magnet synchronous motor, characterized in that, include: Obtain the current parameters of the permanent magnet synchronous motor; If, within the preset event detection window, it is determined based on the current parameters that the current change of the permanent magnet synchronous motor meets the preset fluctuation conditions, then the stall event count value is incremented once. Within a preset protection judgment window, the process of repeatedly judging whether the current change of the permanent magnet synchronous motor meets the preset fluctuation conditions based on the current parameters is repeated. In response to the end time of the protection judgment window being reached at the current time, if the calculated value of the stall event reaches a preset number of thresholds, the permanent magnet synchronous motor is judged to be in a stall state. The duration of the event detection window is shorter than the duration of the protection determination window.
2. The method according to claim 1, characterized in that, If, within a preset event detection window, the current change of the permanent magnet synchronous motor is determined based on the current parameters to meet a preset fluctuation condition, then a stall event count is incremented, including: Obtain the amplitude fluctuation of the current parameter within the event detection window; If the amplitude fluctuation is less than the preset stall current judgment threshold, the stall event count value will not be accumulated, and the data of the current parameter recorded in the event detection window will be cleared. If the amplitude fluctuation is greater than the preset stall current judgment threshold, then the stall event count value is incremented by one.
3. The method according to claim 2, characterized in that, The current parameter is a three-phase current, and the amplitude fluctuation of the current parameter within the event detection window includes: The three-phase currents are converted to a synchronous rotating coordinate system to obtain the corresponding q-axis current values. Record the maximum and minimum values of the q-axis current within the event detection window; The difference between the maximum value and the minimum value is used as the amplitude fluctuation of the current parameter within the event detection window.
4. The method according to claim 2, characterized in that, The amplitude fluctuation of the current parameter within the event detection window includes: Obtain the instantaneous maximum and minimum values of the current parameter within the event detection window; Calculate the difference between the instantaneous maximum value and the instantaneous minimum value, and use the difference as the amplitude fluctuation.
5. The method according to claim 2, characterized in that, The amplitude fluctuation of the current parameter within the event detection window includes: Obtain the variance or standard deviation of the current parameter within the event detection window, and use the variance or standard deviation as the amplitude fluctuation.
6. The method according to claim 2, characterized in that, The amplitude fluctuation of the current parameter within the event detection window includes: The cumulative value of the difference between adjacent sampling points of the current parameter within the event detection window is obtained, and the cumulative value is used as the amplitude fluctuation.
7. The method according to claim 2, characterized in that, Before incrementing the stall event count value if the amplitude fluctuation exceeds a preset stall current threshold, the method further includes: Obtain the maximum current value and the stall current judgment coefficient threshold of the permanent magnet synchronous motor; The product of the maximum current value and the stall current judgment coefficient threshold is used as the stall current judgment threshold.
8. The method according to claim 1, characterized in that, After determining that the permanent magnet synchronous motor is in a stalled state, the method further includes: Output a stall protection signal for the permanent magnet synchronous motor; In response to the stall protection signal, the permanent magnet synchronous motor is controlled to perform a shutdown protection action.
9. The method according to claim 1, characterized in that, In response to the end time of the protection determination window being reached at the current time, the method further includes: If the calculated value of the stall event does not reach the preset number threshold, the stall event count value is reset, and the judgment is re-performed in the next protection judgment window.
10. The method according to claim 1, characterized in that, Also includes: Within the protection determination window, each time the current change is determined to satisfy the preset fluctuation condition, the corresponding satisfaction time is recorded; If the stall event count reaches the preset number threshold at the end of the protection decision window, the stall severity level of the permanent magnet synchronous motor within the protection decision window is determined according to each of the specified satisfying times.
11. A stall detection device for a permanent magnet synchronous motor, characterized in that, include: The current parameter acquisition module is used to acquire the current parameters of the permanent magnet synchronous motor. The event detection module is used to increment the stall event count value once if the current change of the permanent magnet synchronous motor meets the preset fluctuation condition based on the current parameters within the preset event detection window. The protection determination module is used to repeatedly determine whether the current change of the permanent magnet synchronous motor meets the preset fluctuation conditions based on the current parameters within a preset protection determination window. In response to the end time of the protection determination window being reached at the current time, if the stall event count value reaches a preset number threshold, the permanent magnet synchronous motor is determined to be in a stall state. The duration of the event detection window is shorter than the duration of the protection determination window.
12. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method as described in any one of claims 1-10.
13. A computer-readable storage medium having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-10.
