A method, device and medium for suppressing torque ripple in a permanent magnet synchronous motor
By offline calibration of the controller coefficients and voltage parameters in the operating range of a permanent magnet synchronous motor, combined with quasi-resonant harmonic suppression and open-loop voltage compensation, torque ripple suppression under all operating conditions is achieved, solving the problems of large computational load and poor adaptability in existing technologies, and improving the motor's operating stability and energy efficiency.
Patent Information
- Application Number
- CN202611449479.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-17
- Publication Date
- 2026-11-17
AI Technical Summary
Existing torque ripple suppression technologies for permanent magnet synchronous motors suffer from high computational demands, high computational requirements for the main control chip, poor adaptability to low-speed conditions, and the inability of traditional control schemes to dynamically adjust compensation parameters according to motor operating conditions. This results in significant differences in suppression effects under high and low speeds and light and heavy load conditions, affecting the stability and accuracy of motor operation.
By offline calibration of the quasi-resonant controller coefficients and periodic compensation voltage parameters for different operating conditions, a mapping table is established. Combined with quasi-resonant harmonic suppression and open-loop voltage compensation, the controller coefficients and voltage parameters are matched in real time, and the compensation amplitude is dynamically corrected to achieve torque ripple suppression across the entire operating range.
It achieves stable full-domain motor control under low computing power conditions, reduces the consumption of the main control chip, and improves the stability and energy efficiency of motor operation. It is suitable for small and medium power permanent magnet synchronous motor drive scenarios such as fans and water pumps.
Smart Images

