Method for testing load capacity of high-speed permanent magnet synchronous motor controller
Through the dual closed-loop vector control of speed current and the anti-saturation method PI adjustment of the reverse calculation method, the load capacity test of the high-speed permanent magnet synchronous motor controller is realized, solving the problems of testing difficulties and high cost, and meeting the rapid iteration requirements of controller development. And suitable for a variety of control methods.
Patent Information
- Application Number
- CN202411193000.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-28
AI Technical Summary
The load capacity testing of high-speed permanent magnet synchronous motor controllers is difficult and costly. The traditional testing methods cannot meet the requirements of rapid iteration of controller development. The existing technology ignores controller efficiency and motor efficiency, and fails to comprehensively evaluate load performance.
The speed current double closed-loop vector control is adopted. By injecting current into the d-axis of the motor, the inverse calculation anti-saturation method PI is used to adjust the speed loop and current loop, so that the motor can run stably, and increase the reactive current at the test point to simulate the controller load, realizing Quick test of controller load capacity.
It reduces the testing cost and time, realizes a rapid evaluation of controller performance, is suitable for vector control methods with and without position sensors, and meets the rapid iteration requirements of controller development.
Smart Images

Figure CN119087969A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of motor control, and in particular relates to a method for testing the load capacity of a high-speed permanent magnet synchronous motor controller. Background Art
[0002] High-speed permanent magnet synchronous motors have many advantages such as high power density, fast dynamic response, and low loss, and are widely used in new energy electric vehicles, aerospace, etc. As the motor speed increases and the operating conditions become more complex, the requirements for controllers are becoming more stringent.
[0003] The key technical indicators of the motor controller are output voltage, output current and output frequency. During the controller prototype design phase, it is necessary to quickly test the key electrical indicators of the controller and evaluate the design compliance of the key indicators. This requires testing the load capacity of the controller. The traditional testing method is to install the motor on a special motor load towing platform for testing, but the same test platform is not compatible with different controller and motor testing requirements. It cannot meet the requirements of rapid iteration of controller development. In addition, as the motor speed increases, due to limitations such as bearings, the cost of building a special test bench will increase significantly.
[0004] The Chinese patent with publication number CN108695961A discloses a system for testing a drive motor controller. The patent uses a super capacitor as the input of the drive motor controller. The three-phase voltage output of the controller is connected to a load after passing through a rectifier to test the performance of the drive motor controller. The patent simplifies the load test and saves the tooling cost required to design different motors when they are installed on a towing platform. However, the patent still has the following defects:
[0005] 1. The patent determines that the performance of the drive motor controller is good when the controller input power is consistent with the output power of the controller output three-phase voltage after rectification. This determination condition ignores the controller efficiency and motor efficiency.
[0006] 2. The drive motor controller test system described in this patent still requires relatively high cost to build a load device, and does not meet the requirements of rapid iteration of controller development during testing.
[0007] The Chinese patent with publication number CN114115182A discloses a motor controller test system and method. The motor controller described in the patent is controlled by a position sensor, and the motor controller performance test is performed according to the analog resolver signal test; the test method described in the patent improves the rotor position test accuracy, but the patent still has the following defects:
[0008] 1. The motor controller testing method described in the patent only provides no-load testing of the motor controller, but does not perform load testing, and does not determine the load performance of the motor controller;
[0009] 2. The controller control mode mentioned in the motor controller testing method described in the patent is vector control with position sensor, which is not suitable for vector control without position.
[0010] Therefore, the present invention proposes a method for testing the load capacity of a high-speed permanent magnet synchronous motor controller to solve the problems of difficulty in testing the load capacity of a high-speed permanent magnet synchronous motor controller and high testing cost; it meets the requirements of rapid iteration of controller development, and is suitable for controller load performance testing based on a position sensor vector control method and controller load performance testing based on a position sensorless vector control method. Summary of the invention
[0011] In order to solve the above technical problems, the present invention provides a method for testing the load capacity of a high-speed permanent magnet synchronous motor controller. First, vector control of the permanent magnet synchronous motor is implemented, and the speed loop and the current loop are adjusted by the back-calculation anti-saturation method PI to make the motor run stably at the test point; then, on the basis of vector control, current is injected into the motor d-axis to make the controller output current reach the rated value, and the motor speed is adjusted to make the controller output voltage reach the rated voltage.
[0012] The present invention is achieved through the following technical solutions.
[0013] The present invention provides a method for testing the load capacity of a high-speed permanent magnet synchronous motor controller, comprising the following steps:
[0014] Step S1. Determine the electrical indicators of the controller according to the electrical indicators of the motor at the rated operating point, including the rated speed and the effective value of the phase current;
[0015] Step S2. Calculate the rated speed according to the rated frequency and pole pair number of the motor, and give the motor reference speed according to the test operating point;
[0016] Step S3. Setting the PI controller output saturation value according to the effective value of the phase current during the motor test condition, and setting the integral saturation coefficient;
[0017] Step S4. Calculate the current inner loop PI controller parameters according to the motor electrical parameters and the controller control period, and adjust the speed loop PI controller parameters;
[0018] Step S5. Setting the test target current value;
[0019] Step S6: Run the motor to the set speed, and increase the reactive current I after the motor runs stably. d , test the controller load capacity.
[0020] Furthermore, in step S6, the motor is operated to a set speed and a speed-current dual closed-loop vector control is used to control the high-speed permanent magnet synchronous motor. The control system includes an A / D sampling module, a resolver decoding module, a PI controller and a SVPWM module.
[0021] Furthermore, the control of the high-speed permanent magnet synchronous motor by using the speed and current dual closed-loop vector control in step S6 specifically includes the following steps:
[0022] Step S61. Obtain the two-phase current i of the high-speed permanent magnet synchronous motor through the A / D sampling module a and i b ,i a and i b After coordinate transformation, the two-phase current i in the synchronous rotating coordinate system is obtained d and i q ;
[0023] Step S62: Obtain the motor rotor position θ through the rotational decoding module e The speed n, the speed given and the motor speed feedback are subtracted and then passed through the speed PI controller to obtain the q-axis given current
[0024] Step S63. and i obtained in step 61 q After the difference is made, the q-axis voltage u is obtained through the q-axis current PI controller q ;
[0025] Step S64. D-axis given current After the ramp processing, the d-axis current i d After the difference is passed through the d-axis current PI controller, the d-axis voltage u is obtained d ;
[0026] Step S65.u d and u q After coordinate transformation, the voltage u in the α and β coordinate systems is obtained α and u β ;
[0027] Step S66.u α and u β After modulation by the SVPWM module, 6 PWM signals are generated to control the three-phase inverter to drive the high-speed permanent magnet synchronous motor.
[0028] Furthermore, in step S62, the PI controller processes the signal using a back-calculation anti-saturation method, including the following steps:
[0029] Step S621. The difference between the reference value and the feedback value is used as the input of the proportional link, and the proportional term Up is output after calculation;
[0030] Step S622. The proportional output term Up is used as the input of the integral link, and the anti-saturation method is applied. In the output limiting part, the difference between the input signal (OutPreSat) and the output signal (Out) is input as feedback to the integral link;
[0031] Step S623: Adjust the saturation coefficient to control the integral adjustment desaturation capability to prevent integral saturation and large overshoot.
[0032] Furthermore, in step S64, the PI controller processes the signal using a back-calculation anti-saturation method, including the following steps:
[0033] Step S641. The difference between the reference value and the feedback value is used as the input of the proportional link, and the proportional term Up is output after calculation;
[0034] Step S642. Use the proportional output term Up as the input of the integral link, and apply the reverse calculation anti-saturation method. In the output limiting part, the difference between the input signal (OutPreSat) and the output signal (Out) is input as feedback to the integral link;
[0035] Step S643: Adjust the saturation coefficient to control the integral adjustment desaturation capability to prevent integral saturation and large overshoot.
[0036] Furthermore, in step S61, i a and i b After coordinate transformation, the two-phase current i in the synchronous rotating coordinate system is obtained d and i q , the specific transformation formula is:
[0037]
[0038] Furthermore, in step S65, u d and u q After coordinate transformation, the voltage u in the α and β coordinate systems is obtained α and u β , the specific transformation formula is:
[0039]
[0040] Furthermore, in step 5, the test target current value I is set S Specifically: set the controller test target current according to the rated electrical indicators of the motor. Since the active current I q Smaller, relative to the given value I d can be ignored; according to the formula Ignore the active current I q, the given reactive current value is the effective value of the phase current: I s ≈I d , so the test target current value I S Set to reactive current I d .
[0041] Furthermore, in step S1, the A / D sampling module samples the three-phase current and bus voltage, and performs coordinate transformation on the sampled phase current to obtain the two-phase current i in the synchronous rotating coordinate system. a and i b .
[0042] The beneficial effects of the present invention are as follows: compared with the prior art, the present invention injects current into the motor d axis, so that the current increases when the motor is unloaded, and applies current load to the controller; the reverse calculation anti-saturation method PI controller is used to limit the reactive current I d Output, when testing the rated operating point of the motor, protect the power tube from breakdown; by increasing the motor's operating speed and applying a voltage load to the controller, only a slight adjustment of the controller software is required. The motor does not need to be installed on the towing platform to implement the controller load test, which greatly reduces the time and economic cost of high-speed motor controller testing and speeds up controller development. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is the block diagram of permanent magnet synchronous motor vector control;
[0044] Figure 2 This is a flow chart for the load capacity test of a high-speed permanent magnet synchronous motor controller;
[0045] Figure 3 Main interrupt flow chart for related modules;
[0046] Figure 4 It is the block diagram of the anti-saturation method for back calculation;
[0047] Figure 5 It is the waveform of the motor phase current under no-load condition;
[0048] Figure 6 The motor phase current waveform diagram under the condition of increasing current load; DETAILED DESCRIPTION
[0049] The technical solution of the present invention is further described below, but the scope of protection claimed is not limited to the description.
[0050] The present invention discloses a method for testing the load capacity of a high-speed permanent magnet synchronous motor controller, which adopts a speed and current double closed-loop vector control to control the motor to stably run to a set speed; and applies a reverse calculation anti-saturation method PI controller to limit the reactive current I doutput to prevent current overshoot; when the motor runs stably to the test speed, increase the reactive current output to simulate the three-phase current when the controller is loaded, and test the load capacity of the controller, so as to test the load capacity of the controller without the towing platform, quickly determine the performance of the controller, and achieve the requirement of rapid iteration of controller development. The concept and main principles of the present invention will be described in detail below in conjunction with the accompanying drawings to fully understand the effects and benefits of the present invention.
[0051] The present invention provides a method for testing the load capacity of a high-speed permanent magnet synchronous motor controller, comprising the following steps:
[0052] Step S1. Determine the electrical indicators of the controller according to the electrical indicators of the motor at the rated operating point, including the rated speed and the effective value of the phase current;
[0053] Step S2. Calculate the rated speed according to the rated frequency and pole pair number of the motor, and give the motor reference speed according to the test operating point;
[0054] Step S3. Setting the PI controller output saturation value according to the effective value of the phase current during the motor test condition, and setting the integral saturation coefficient;
[0055] Step S4. Calculate the current inner loop PI controller parameters according to the motor electrical parameters and the controller control period, and adjust the speed loop PI controller parameters;
[0056] Step S5. Setting the test target current value;
[0057] Step S6: Run the motor to the set speed, and increase the reactive current I after the motor runs stably. d , test the controller load capacity.
[0058] like Figure 1 As shown in the figure, it is a block diagram of the vector control of a permanent magnet synchronous motor. The present invention adopts this control method to make the motor run stably at a set speed. Specifically, the flowchart of the program implementation of this method is as follows Figure 3 As shown, the main interrupt process and related modules.
[0059] The A / D samples the three-phase current and bus voltage, and performs coordinate transformation on the sampled phase current to obtain the two-phase current in the synchronous rotating coordinate system;
[0060] Specifically, in the interrupt service subroutine, the resolver decoding function is called to obtain the motor position and speed information through calculation;
[0061] Specifically, the protection module implements overvoltage, overcurrent and overtemperature protection for the motor and controller, and performs periodic cycle detection; when testing the load capacity of the controller, it prevents the controller from overcurrent and burning the power tube;
[0062] Specifically, the PI module uses the anti-saturation method to calculate the speed, active current Iq, and reactive current I d Perform PI adjustment to stabilize the output reference value;
[0063] Specifically, the SVPWM module outputs u according to the coordinate change α and u β Modulation is performed to generate 6 PWM signals to control the three-phase inverter to drive the high-speed permanent magnet synchronous motor.
[0064] like Figure 2 As shown, a flow chart of a high-speed permanent magnet synchronous motor controller load capacity test. The controller load capacity test method described in the first aspect of the invention is based on the speed and current double closed-loop vector control system and the back-calculation anti-saturation method PI controller.
[0065] The specific implementation steps are:
[0066] Step S1: Determine the electrical indicators of the controller according to the electrical indicators of the motor at the rated operating point, such as the rated speed, the effective value of the phase current, etc.;
[0067] Step S2: Calculate the rated speed according to the rated frequency and pole pair number of the motor, and give the motor reference speed according to the test operating point;
[0068] Step S3: setting the PI controller output saturation value according to the effective value of the phase current during the motor test condition, and setting the integral saturation coefficient;
[0069] The larger Kc is, the stronger the integral desaturation effect is. Generally, the integral saturation coefficient is equal to the current loop integral coefficient:
[0070] Kc=Ki
[0071] Step S4: Calculate the current inner loop PI controller parameters according to the motor electrical parameters and the controller control cycle, and adjust the speed loop PI controller parameters;
[0072] Step S5: setting the controller test target current according to the rated working condition electrical index of the motor. Since the active current Iq is small when the motor is unloaded, it can be ignored relative to the given value Id.
[0073]
[0074] Ignoring the active current Iq, the given reactive current value is the effective value of the phase current:
[0075] I s ≈I d ;
[0076] Step S6: Control the motor to run at a given speed and run it stably; if the motor runs unsteadily, adjust the speed loop PI controller parameters to make the motor run stably; set the test target current value to the reactive current I d , increase the reactive current I d , so that the current of the motor increases when it is unloaded, and the current load is applied to the controller. The d-axis current is given as the rated current of the motor, simulating the controller load test to verify the controller's load capacity.
[0077] The control of the high-speed permanent magnet synchronous motor by using the speed and current dual closed-loop vector control in step S6 specifically includes the following steps:
[0078] Step S61: Obtain the motor two-phase current i through A / D sampling a and i b ,i a and i b After coordinate transformation, the two-phase current i in the synchronous rotating coordinate system is obtained d and i q ;
[0079]
[0080] Step S62: Obtain the motor rotor position θ through the rotary transformer e The speed n is the speed given and the motor speed is subtracted, and the q-axis current given is obtained through the speed PI controller.
[0081]
[0082] Step S63: and i obtained in step 1 q After the difference is made, the q-axis voltage u is obtained through the q-axis current PI controller q ;
[0083] Step S64: d-axis current setting After the ramp processing, the d-axis current i d After the difference is passed through the d-axis current PI controller, the d-axis voltage u is obtained d ;
[0084]
[0085] Step S65: d and u q After coordinate transformation, the voltage u in the α and β coordinate systems is obtained α and u β ;
[0086]
[0087] Step S66: α and u β After SVPWM modulation, 6 PWM signals are generated to control the three-phase inverter to drive the high-speed permanent magnet synchronous motor.
[0088] like Figure 4 As shown in FIG. 1 , it is a block diagram of the reverse calculation anti-saturation method, which is used to set the output limit when testing the controller load capacity to prevent the PI controller from causing integral saturation and generating large overshoot when adjusting the reactive current.
[0089] The PI controller used in step S62 and step S64 is specifically implemented as follows:
[0090] Step 1: Take the difference between the given reference value Ref and the feedback value Fdb as the input of the proportional link Up;
[0091] Up = Kp*(Ref-Fdb), where Kp is the proportional gain coefficient;
[0092] Step 2: Use the output Up of the proportional link as the input of the integral link;
[0093] Step 3: In the output limiting part, the difference between the input signal (OutPreSat) and the output signal (Out) is input as feedback to the integral link, namely the saturation error SatErr, and the saturation coefficient (Kc) is adjusted to control the desaturation ability of the integral adjustment to prevent integral saturation and large overshoot;
[0094] Step 4: Use the integral link output Ui' of the previous cycle as the positive feedback input integral link, and obtain the current integral link output Ui by the formula: Ui=Ui'+Ki*Up+Kc*SatErr, where Ki is the integral gain coefficient and SatErr is the saturation error;
[0095] Step 5: Set the output limit (OutMax: maximum limit, OutMin: minimum limit) to perform anti-saturation processing. The limit value is determined based on the electrical parameters of the motor's rated operating point.
[0096] That is: Out = Up + Ui, where
[0097] like Figure 5 The following is the motor phase current waveform under no-load condition: Figure 6 The figure shows the motor phase current waveform under the condition of increasing current load. The reactive current I is set according to the rated working condition of the motor. d , increase the motor phase current waveform under no-load conditions, simulate the controller load condition, so as to test the controller load capacity without the towing platform, quickly determine the controller performance, and achieve the requirement of rapid iteration of controller development.
Claims
1. A method for testing the load capacity of a high-speed permanent magnet synchronous motor controller, characterized in that The following steps are involved: Step S1. Determine the electrical indicators of the controller according to the electrical indicators of the motor at the rated operating point, including the rated speed and the effective value of the phase current; Step S2. Calculate the rated speed according to the rated frequency and pole pair number of the motor, and give the motor reference speed according to the test operating point; Step S3. Setting the PI controller output saturation value according to the effective value of the phase current during the motor test condition, and setting the integral saturation coefficient; Step S4. Calculate the current inner loop PI controller parameters according to the motor electrical parameters and the controller control period, and adjust the speed loop PI controller parameters; Step S5. Setting the test target current value; Step S6: Run the motor to a set speed, increase the reactive current Id after the motor runs stably, and test the load capacity of the controller.
2. The method for testing the load capacity of a high-speed permanent magnet synchronous motor controller according to claim 1, characterized in that: In step S6, the motor is operated to a set speed and a speed-current dual closed-loop vector control is used to control the high-speed permanent magnet synchronous motor. The control system includes an A / D sampling module, a resolver decoding module, a PI controller and a SVPWM module.
3. The method for testing the load capacity of a high-speed permanent magnet synchronous motor controller according to claim 2, characterized in that: The control of the high-speed permanent magnet synchronous motor by using the speed and current dual closed-loop vector control in step S6 specifically includes the following steps: Step S61. Obtain the two-phase current i of the high-speed permanent magnet synchronous motor through the A / D sampling module a and i b ,i a and i b After coordinate transformation, the two-phase current i in the synchronous rotating coordinate system is obtained d and i q ; Step S62: Obtain the motor rotor position θ through the resolver decoding module e The speed n, the speed given and the motor speed feedback are subtracted and then passed through the speed PI controller to obtain the q-axis given current Step S63. and i obtained in step 61 q After the difference is made, the q-axis voltage u is obtained through the q-axis current PI controller q ; Step S64. D-axis given current After the ramp processing, the d-axis current i d After the difference is passed through the d-axis current PI controller, the d-axis voltage u is obtained d ; Step S65.u d and u q After coordinate transformation, the voltage u in the α and β coordinate systems is obtained α and u β ; Step S66.u α and u β After modulation by the SVPWM module, 6 PWM signals are generated to control the three-phase inverter to drive the high-speed permanent magnet synchronous motor.
4. The method for testing the load capacity of a high-speed permanent magnet synchronous motor controller as claimed in claim 3, characterized in that: In step S62, the PI controller processes the signal using a back-calculation anti-saturation method, including the following steps: Step S621. The difference between the reference value and the feedback value is used as the input of the proportional link, and the proportional term Up is output after calculation; Step S622. The proportional output term Up is used as the input of the integral link, and the anti-saturation method is applied. In the output limiting part, the difference between the input signal (OutPreSat) and the output signal (Out) is input as feedback to the integral link; Step S623: Adjust the saturation coefficient to control the integral adjustment desaturation capability to prevent integral saturation and large overshoot.
5. The method for testing the load capacity of a high-speed permanent magnet synchronous motor controller as claimed in claim 3, characterized in that: In step S64, the PI controller processes the signal using a back-calculation anti-saturation method, including the following steps: Step S641. The difference between the reference value and the feedback value is used as the input of the proportional link, and the proportional term Up is output after calculation; Step S642. Use the proportional output term Up as the input of the integral link, and apply the reverse calculation anti-saturation method. In the output limiting part, the difference between the input signal (OutPreSat) and the output signal (Out) is input as feedback to the integral link; Step S643: Adjust the saturation coefficient to control the integral adjustment desaturation capability to prevent integral saturation and large overshoot.
6. The method for testing the load capacity of a high-speed permanent magnet synchronous motor controller as claimed in claim 3, characterized in that: In step S61, i a and i b After coordinate transformation, the two-phase current i in the synchronous rotating coordinate system is obtained d and i q , the specific transformation formula is:
7. The method for testing the load capacity of a high-speed permanent magnet synchronous motor controller as claimed in claim 3, characterized in that: In step S65, u d and u q After coordinate transformation, the voltage u in the α and β coordinate systems is obtained α and u β , the specific transformation formula is:
8. The method for testing the load capacity of a high-speed permanent magnet synchronous motor controller according to claim 1, characterized in that: In step 5, the test target current value IS is set as follows: the controller test target current is set according to the rated electrical indicators of the motor. Since the active current Iq is small when the motor is unloaded, it can be ignored relative to the given value Id; according to the formula Ignore the active current Iq, and test the given reactive current value, which is the effective value of the phase current: I s ≈I d , so the test target current value IS is set to the reactive current Id.
9. The method for testing the load capacity of a high-speed permanent magnet synchronous motor controller according to claim 1, characterized in that: In step S1, the A / D sampling module samples the three-phase current and bus voltage, and performs coordinate transformation on the sampled phase current to obtain the two-phase current i in the synchronous rotating coordinate system. a and i b .
Citation Information
Patent Citations
Motor test system and test method
CN115728636A
High-applicability four-motor loading test bench for testing electric drive system
CN117054873A
Novel test of converter area bearing force device
CN205594101U
Control circuit and method for converters of wind turbines
US20130170254A1