Figure CN123122344A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent motor control technology, specifically to a method, device, and medium for suppressing torque ripple in a permanent magnet synchronous motor. Background Technology
[0002] Permanent magnet synchronous motors (PMSMs) are widely used in industrial drives, new energy equipment, and smart homes due to their high efficiency and high power density. Currently, the mainstream control method for PMSMs is vector control. However, during operation, factors such as stator cogging effect, rotor magnetic circuit asymmetry, and winding harmonic interference can easily cause torque pulsation, leading to increased motor vibration, noise, and decreased speed stability. This severely affects the operating accuracy and service life of precision equipment.
[0003] Existing torque ripple suppression technologies mostly employ real-time harmonic algorithm iteration and complex model predictive control. While these methods can achieve a certain suppression effect, they suffer from problems such as high computational load, high requirements for the computing power of the main control chip, and poor adaptability to low-speed conditions, significantly increasing the hardware cost of equipment and making it difficult to adapt to the application scenarios of small and medium power, low-cost motors. At the same time, traditional control schemes cannot dynamically adjust compensation parameters according to motor operating conditions, resulting in significant differences in suppression effect under high and low speeds and light and heavy load conditions, and insufficient overall operational stability.
[0004] Therefore, there is an urgent need for a torque ripple suppression control method for permanent magnet synchronous motors that requires low computing power, has high precision, and is adaptable to all domains. Summary of the Invention
[0005] The present invention provides a method, device and medium for suppressing torque pulsation control of permanent magnet synchronous motor, which can at least solve one of the technical problems in the background art.
[0006] To achieve the above objectives, the present invention adopts the following technical solution: A method for suppressing torque ripple in a permanent magnet synchronous motor involves executing the following steps using computer equipment. S1. In the offline stage, multiple operating condition intervals are divided according to the motor operating frequency and load level. Calibration points are selected in each operating condition interval, the quasi-resonant controller coefficients corresponding to each calibration point are calculated, and the periodic compensation voltage parameters are calibrated under the condition of current closed loop activation, and a mapping table is established. The mapping table contains the correspondence between the operating condition range and the coefficients of the quasi-resonant controller and the periodic compensation voltage parameters; S2. During the operation phase, the motor speed, stator current and load torque signals are acquired, the motor operating frequency and load level are calculated, the real-time operating conditions are identified, and the corresponding quasi-resonant controller coefficients and periodic compensation voltage parameters are matched from the mapping table. S3. Based on the matched quasi-resonant controller coefficients and the periodic compensation voltage parameters, the quasi-resonant harmonic suppression and open-loop voltage compensation are combined to suppress motor torque pulsation. S4. During the stable operation phase, the torque feedback signal is obtained through a torque sensor or a pre-verified torque estimation module. The torque ripple coefficient is calculated within a sliding window of a fixed number of mechanical cycles. The amplitude of the cycle compensation voltage parameter is dynamically corrected and fed back to be applied to the entire control cycle.
[0007] Furthermore, in S1, The division of the operating condition intervals is as follows: Using motor operating frequency and normalized load level as two-dimensional partitioning variables:
[0008]
[0009] in, For electrical operating frequency, This represents the number of pole pairs of the motor. For mechanical rotation speed, For load level, For the load torque obtained by a measurement or verified observer, Rated torque; At the calibration points of each of the aforementioned operating condition ranges, with the goal of minimizing torque ripple, and within the phase margin... Gain margin The resonant gain and bandwidth coefficient of the quasi-resonant controller are scanned under constraints to obtain the coefficients of the quasi-resonant controller. Under the current closed-loop condition, the amplitude and phase of the compensation voltage are scanned with the goal of minimizing torque ripple, and the periodic compensation voltage parameters are determined. Furthermore, the quasi-resonant harmonic suppression specifically includes: Based on the acquired stator current signal, the current error converted into d-axis and q-axis currents is calculated respectively, and the current error of the corresponding axis is simultaneously input into the proportional-integral controller and the quasi-resonant controller to synchronously complete the basic current adjustment operation and the target harmonic adjustment operation according to the lookup table coefficient. The relationship between the current error and the voltage synthesis is as follows:
[0010]
[0011] in, Represents the d-axis or q-axis. This represents the current error of the corresponding axis. Given a current value, This is the actual current. For the synthesized voltage, and These are the voltage regulation values of the two branch outputs, respectively; The quasi-resonant controller branch is calculated recursively using pre-calculated differential coefficients, specifically as follows:
[0012] in, , , , The discrete coefficients are obtained by looking up a table. This is the quasi-resonant voltage output for the corresponding axis. For discrete sampling times, This represents the current error at the current moment.
[0013] Furthermore, the open-loop voltage compensation output specifically includes: Based on the amplitude of the matched periodic compensation voltage parameter, a synchronous periodic voltage is obtained by combining the rotor angle, and the base voltage command of the corresponding shaft is superimposed to generate the voltage command of the corresponding shaft for the output of the proportional-integral controller, thereby compensating for the periodic torque pulsation related to cogging effect and magnetic circuit deviation. The synchronous period voltage is:
[0014] in, For synchronous periodic voltage, For amplitude, To compensate for the order, For the mechanical or electrical angle determined during calibration, To compensate for the phase.
[0015] Furthermore, the torque ripple coefficient adopts a peak-to-peak value normalization index, specifically:
[0016] in, This is the torque ripple coefficient. , and These represent the maximum, minimum, and average torques within the sliding window, respectively. It is a preset positive number to avoid the denominator approaching zero under light load.
[0017] Furthermore, the dynamic correction adopts a trial-and-error adjustment method, specifically as follows: S41. Using the amplitude of the matched periodic compensation voltage parameter as the initial value or the updated compensation amplitude as the initial value, set the adjustment step size, adjustment interval, pulsation tolerance, lower limit of amplitude, and upper limit of amplitude. S42. When the motor is in a stable operating phase, and it is detected that no operating condition switching has occurred, the voltage command is not saturated, and the torque feedback signal is valid, based on the initial value, an incremental adjustment is made according to the current adjustment direction and the adjustment step size to obtain the adjusted compensation amplitude. S43. After the adjustment interval, calculate the current torque ripple coefficient and compare it with the torque ripple coefficient before the adjustment to calculate the difference. S44. If the difference exceeds the preset torque ripple tolerance, retain the adjusted compensation amplitude; otherwise, restore the original compensation amplitude and change the probe direction. Dynamic correction is paused when a change in operating condition, voltage command saturation, or invalid torque feedback signal is detected.
[0018] Furthermore, the compensation amplitude is determined by the following formula:
[0019] in, For the first The compensation amplitude after the initial trial and adjustment; For the first The current compensation value before the second trial adjustment. To adjust the count index; To adjust the direction; To adjust the step size; This is the lower limit of the amplitude. This is the upper limit of the amplitude. This is the amplitude limiting function.
[0020] In another aspect, the present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the method described above.
[0021] In another aspect, the present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the method described above.
[0022] As can be seen from the above technical solution, the beneficial effects of the present invention are as follows: (1) This invention achieves precise control of the motor across all operating conditions by using an adaptive hierarchical control architecture based on operating conditions, combined with pre-calibrated coefficient group quasi-resonant harmonic suppression and voltage open-loop compensation technology. (2) The present invention pre-calibrates the harmonic compensation coefficient group corresponding to different operating frequencies, matches the corresponding coefficient according to the real-time operating conditions of the motor during operation, suppresses current harmonics through the quasi-resonant controller, and superimposes AC compensation voltage based on the operating condition characteristics to offset the torque pulsation caused by magnetic circuit asymmetry and cogging effect. (3) In this invention, the peak-to-peak normalized torque ripple coefficient is used as the trigger quantity within the steady-state window, and the compensation amplitude is corrected by trial adjustment. A sliding window and amplitude limiting protection mechanism are adopted to achieve adaptive compensation for external calibration errors and changes in operating conditions. (4) This invention does not require complex real-time iterative calculations, greatly reduces the computing power consumption of the main control chip, effectively reduces the torque pulsation of the motor at high and low speeds under all working conditions, and improves the stability and energy efficiency of the motor operation. It is suitable for permanent magnet synchronous motor drive scenarios such as fans, water pumps, and precision transmissions. Attached Figure Description
[0023] Figure 1 This is a flowchart of the method of the present invention; Figure 2 This is a block diagram of the control system of the present invention. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments.
[0025] like Figure 1 As shown in the figure, the torque ripple suppression control method for a permanent magnet synchronous motor described in this embodiment is implemented by a computer device through the following steps: S1. In the offline stage, multiple operating condition intervals are divided according to the motor operating frequency and load level. Calibration points are selected in each operating condition interval, the quasi-resonant controller coefficients corresponding to each calibration point are calculated, and the periodic compensation voltage parameters are calibrated under the condition of current closed loop activation, and a mapping table is established. The mapping table contains the correspondence between the operating condition range and the coefficients of the quasi-resonant controller and the periodic compensation voltage parameters; S2. During the operation phase, the motor speed, stator current and load torque signals are acquired, the motor operating frequency and load level are calculated, the real-time operating conditions are identified, and the corresponding quasi-resonant controller coefficients and periodic compensation voltage parameters are matched from the mapping table. S3. Based on the matched quasi-resonant controller coefficients and the periodic compensation voltage parameters, the quasi-resonant harmonic suppression and open-loop voltage compensation are combined to suppress motor torque pulsation. S4. During the stable operation phase, the torque feedback signal is obtained through a torque sensor or a pre-verified torque estimation module. The torque ripple coefficient is calculated within a sliding window of a fixed number of mechanical cycles. The amplitude of the cycle compensation voltage parameter is dynamically corrected and fed back to be applied to the entire control cycle.
[0026] The following explains each step: Step 1: Operating conditions and parameter calibration: Operating conditions are divided into zones based on motor operating frequency and load level. Calibration points are selected in each zone, and speed, stator current, and torque signals are collected. By performing spectral analysis or order analysis on the torque signals, the target harmonic order to be suppressed is determined. The quasi-resonant controller coefficients corresponding to each calibration point are pre-calculated, and under the condition of current closed-loop operation, the amplitude, order, and phase of the periodic compensation voltage are calibrated to establish a mapping table between operating conditions and control parameters.
[0027] The formula for calculating electrical operating frequency is:
[0028] in, For electrical operating frequency, This represents the number of pole pairs of the motor. The mechanical rotation speed is expressed in revolutions per minute (rpm).
[0029] The target harmonic order is preferably the 6th, 12th, or higher harmonic corresponding to the main component of torque pulsation.
[0030] The data saved in this stage includes: operating condition number, frequency and load range, quasi-resonance coefficient group, compensation voltage amplitude, order, phase, angle reference, and valid markers. The angle reference indicates the mechanical or electrical angle used in the compensation voltage calculation; the valid markers indicate whether the calibration parameter is within the valid calibration range.
[0031] Step 2, Real-time Operating Condition Identification and Parameter Retrieval: When the motor is running, the speed, stator current and load torque are collected, the signals used for operating condition judgment are filtered, the current operating frequency and load level are calculated, and the corresponding calibration parameters are queried.
[0032] The formula for calculating load level is:
[0033] in, For normalized load, For the load torque obtained by measurement or a pre-validated torque observer, This is the rated torque.
[0034] Set switching hysteresis and hold time at the operating condition boundaries, and ensure a smooth transition of control outputs corresponding to old and new parameters to reduce fluctuations caused by frequent switching. When the operating frequency or load level exceeds the effective calibration range, the corresponding compensation amplitude will decay to zero at a preset rate to smoothly exit the corresponding compensation.
[0035] The data recorded in this phase includes: current frequency, load level, current and target operating condition numbers, and parameter switching status.
[0036] Step 3, target harmonic suppression control: The sampled current is converted into d-axis and q-axis currents, and the errors between the current setpoint and the actual current values are calculated respectively. The current errors of the corresponding axes are simultaneously input into a proportional-integral controller and a quasi-resonant controller. The former performs basic current regulation, while the latter adjusts the target harmonics based on table lookup coefficients. The relationship between current error and voltage synthesis is as follows:
[0037]
[0038] in, Represents the d-axis or q-axis. Given a current value, This is the actual current. and These represent the voltage regulation values of the two branch outputs, respectively. The quasi-resonant branch is calculated recursively using pre-calculated differential coefficients:
[0039] in, , , , The discrete coefficients are obtained by looking up a table. This is the quasi-resonant voltage output for the corresponding axis. For discrete sampling times, This represents the current error at the current moment. The discrete coefficients are obtained through offline calibration and stored in the mapping table.
[0040] The data recorded in this stage includes: current error, proportional-integral state, quasi-resonant historical input and output, and current coefficient group.
[0041] Step 4, Periodic Compensation Voltage Superposition: The compensation parameters are retrieved based on the current operating conditions, and the synchronous periodic voltage is generated using the rotor angle.
[0042] Taking the injection of a single compensation term along the q-axis as an example:
[0043]
[0044] in, To compensate for the amplitude, To compensate for the order, For the mechanical or electrical angle determined during calibration, To compensate for the phase; Based on the q-axis voltage command This is the superimposed q-axis voltage command. When multiple compensation terms exist, the compensation voltages of each term are added together and then superimposed onto the voltage command of the corresponding axis.
[0045] When there are multiple compensation terms, the voltages of each term are added together.
[0046] The compensation voltage is superimposed after the current regulation output and before the inverse coordinate transformation and pulse width modulation, and the final voltage command is uniformly limited according to the bus voltage. During calibration, the target order of the quasi-resonant branch and the periodic compensation voltage branch should be coordinated, and it should be verified that the current closed loop will not cause the required compensation to fail.
[0047] The data recorded in this stage includes: compensation amplitude, order, phase, angle reference, compensation voltage, and limiting status.
[0048] The control structure of this method is as follows: Figure 2 As shown, the proportional-integral controller (PI controller) and the quasi-resonant controller share the current error of the corresponding axis as common inputs. The two voltage regulation values are added together, and then superimposed with the q-axis periodic compensation voltage. This is then uniformly limited, inversely transformed, and modulated to drive the motor. The actual current is sampled and fed back after coordinate transformation, forming a current closed loop. Torque ripple evaluation and compensation amplitude correction are performed within the steady-state measurement window.
[0049] Step 5, Dynamic correction of compensation amplitude: When the motor is running stably, the torque ripple coefficient is calculated within a window of a fixed number of mechanical cycles using a torque sensor or a pre-validated torque estimation module capable of reflecting the target torque ripple. This implementation uses a peak-to-peak normalization index:
[0050] in, , and These represent the maximum, minimum, and average torques within the window, respectively. The value is preset to be positive to avoid the denominator approaching zero under light loads. The window covers multiple complete mechanical cycles, preferably no less than three complete mechanical cycles.
[0051] Using the pre-calibrated amplitude as the initial value, the compensation amplitude is adjusted in small increments each time. After the operation stabilizes, the values before and after the adjustment are compared. .like If the decrease exceeds the preset tolerance, the adjustment value is retained; otherwise, the original value is restored and the testing direction is changed. Upper and lower limits for amplitude and adjustment intervals are set; when operating conditions change, voltage saturation occurs, or the torque signal is invalid, correction is paused; once these conditions are restored, the current compensation amplitude is used as the new initial value for correction to continue.
[0052] The data recorded in this phase includes: torque statistics, pulsation coefficient, current and trial amplitude, adjustment direction, update status, and valid markers.
[0053] In another aspect, the present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the method described above.
[0054] In another aspect, the present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the method described above.
[0055] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the torque ripple suppression control methods for permanent magnet synchronous motors described in the above embodiments.
[0056] It is understood that the systems, devices, and storage media provided in the embodiments of the present invention correspond to the methods provided in the embodiments of the present invention, and the explanations, examples, and beneficial effects of the relevant content can be referred to the corresponding parts of the above methods.
[0057] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).
[0058] 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 apparatus 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 apparatus. 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 apparatus that includes said element.
[0059] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0060] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for suppressing torque ripple in a permanent magnet synchronous motor, characterized in that, Perform the following steps using a computer device. S1. In the offline stage, multiple operating condition intervals are divided according to the motor operating frequency and load level. Calibration points are selected in each operating condition interval, the quasi-resonant controller coefficients corresponding to each calibration point are calculated, and the periodic compensation voltage parameters are calibrated under the condition of current closed loop activation, and a mapping table is established. The mapping table contains the correspondence between the operating condition range and the coefficients of the quasi-resonant controller and the periodic compensation voltage parameters; S2. During the operation phase, the motor speed, stator current and load torque signals are acquired, the motor operating frequency and load level are calculated, the real-time operating conditions are identified, and the corresponding quasi-resonant controller coefficients and periodic compensation voltage parameters are matched from the mapping table. S3. Based on the matched quasi-resonant controller coefficients and the periodic compensation voltage parameters, the quasi-resonant harmonic suppression and open-loop voltage compensation are combined to suppress motor torque pulsation. S4. During the stable operation phase, the torque feedback signal is obtained through a torque sensor or a pre-verified torque estimation module. The torque ripple coefficient is calculated within a sliding window of a fixed number of mechanical cycles. The amplitude of the cycle compensation voltage parameter is dynamically corrected and fed back to be applied to the entire control cycle.
2. The method for suppressing torque ripple in a permanent magnet synchronous motor according to claim 1, characterized in that: In S1, The division of the operating condition intervals is as follows: Using motor operating frequency and normalized load level as two-dimensional partitioning variables: in, For electrical operating frequency, This represents the number of pole pairs of the motor. For mechanical rotation speed, For normalized load, For the load torque obtained by a measurement or verified observer, Rated torque; At the calibration points of each of the aforementioned operating condition intervals, the coefficients of the quasi-resonant controller are determined with the goal of minimizing torque ripple while satisfying system stability constraints. Under the current closed-loop condition, the amplitude and phase of the compensation voltage are scanned with the goal of minimizing torque ripple, and the periodic compensation voltage parameters are determined.
3. The method for suppressing torque ripple in a permanent magnet synchronous motor according to claim 2, characterized in that, The quasi-resonant harmonic suppression specifically refers to: Based on the acquired stator current signal, the current error converted into d-axis and q-axis currents is calculated respectively, and the current error of the corresponding axis is simultaneously input into the proportional-integral controller and the quasi-resonant controller to synchronously complete the basic current adjustment operation and the target harmonic adjustment operation according to the lookup table coefficient. The relationship between the current error and the voltage synthesis is as follows: in, Represents the d-axis or q-axis. This represents the current error of the corresponding axis. Given a current value, This is the actual current. For the synthesized voltage, and These are the voltage regulation values of the two branch outputs, respectively; The quasi-resonant controller branch is calculated recursively using pre-calculated differential coefficients, specifically as follows: in, , , , The discrete coefficients are obtained by looking up a table. This is the quasi-resonant voltage output for the corresponding axis. For discrete sampling times, This represents the current error at the current moment.
4. The method for suppressing torque ripple in a permanent magnet synchronous motor according to claim 3, characterized in that: The open-loop voltage compensation output is specifically as follows: Based on the amplitude of the matched periodic compensation voltage parameter, a synchronous periodic voltage is obtained by combining the rotor angle, and the base voltage command of the corresponding shaft is superimposed to generate the voltage command of the corresponding shaft for the output of the proportional-integral controller, thereby compensating for the periodic torque pulsation related to cogging effect and magnetic circuit deviation. The synchronous period voltage is: in, For synchronous periodic voltage, For amplitude, To compensate for the order, For the mechanical or electrical angle determined during calibration, To compensate for the phase.
5. The method for suppressing torque ripple in a permanent magnet synchronous motor according to claim 4, characterized in that: The torque ripple coefficient adopts a peak-to-peak normalization index, specifically: in, This is the torque ripple coefficient. , and These represent the maximum, minimum, and average torques within the sliding window, respectively. It is a preset positive number.
6. The method for suppressing torque ripple in a permanent magnet synchronous motor according to claim 5, characterized in that: The dynamic correction adopts a trial-and-error adjustment method, specifically as follows: S41. Using the amplitude of the matched periodic compensation voltage parameter as the initial value or the updated compensation amplitude as the initial value, set the adjustment step size, adjustment interval, pulsation tolerance, lower limit of amplitude, and upper limit of amplitude. S42. When the motor is in a stable operating phase, and it is detected that no operating condition switching has occurred, the voltage command is not saturated, and the torque feedback signal is valid, based on the initial value, an incremental adjustment is made according to the current adjustment direction and the adjustment step size to obtain the adjusted compensation amplitude. S43. After the adjustment interval, calculate the current torque ripple coefficient and compare it with the torque ripple coefficient before the adjustment to calculate the difference. S44. If the difference exceeds the preset torque ripple tolerance, retain the adjusted compensation amplitude; otherwise, restore the original compensation amplitude and change the probe direction. Dynamic correction is paused when a change in operating condition, voltage command saturation, or invalid torque feedback signal is detected.
7. The method for suppressing torque ripple in a permanent magnet synchronous motor according to claim 6, characterized in that: The compensation amplitude is determined by the following formula: in, For the first The compensation amplitude after the initial trial and adjustment; For the first The current compensation value before the second trial adjustment. To adjust the count index; To adjust the direction; To adjust the step size; This is the lower limit of the amplitude. This is the upper limit of the amplitude. This is the amplitude limiting function.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it causes the processor to perform the steps of the method as described in any one of claims 1 to 7.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the computer program is executed by the processor, it causes the processor to perform the steps of the method as described in any one of claims 1 to 7.
