Brushless direct current motor simulator control method and system based on state switching
By using the state switching control method in the brushless DC motor simulator to determine and switch the phase voltage reconstruction method, the problem of the influence of high-frequency components is solved, the accuracy and stability of the simulator are improved, and the output characteristics are consistent with those of the real motor. .
Patent Information
- Application Number
- CN202410709185.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-10-22
AI Technical Summary
When the existing brushless DC motor simulator simulates the voltage and current characteristics of the actual motor port, the sampled non-conducting phase port voltage contains high-frequency components, resulting in differences between the simulator phase current and the real motor phase current characteristics, affecting the simulation. overall accuracy of the instrument.
A control method based on state switching is adopted to determine whether the non-conducting phase contains high-frequency components by simulating the characteristics of the target motor and the simulator parameter characteristics, and switches the phase voltage reconstruction method to ensure that the reconstructed phase voltage does not contain high-frequency components. Then the reference voltage without high-frequency components is calculated, and the analog side inverter is controlled to reduce the high-frequency components of the non-conducting phase.
It effectively reduces the influence of high-frequency components, ensures the operating accuracy and stability of the motor simulator under different working conditions, makes the voltage and current characteristics of the analog output consistent with the target motor, and improves the simulation accuracy.
Smart Images

Figure CN118819002A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of power electronics, and in particular to a brushless DC motor simulator control method and system based on state switching. Background Art
[0002] Before a motor drive is put on the market, it needs to be debugged to test the effectiveness of its control strategy. However, the test process of the motor drive control system is quite complicated. If a real motor is used for testing, it often faces the problems of high cost, long cycle and low flexibility. Since different types of motor drives need to be tested with different types of motors and their loads, the test cost is high and the test steps are cumbersome. In order to solve these problems, a motor simulator composed of power electronic converters and numerical models is generally used to simulate the real motor and its load, and the motor drive system is tested instead of the real motor, realizing the electric power interaction with the real motor drive. Compared with the actual motor and mechanical load, the various motor body parameters and mechanical load torque of the motor simulator are pure digital quantities, which can be set and modified manually, so that they can be used for the adaptability experiment of the motor drive, which is convenient for testing the electrical port characteristics of motors with various parameters driven by the motor drive. The motor simulator simulates the actual motor behavior in the development of the motor drive, and is used to test the hardware performance, verify the control algorithm, and simulate the extreme working conditions, which greatly shortens the development cycle, reduces the testing cost, and improves the reliability of the motor simulator.
[0003] The control strategies of motor simulators are divided into two categories, VTC type and CTV type. The VTC type adopts the current closed-loop control method, which samples the output voltage of the motor driver to be tested and inputs the sampled data into the motor mathematical model for calculation, thereby obtaining the command current of the simulated target motor. At the same time, the sampled current is closed-loop controlled to ensure that the output current of the simulation system can closely follow the changes in the command current.
[0004] The CTV type avoids complex closed-loop control, and obtains the command voltage of the simulation system by sampling the output current of the motor driver to be tested and solving the sampled data through the motor model. The command voltage is then directly output through PWM modulation to ensure that the voltage and current characteristics of the motor simulator are consistent with those of the target motor.
[0005] When existing brushless DC motor simulators simulate the actual motor port voltage and current characteristics, the sampled non-conducting phase port voltage contains a high-frequency component, which is inconsistent with the port voltage of the actual motor. When solving the subsequent motor model, this high-frequency component will always exist, resulting in differences between the simulator phase current and the actual motor phase current characteristics, affecting the overall accuracy of the simulator.
[0006] Theoretically, it is believed that no current flows through the non-conducting phase of the brushless DC motor simulator, and no high-frequency components are generated except the switching frequency of the inverter on the simulation side. However, due to the calculation method of the reconstructed phase voltage, when the sampling terminal voltage contains high-frequency components, the calculated reconstructed phase voltage, reference voltage, reference current and other parameters also contain high-frequency components. When the non-conducting phase terminal voltage meets the forward conduction condition of the inverter diode, the diode is turned on, thereby generating a pulsating current in the non-conducting phase. This pulsating current affects the accuracy of the simulator, so it is necessary to reduce high-frequency jitter so that the freewheeling current of the non-conducting phase is reduced during the conduction of the two phases. Summary of the invention
[0007] In view of the above-mentioned problems, the present invention is proposed.
[0008] Therefore, the technical problems solved by the present invention are:
[0009] A brushless DC motor simulator control method based on state switching is provided. According to the characteristics of the simulated target motor and the parameter characteristics of the simulator, a non-conducting phase judgment method based on predicted current is proposed. According to the judgment result, the phase voltage reconstruction method is correctly switched so that the reconstructed phase voltage does not contain high-frequency components. The phase voltage of the three-phase output port of the motor simulator is calculated and used as a reference. The reference voltage calculation method is switched according to the judgment result to obtain a three-phase reference voltage without high-frequency components of the non-conducting phase. A switching signal is generated according to the reference voltage to control the three-phase inverter on the simulation side, thereby reducing the high-frequency components of the non-conducting phase of the simulator.
[0010] In order to solve the above technical problems, the present invention provides the following technical solutions: a brushless DC motor simulator control method based on state switching, comprising:
[0011] Input basic data into the simulation side controller, use the voltage sampling module to collect the three-phase output port terminal voltage of the motor driver, and use the current sampling module to collect the three-phase current of the main power circuit of the motor simulator;
[0012] The three-phase current of the main power circuit of the motor simulator is input into the torque calculation module, and the electromagnetic torque calculated by the torque calculation module and the external load torque are input into the motion equation and the back electromotive force calculation module to obtain the three-phase back electromotive force of the simulated target motor;
[0013] Input the three-phase output port terminal voltage of the motor driver and the three-phase back electromotive force of the simulated target motor into the phase voltage reconstruction module to obtain the three-phase reconstructed phase voltage of the brushless DC motor;
[0014] The three-phase back electromotive force of the simulated target motor and the three-phase reconstructed phase voltage of the brushless DC motor are input into the reference current real-time solution module to solve the three-phase reference current of the simulated target motor in real time;
[0015] The three-phase output port terminal voltage, three-phase back electromotive force and simulated target motor reference current of the motor driver are input into the non-conducting phase judgment module to judge whether there is a non-conducting phase in the three phases and whether the non-conducting phase contains high-frequency components;
[0016] The judgment result is input into the phase voltage reconstruction module to switch the phase voltage reconstruction mode to obtain the three-phase reconstructed phase voltage without high-frequency components;
[0017] The reference voltage calculation module calculates the reference voltage based on the three-phase current of the main power circuit, the three-phase reconstructed phase voltage, the three-phase back electromotive force, the three-phase reference current of the simulated target motor, the judgment result, the simulated target motor voltage equation and the main power circuit equation of the motor simulator, inputs the reference voltage into the PWM module to generate a switching signal, and inputs it into the three-phase inverter to make the port voltage and current characteristics of the motor simulator consistent with the port voltage and current characteristics of the simulated target motor.
[0018] As a preferred scheme of the brushless DC motor simulator control method based on state switching described in the present invention, the basic data input into the simulation side controller includes the simulated target motor type, the rated voltage of the simulated target motor, the rated current of the simulated target motor, the rated power of the simulated target motor, the electrical and mechanical time constants of the simulated target motor, the load torque model, the three-phase inductor filter parameters and the switching signal of the simulation side inverter.
[0019] As a preferred solution of the brushless DC motor simulator control method based on state switching described in the present invention, wherein: the three-phase back electromotive force of the simulated target motor and the three-phase reconstructed phase voltage of the brushless DC motor are input into the reference current real-time solution module, and the real-time solution of the three-phase reference current of the simulated target motor includes, the formula is expressed as:
[0020]
[0021] in, Represents the three-phase reference current, i a(k0 、i b(k) 、i c(k) Indicates the three-phase sampling current; u an (k),u bn (k),u cn (k) represents the three-phase reconstructed phase voltage, e a (k), e b (k), e c (k) represents the three-way back electromotive force, T d represents the simulation step size of real-time solution, k=1,2,3,...,n represents kT d The value at the moment, L f and R f Represents the three-phase inductor filter parameters.
[0022] As a preferred solution of the brushless DC motor simulator control method based on state switching described in the present invention, wherein: the three-phase output port terminal voltage of the motor driver, the three-phase back electromotive force and the simulated target motor reference current are input into the non-conducting phase judgment module to judge whether there is a non-conducting phase in the three phases, and whether the non-conducting phase contains high-frequency components, including: when it is detected that no current flows through a phase in the three phases, this phase is a non-conducting phase, and the terminal voltage contains high-frequency components;
[0023] Then judgment condition 1: the reference current value of a certain phase The polarity changes;
[0024] When judgment condition 1 is met, it is determined that one of the three phases is a non-conducting phase and the terminal voltage contains a high-frequency component, and the judgment flag f1 is set to 1;
[0025] When it is detected that a current flows through the non-conducting phase, the terminal voltage of the non-conducting phase does not contain high-frequency components. Let P and T represent the conducting phase, and X represents the non-conducting phase;
[0026] Then judgment condition 2: In the two-phase conduction interval, when the three-phase terminal voltages are all 0 and the back electromotive force of the non-conducting phase is less than 0, that is, u Pg =0,u Tg =0,u Xg =0,e X <0, it is determined that the non-conducting phase does not contain high-frequency components;
[0027] Then judgment condition 3: in the phase change interval, when the three-phase terminal voltage meets u Pg =u DC or 0,u Tg =u DC or 0,u Xg =u DC Or 0, it is determined that the non-conducting phase does not contain high-frequency components;
[0028] Among them, u Pg 、u Tg and u Xg Indicates the three-phase terminal voltage on the driver side, e X represents the back electromotive force of X, u DC Indicates the DC bus voltage on the drive side;
[0029] When judgment condition 2 is met, it is determined that the voltage at the non-conducting phase terminal does not contain a high-frequency component, and the judgment flag f1 is set to 0;
[0030] When judgment condition 3 is met, it is determined that the voltage at the non-conducting phase terminal does not contain a high-frequency component, and the judgment flag f1=0.
[0031] As a preferred solution of the brushless DC motor simulator control method based on state switching described in the present invention, wherein: the judgment result is input into the phase voltage reconstruction module, and the phase voltage reconstruction mode is switched to obtain a three-phase reconstructed phase voltage without high-frequency components, including: if the non-conducting phase contains high-frequency components, it is a two-phase conducting state, and the three-phase reconstructed phase voltage is calculated using a two-phase conducting mode; if the non-conducting phase does not contain high-frequency components, it is a three-phase conducting state, and the three-phase reconstructed phase voltage is calculated using a three-phase conducting mode;
[0032] The calculation formula of the three-phase conduction mode is expressed as:
[0033]
[0034] Among them, u an 、u bn and u cn represents the reconstructed phase voltage calculated from the three-phase conduction state, u ag 、u bg and u g Indicates the three-phase terminal voltage on the driver side, u ng Indicates the simulated target motor neutral point potential, e x It represents the back electromotive force of the x-phase of the simulated target motor, where x is the A, B, or C phase;
[0035] Assuming that the P and T phases are the conducting phases and the X phase is the non-conducting phase, the calculation formula for the two-phase conduction mode is expressed as:
[0036]
[0037] Among them, u pN 、u TN and u XN represents the reconstructed phase voltage calculated in the two-phase conduction state, u Pg and u Tg It represents the voltage at the output port of the two conducting phases P and T, e p 、e T It represents the back electromotive force of the two conducting phases P and T of the simulated target motor, e x Represents the back electromotive force of the non-conducting phase.
[0038] As a preferred solution of the brushless DC motor simulator control method based on state switching described in the present invention, the reference voltage calculation module calculates the reference voltage according to the three-phase current of the main power circuit, the three-phase reconstructed phase voltage, the three-phase back electromotive force, the three-phase reference current of the simulated target motor, the judgment result, the simulated target motor voltage equation and the main power circuit equation of the motor simulator. If the three-phase reconstructed phase voltage is calculated by the three-phase conduction mode, the reference voltage calculation formula of the three-phase conduction state is expressed as:
[0039]
[0040] Among them, u un 、u vn and u wn Indicates the reference voltage calculated from the three-phase conduction state, u an 、u bn and u cn represents the reconstructed phase voltage calculated from the three-phase conduction state, i a 、i b and i c represents the three-phase current of the main power circuit of the motor simulator, i a_ref 、i b_ref and i c_ref Indicates the three-phase reference current calculated in real time, L f and R f represents the three-phase inductor filter parameters, L represents the inductance value of each phase of the simulated target motor, R represents the resistance value of each phase of the three-phase simulated target motor, e a 、e b and e c To simulate the three-way back electromotive force of the target motor, T d For walking distance.
[0041] As a preferred solution of the brushless DC motor simulator control method based on state switching described in the present invention, wherein: the reference voltage calculation module calculates the reference voltage according to the three-phase current of the main power circuit, the three-phase reconstructed phase voltage, the three-phase back electromotive force, the three-phase reference current of the simulated target motor, the judgment result, the simulated target motor voltage equation and the main power circuit equation of the motor simulator, and also includes, if the three-phase reconstructed phase voltage is calculated by a two-phase conduction mode, setting the P and T two phases as the conduction phases, the X phase as the non-conduction phase, and the reference voltage of the two-phase conduction state, the formula is expressed as:
[0042]
[0043] Among them, u' pn 、u' Tn and u' Xn It represents the reference voltage calculated in the two-phase conduction state, u Pn 、u Tn represents the reconstructed phase voltage of the P and T two-phase conduction state calculated, e p 、e T It represents the back electromotive force of the two conducting phases P and T of the simulated target motor, e x represents the back electromotive force of the non-conducting phase, i p 、i T Represents the two-phase current of the main power circuit P and T of the motor simulator, i P_ref and i T_refIt represents the real-time calculated reference current of the P and T two-phase conduction.
[0044] A distribution network self-healing strategy optimization system based on an optimization algorithm using any method described in the present invention, wherein:
[0045] The analog side controller is the input interface of the whole system and is used to receive the type, parameters, load torque model and three-phase inductor filter parameters of the simulated target motor;
[0046] Voltage sampling module, which is responsible for collecting the voltage at the three-phase output port of the motor driver;
[0047] Current sampling module, which collects the three-phase current of the main power circuit of the motor simulator;
[0048] The torque calculation module calculates the electromagnetic torque according to the input three-phase current;
[0049] The motion equation combines the electromagnetic torque, external load torque and simulated target motor parameters to calculate the electrical angular velocity and electrical angle;
[0050] The back electromotive force calculation module calculates the three-dimensional back electromotive force of the simulated target motor according to the electrical angular velocity and electrical angle;
[0051] A phase voltage reconstruction module calculates the three-phase reconstructed phase voltage of the brushless DC motor according to the voltage equation of the simulated target motor;
[0052] The reference current real-time solution module uses the calculated back electromotive force and reconstructed phase voltage to solve the simulated target motor reference current in real time;
[0053] A non-conducting phase judgment module, based on the predicted current value, judges which phase is in the non-conducting phase and whether it contains high-frequency components;
[0054] The reference voltage calculation module calculates the reference voltage based on various parameters, such as the three-phase current of the main power circuit, the three-phase reconstructed phase voltage, the three-phase back electromotive force, the simulated target motor reference current, the non-conducting phase judgment result, etc.;
[0055] The PWM module generates a switching signal according to the calculated reference voltage;
[0056] The three-phase inverter receives the switching signal generated by the PWM module and controls the port voltage and current characteristics of the motor simulator to simulate the behavior of the target motor.
[0057] A computer device comprises: a memory and a processor; the memory stores a computer program, wherein the processor implements the steps of any one of the methods of the present invention when executing the computer program.
[0058] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of any one of the methods of the present invention.
[0059] Beneficial effects of the present invention: The brushless DC motor simulator control method based on state switching provided by the present invention effectively reduces the influence of such high-frequency components by improving the phase voltage reconstruction method and the reference voltage calculation strategy. The control system is allowed to automatically judge and switch the corresponding voltage reconstruction and control strategies according to the current motor state and electrical parameters. This state switching mechanism enables the motor simulator to maintain a high degree of operational accuracy and stability under different working conditions. By accurately calculating and adjusting the phase voltage and reference voltage of the three-phase output port of the motor simulator, it is ensured that the voltage and current characteristics of the simulated output are consistent with the actual behavior of the target motor. Especially in the non-conducting phase of the motor, the accuracy of the simulation is further improved by ensuring the voltage output without high-frequency components. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0061] Figure 1 An overall flow chart of a brushless DC motor simulator control method based on state switching provided by the first embodiment of the present invention;
[0062] Figure 2 A structural block diagram of multiple algorithms under the same task request in a brushless DC motor simulator control method based on state switching provided by a second embodiment of the present invention;
[0063] Figure 3 A flow chart showing the determination of different repetition times of a brushless DC motor simulator control method based on state switching provided in the second embodiment of the present invention. DETAILED DESCRIPTION
[0064] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0065] Example 1
[0066] Reference Figure 1 , is an embodiment of the present invention, and provides a brushless DC motor simulator control method based on state switching, comprising:
[0067] S1: Input basic data into the simulation side controller, use the voltage sampling module to collect the voltage of the three-phase output port of the motor driver, and use the current sampling module to collect the three-phase current of the main power circuit of the motor simulator. The basic data input into the simulation side controller includes the simulated target motor type, the rated voltage of the simulated target motor, the rated current of the simulated target motor, the rated power of the simulated target motor, the electrical and mechanical time constants of the simulated target motor, the load torque model, the three-phase inductor filter parameters, and the switching signal of the simulated side inverter.
[0068] By simulating different motor and load conditions, the control strategy of the motor drive can be tested and verified to ensure its performance and reliability under various operating conditions. During the development process, the motor and load parameters can be adjusted to optimize the design of the motor drive to achieve the best performance. In actual applications, the motor may encounter extreme conditions, such as overload, underload, etc. By simulating these conditions, problems can be discovered and solved in advance. Using a simulator can avoid the costs and risks of using real motors for testing, such as purchasing, maintaining, and replacing motors. The simulator can quickly create and adjust test conditions, reduce the time for test preparation and adjustment, and improve test efficiency. By accurately controlling the simulation environment, the electrical and mechanical characteristics of the real motor can be simulated more accurately, thereby verifying and optimizing the control strategy of the motor drive and improving its accuracy and reliability. The simulator can adapt to different types of motors and load conditions, providing a scalable test platform that supports a variety of application scenarios.
[0069] S2: Input the three-phase current of the main power circuit of the motor simulator into the torque calculation module, input the electromagnetic torque calculated by the torque calculation module and the external load torque into the motion equation and back electromotive force calculation module to obtain the three-phase back electromotive force of the simulated target motor.
[0070] Torque calculation module: The torque calculation module calculates the electromagnetic torque T according to the input three-phase current. c Electromagnetic torque is the torque generated by electromagnetic induction under ideal conditions. It is one of the important indicators of motor performance. c and external load torque T L , the motion equation calculates the electrical angular velocity ω according to the motor model c and electrical angle θ c These parameters reflect the rotation speed and position of the motor. According to the electrical angular velocity ω c and electrical angle θ c The back electromotive force calculation module calculates the three-dimensional back electromotive force e of the simulated target motor.a 、e b and e c Back EMF is the electromotive force generated when the motor rotates, which reflects the position and speed of the motor rotor.
[0071] By building an accurate motor model, the operating state of the motor can be simulated more realistically, improving the accuracy of testing and verification. The parameters in the motor model can be adjusted to simulate different motor and load conditions, providing greater flexibility for testing motor drives.
[0072] S3: Input the three-phase output port terminal voltage of the motor driver and the three-phase back electromotive force of the simulated target motor into the phase voltage reconstruction module to obtain the three-phase reconstructed phase voltage of the brushless DC motor.
[0073] In order to accurately simulate the three-phase voltage characteristics of the brushless DC motor, it is ensured that the motor simulator can accurately simulate the operating state of the real motor. The correctness of the reconstructed phase voltage is crucial for the subsequent reference voltage calculation and PWM control, because they directly affect the output characteristics of the motor simulator. By reconstructing the phase voltage, the present invention can improve the overall accuracy of the simulator, support extreme working condition testing, reduce testing costs, and enhance the applicability of the simulator.
[0074] S4: The three-phase back electromotive force of the simulated target motor and the three-phase reconstructed phase voltage of the brushless DC motor are input into the reference current real-time solution module to solve the three-phase reference current of the simulated target motor in real time.
[0075] The formula is:
[0076]
[0077] in, Represents the three-phase reference current, i a(k) 、i b(k) 、i c(k) Indicates the three-phase sampling current; u an (k),u bn (k),u cn (k) represents the three-phase reconstructed phase voltage, e a (k), e b (k), e c (k) represents the three-way back electromotive force, T d represents the simulation step size of real-time solution, k=1,2,3,...,n represents kT d The value at the moment, L f and R f Represents the three-phase inductor filter parameters.
[0078] Maximize the accuracy of motor simulation. By accurately simulating the current response of the motor, you can ensure that the simulator provides accurate and reliable data support during testing and development. Real-time current calculation allows for multiple test scenarios to be quickly performed, improving development efficiency and allowing for a wider range of tests in a shorter time. Using a motor simulator for comprehensive performance evaluation and fault simulation can ensure that the design meets all predetermined performance standards and safety standards, enhancing the market competitiveness of the product.
[0079] By comprehensively using three-phase back EMF and reconstructed phase voltage to solve the current in real time, not only the accuracy of motor simulation is improved, but also the overall efficiency and effect of motor drive system development and testing are enhanced. This method provides important technical support for motor design and control, and is of great significance to promoting the innovation and application of motor technology.
[0080] S5: Input the three-phase output port terminal voltage, three-phase back electromotive force and simulated target motor reference current of the motor driver into the non-conducting phase judgment module to determine whether there is a non-conducting phase in the three phases and whether the non-conducting phase contains a high-frequency component.
[0081] When it is detected that there is no current flowing through one of the three phases, this phase is a non-conducting phase, and the terminal voltage is high;
[0082] Then judgment condition 1: the reference current value of a certain phase The polarity changes;
[0083] When judgment condition 1 is met, it is determined that one of the three phases is a non-conducting phase and the terminal voltage contains a high-frequency component, and the judgment flag f1 is set to 1;
[0084] When it is detected that the non-conducting phase has current flowing through it, the terminal voltage of the non-conducting phase does not contain high-frequency components. Let P and T be the conducting phases, and X be the non-conducting phase;
[0085] Then judgment condition 2: In the two-phase conduction interval, when the three-phase terminal voltages are all 0 and the back electromotive force of the non-conducting phase is less than 0, that is, u Pg =0,u Tg =0,u Xg =0,e X <0, it is determined that the non-conducting phase does not contain high-frequency components;
[0086] Then judgment condition 3: in the phase change interval, when the three-phase terminal voltage meets u Pg =u DC or 0,u Tg =u DC or 0,u Xg =u DC Or 0, it is determined that the non-conducting phase does not contain high-frequency components;
[0087] Among them, u Pg 、u Tg and u Xg Indicates the three-phase terminal voltage on the driver side, e X represents the back electromotive force of X, u DC Indicates the DC bus voltage on the drive side;
[0088] When judgment condition 2 is met, it is determined that the voltage at the non-conducting phase terminal does not contain a high-frequency component, and the judgment flag f1 is set to 0;
[0089] When judgment condition 3 is met, it is determined that the voltage at the non-conducting phase terminal does not contain a high-frequency component, and the judgment flag f1=0.
[0090] By accurately determining the presence of non-conducting phases and whether they contain high-frequency components, the voltage and current output by the simulator can be ensured to more accurately mimic the behavior of real motors. This accuracy is key to testing and verifying motor control strategies. High-frequency components often introduce electrical noise and interference, affecting the stability of the simulation system and the performance of the motor control system. By identifying and processing these high-frequency components, this interference can be reduced and the overall stability of the system can be improved. Correctly processing the high-frequency components of non-conducting phases in the simulator helps optimize the performance of the motor drive, especially under high-speed and high-rate operating conditions. Accurate non-conducting phase processing enables motor simulators to support a wide range of application testing from small household motors to large industrial motors, each of which may involve unique electrical and mechanical characteristics. The ability to accurately simulate and process high-frequency components of non-conducting phases provides a foundation for studying new motor technologies and exploring advanced motor control methods, thereby promoting technological progress throughout the industry.
[0091] S6: Input the judgment result to the phase voltage reconstruction module, switch the phase voltage reconstruction mode, and obtain the three-phase reconstructed phase voltage without high-frequency components.
[0092] If the non-conducting phase contains high-frequency components, it is a two-phase conducting state, and the three-phase reconstructed phase voltage is calculated using the two-phase conducting method; if the non-conducting phase does not contain high-frequency components, it is a three-phase conducting state, and the three-phase reconstructed phase voltage is calculated using the three-phase conducting method;
[0093] The calculation formula of the three-phase conduction mode is expressed as:
[0094]
[0095] Among them, u an 、u bn and u cn represents the reconstructed phase voltage calculated from the three-phase conduction state, u ag 、u bg and u g Indicates the three-phase terminal voltage on the driver side, ung Indicates the simulated target motor neutral point potential, e x Indicates the back electromotive force of the x-phase of the simulated target motor, where x represents the A, B, and C phases;
[0096] Assuming that the P and T phases are the conducting phases and the X phase is the non-conducting phase, the calculation formula for the two-phase conduction mode is expressed as:
[0097]
[0098] Among them, u pN 、u TN and u XN represents the reconstructed phase voltage calculated in the two-phase conduction state, u Pg and u Tg It represents the voltage at the output port of the two conducting phases P and T, e p 、e T It represents the back electromotive force of the two conducting phases P and T of the simulated target motor, e x Represents the back electromotive force of the non-conducting phase.
[0099] By accurately reconstructing the voltage without high-frequency components, the overall accuracy of motor simulation can be improved, especially in voltage-sensitive tests and applications. For the development and testing of new motor drive technologies, it is critical to be able to provide stable output without high-frequency interference. This enables the simulator to be widely used in more research and development scenarios. Without the interference of high-frequency components, the testing of control strategies can better reflect the actual control effect, thereby helping engineers optimize motor control algorithms. Eliminating high-frequency components not only improves the simulation quality, but also enhances the stability and reliability of the system during long-term operation and reduces potential failures due to electrical noise.
[0100] S7: The reference voltage calculation module calculates the reference voltage according to the three-phase current of the main power circuit, the three-phase reconstructed phase voltage, the three-phase back electromotive force, the three-phase reference current of the simulated target motor, the judgment result, the simulated target motor voltage equation and the main power circuit equation of the motor simulator, inputs the reference voltage into the PWM module to generate a switching signal, and inputs it into the three-phase inverter, so that the port voltage and current characteristics of the motor simulator are consistent with the port voltage and current characteristics of the simulated target motor.
[0101] If the three-phase reconstructed phase voltage is calculated by the three-phase conduction method, the reference voltage calculation formula of the three-phase conduction state is expressed as:
[0102]
[0103] Among them, u un 、u vn and u wn Indicates the reference voltage calculated from the three-phase conduction state, u an、u bn and u cn represents the reconstructed phase voltage calculated from the three-phase conduction state, i a 、i b and i c represents the three-phase current of the main power circuit of the motor simulator, i a_ref 、i b_ref and i c_ref Indicates the three-phase reference current calculated in real time, L f and R f represents the three-phase inductor filter parameters, L represents the inductance value of each phase of the simulated target motor, R represents the resistance value of each phase of the three-phase simulated target motor, e a 、e b and e c Represents the three-phase back electromotive force of the simulated target motor, T d Indicates the length of the walk.
[0104] The reference voltage calculation module calculates the reference voltage according to the three-phase current of the main power circuit, the three-phase reconstructed phase voltage, the three-phase back electromotive force, the three-phase reference current of the simulated target motor, the judgment result, the simulated target motor voltage equation and the main power circuit equation of the motor simulator. The reference voltage also includes, if the three-phase reconstructed phase voltage is calculated by a two-phase conduction mode, setting the P and T two phases as the conduction phases and the X phase as the non-conduction phase, the reference voltage of the two-phase conduction state is expressed as follows:
[0105]
[0106] Among them, u' pn 、u' Tn and u' Xn It represents the reference voltage calculated in the two-phase conduction state, u Pn 、u Tn represents the reconstructed phase voltage of the P and T two-phase conduction state calculated, e p 、e T It represents the back electromotive force of the two conducting phases P and T of the simulated target motor, e x represents the back electromotive force of the non-conducting phase, i p 、i T Represents the two-phase current of the main power circuit P and T of the motor simulator, i P_ref and i T_ref It represents the real-time calculated reference current of the P and T two-phase conduction.
[0107] The reference voltage calculation module allows accurate simulation of the voltage and current response of the target motor, calculating the most suitable reference voltage by combining various input data (such as current, voltage, back EMF, etc.) and the specific needs of the simulation target. This precise voltage control helps achieve more detailed motor performance adjustment and control. By inputting the accurately calculated reference voltage hall into the PWM module and the three-phase inverter, it can be ensured that the voltage and current output by the simulator are highly consistent with the actual motor, providing accurate simulation results. This is essential for testing the performance of motor drives and control strategies in real applications. Fast and accurate reference voltage calculation and adjustment helps improve the dynamic responsiveness of the motor simulation system, enabling it to instantly reflect the impact of load changes or control strategy adjustments. Using a motor simulator for system testing and verification can significantly reduce the time from design to production of products. Accurate simulation results help to discover and solve potential problems before product release, reducing the risk of failure in the market. Accurate motor simulation can reduce the need for testing actual hardware, especially in the early stages, thereby reducing testing costs. Optimizing system design through simulation rather than actual operation can avoid the high cost of physical test facilities and equipment wear.
[0108] On the other hand, this embodiment also provides a distribution network self-healing strategy optimization system based on an optimization algorithm, which includes:
[0109] The analog side controller is the input interface of the whole system and is used to receive the type, parameters, load torque model and three-phase inductor filter parameters of the simulated target motor;
[0110] Voltage sampling module, which is responsible for collecting the voltage at the three-phase output port of the motor driver;
[0111] Current sampling module, which collects the three-phase current of the main power circuit of the motor simulator;
[0112] The torque calculation module calculates the electromagnetic torque according to the input three-phase current;
[0113] The motion equation combines the electromagnetic torque, external load torque and simulated target motor parameters to calculate the electrical angular velocity and electrical angle;
[0114] The back electromotive force calculation module calculates the three-dimensional back electromotive force of the simulated target motor according to the electrical angular velocity and electrical angle;
[0115] A phase voltage reconstruction module calculates the three-phase reconstructed phase voltage of the brushless DC motor according to the voltage equation of the simulated target motor;
[0116] The reference current real-time solution module uses the calculated back electromotive force and reconstructed phase voltage to solve the simulated target motor reference current in real time;
[0117] A non-conducting phase judgment module, based on the predicted current value, judges which phase is in the non-conducting phase and whether it contains high-frequency components;
[0118] The reference voltage calculation module calculates the reference voltage based on various parameters, such as the three-phase current of the main power circuit, the three-phase reconstructed phase voltage, the three-phase back electromotive force, the simulated target motor reference current, the non-conducting phase judgment result, etc.;
[0119] The PWM module generates a switching signal according to the calculated reference voltage;
[0120] The three-phase inverter receives the switching signal generated by the PWM module and controls the port voltage and current characteristics of the motor simulator to simulate the behavior of the target motor.
[0121] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0122] The logic or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or in conjunction with such instruction execution systems, apparatuses or devices. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, apparatus or device, or in conjunction with such instruction execution systems, apparatuses or devices.
[0123] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0124] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0125] Example 2
[0126] Simulate motor operation at specific parameters to allow accurate performance evaluation during the development phase without actually building the motor.
[0127] The experimental environment was set in a control room with a temperature of 25°C and a humidity of 45%.
[0128] Simulator Setup A simulator with a high-precision sensor was used with a sensor accuracy of ±0.01%.
[0129] The motor driver is a commonly used model on the market with a standard three-phase output function.
[0130] Use equivalent load to simulate different operating conditions, and the load parameters are adjustable.
[0131] Enter the basic motor data in the analog side controller, such as rated voltage, rated current, etc.
[0132] The voltage sampling module is used to accurately measure the three-phase output port voltage of the motor driver.
[0133] Use the current sampling module to collect the three-phase current of the main power circuit of the motor simulator.
[0134] The collected three-phase current data is input into the torque calculation module to calculate the electromagnetic torque and external load torque. The calculated torque data is input into the motion equation and back-EMF calculation module to further obtain the three-phase back-EMF of the simulated target motor. The output voltage of the motor driver and the calculated back-EMF data are input into the phase voltage reconstruction module to reconstruct the three-phase reconstructed phase voltage of the brushless DC motor. The reconstructed phase voltage and back-EMF are input into the reference current real-time solution module to solve the three-phase reference current of the simulated target motor in real time. The output voltage, back-EMF and reference current are input into the non-conducting phase judgment module to analyze the non-conducting phase in the three phases and whether it contains high-frequency components.
[0135] According to the judgment results, the phase voltage reconstruction module adjusts the reconstruction method to eliminate high-frequency components. The reference voltage calculation module integrates all data and calculates the final reference voltage, which is converted into a specific switching signal through the PWM module to control the three-phase inverter to ensure that the output voltage and current characteristics are completely consistent with the simulated target motor. The experimental results are shown in Table 1.
[0136] Table 1 Experimental data table
[0137]
[0138] It can be observed that under different types of motors (type A and type B) and different test conditions, the motor simulator can accurately simulate the corresponding voltage and current characteristics, as well as the changes in electromagnetic torque and load torque. In particular, when the electromagnetic torque and load torque increase (such as Experiments 3 and 6), the simulator successfully adjusts the output voltage to match the actual operating state of the simulated target motor.
[0139] These data demonstrate the creativity and novel effects of the invention in practical applications. By precisely controlling and adjusting the voltage reconstruction method, the high-frequency component is successfully eliminated, and the accuracy and reliability of the motor simulation are improved. Compared with the prior art, the present invention can provide more accurate and stable simulation results, significantly improving the efficiency of motor testing and development. This not only demonstrates the practicality of the invention, but also reflects its application prospects in the field of motor control and testing, and has important academic value and market potential.
[0140] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should be included in the scope of the claims of the present invention.
Claims
1. A brushless DC motor simulator control method based on state switching, characterized in that: include: Input basic data into the simulation side controller, use the voltage sampling module to collect the three-phase output port terminal voltage of the motor driver, and use the current sampling module to collect the three-phase current of the main power circuit of the motor simulator; The three-phase current of the main power circuit of the motor simulator is input into the torque calculation module, and the electromagnetic torque calculated by the torque calculation module and the external load torque are input into the motion equation and the back electromotive force calculation module to obtain the three-phase back electromotive force of the simulated target motor; Input the three-phase output port terminal voltage of the motor driver and the three-phase back electromotive force of the simulated target motor into the phase voltage reconstruction module to obtain the three-phase reconstructed phase voltage of the brushless DC motor; The three-phase back electromotive force of the simulated target motor and the three-phase reconstructed phase voltage of the brushless DC motor are input into the reference current real-time solution module to solve the three-phase reference current of the simulated target motor in real time; The three-phase output port terminal voltage, three-phase back electromotive force and simulated target motor reference current of the motor driver are input into the non-conducting phase judgment module to judge whether there is a non-conducting phase in the three phases and whether the non-conducting phase contains high-frequency components; The judgment result is input into the phase voltage reconstruction module to switch the phase voltage reconstruction mode to obtain the three-phase reconstructed phase voltage without high-frequency components; The reference voltage calculation module calculates the reference voltage based on the three-phase current of the main power circuit, the three-phase reconstructed phase voltage, the three-phase back electromotive force, the three-phase reference current of the simulated target motor, the judgment result, the simulated target motor voltage equation and the main power circuit equation of the motor simulator, inputs the reference voltage into the PWM module to generate a switching signal, and inputs it into the three-phase inverter to make the port voltage and current characteristics of the motor simulator consistent with the port voltage and current characteristics of the simulated target motor.
2. The brushless DC motor simulator control method based on state switching according to claim 1, characterized in that: The basic data input into the analog side controller includes the simulated target motor type, the rated voltage of the simulated target motor, the rated current of the simulated target motor, the rated power of the simulated target motor, the electrical and mechanical time constants of the simulated target motor, the load torque model, the three-phase inductor filter parameters and the switching signal of the analog side inverter.
3. The brushless DC motor simulator control method based on state switching as claimed in claim 2, characterized in that: The three-phase back electromotive force of the simulated target motor and the three-phase reconstructed phase voltage of the brushless DC motor are input into the reference current real-time solution module. The real-time solution of the three-phase reference current of the simulated target motor includes the formula expressed as follows: in, Represents the three-phase reference current, i a(k) 、i b(k) 、i c(k) Indicates the three-phase sampling current; u an (k),u bn (k),u cn (k) represents the three-phase reconstructed phase voltage, e a (k), e b (k), e c (k) represents the three-way back electromotive force, T d represents the simulation step size of real-time solution, k=1,2,3,...,n represents kT d The value at the moment, L f and R f Represents the three-phase inductor filter parameters.
4. The brushless DC motor simulator control method based on state switching as claimed in claim 3, characterized in that: Input the three-phase output port terminal voltage, three-phase back electromotive force and simulated target motor reference current of the motor driver into the non-conducting phase judgment module to judge whether there is a non-conducting phase in the three phases and whether the non-conducting phase contains high-frequency components, including: when it is detected that no current flows through a phase in the three phases, this phase is a non-conducting phase, and the terminal voltage contains high-frequency components; Then judgment condition 1: the reference current value of a certain phase The polarity changes; When judgment condition 1 is met, it is determined that one of the three phases is a non-conducting phase and the terminal voltage contains a high-frequency component, and the judgment flag f1 is set to 1; When it is detected that a current flows through the non-conducting phase, the terminal voltage of the non-conducting phase does not contain high-frequency components. Let P and T represent the conducting phase, and X represents the non-conducting phase; Then judgment condition 2: In the two-phase conduction interval, when the three-phase terminal voltages are all 0 and the back electromotive force of the non-conducting phase is less than 0, that is, u Pg =0,u Tg =0,u Xg =0,e X <0, it is determined that the non-conducting phase does not contain high-frequency components; Then judgment condition 3: in the phase change interval, when the three-phase terminal voltage meets u Pg =u DC or 0,u Tg =u DC or 0,u Xg =u DC Or 0, it is determined that the non-conducting phase does not contain high-frequency components; Among them, u Pg 、u Tg and u Xg Indicates the three-phase terminal voltage on the driver side, e X represents the back electromotive force of X, u DC Indicates the DC bus voltage on the drive side; When judgment condition 2 is met, it is determined that the voltage at the non-conducting phase terminal does not contain a high-frequency component, and the judgment flag f1 is set to 0; When judgment condition 3 is met, it is determined that the voltage at the non-conducting phase terminal does not contain a high-frequency component, and the judgment flag f1=0.
5. The brushless DC motor simulator control method based on state switching as claimed in claim 4, characterized in that: The judgment result is input into the phase voltage reconstruction module to switch the phase voltage reconstruction mode to obtain the three-phase reconstructed phase voltage without high-frequency components. If the non-conducting phase contains high-frequency components, it is a two-phase conducting state, and the three-phase reconstructed phase voltage is calculated by the two-phase conducting mode; if the non-conducting phase does not contain high-frequency components, it is a three-phase conducting state, and the three-phase reconstructed phase voltage is calculated by the three-phase conducting mode; The calculation formula of the three-phase conduction mode is expressed as: Among them, u an 、u bn and u cn represents the reconstructed phase voltage calculated from the three-phase conduction state, u ag 、u bg and u g Indicates the three-phase terminal voltage on the driver side, u ng Indicates the simulated target motor neutral point potential, e x Indicates the back electromotive force of the x-phase of the simulated target motor, where x represents the A, B, and C phases; Assuming that the P and T phases are the conducting phases and the X phase is the non-conducting phase, the calculation formula for the two-phase conduction mode is expressed as: Among them, u pN 、u TN and u XN represents the reconstructed phase voltage calculated in the two-phase conduction state, u Pg and u Tg It represents the voltage at the output port of the two conducting phases P and T, e p 、e T It represents the back electromotive force of the two conducting phases P and T of the simulated target motor, e x Represents the back electromotive force of the non-conducting phase.
6. The brushless DC motor simulator control method based on state switching as claimed in claim 5, characterized in that: The reference voltage calculation module calculates the reference voltage according to the three-phase current of the main power circuit, the three-phase reconstructed phase voltage, the three-phase back electromotive force, the three-phase reference current of the simulated target motor, the judgment result, the simulated target motor voltage equation and the main power circuit equation of the motor simulator. If the three-phase reconstructed phase voltage is calculated by the three-phase conduction method, the reference voltage calculation formula of the three-phase conduction state is expressed as: Among them, u un 、u vn and u wn Indicates the reference voltage calculated from the three-phase conduction state, u an 、u bn and u cn represents the reconstructed phase voltage calculated from the three-phase conduction state, i a 、i b and i c represents the three-phase current of the main power circuit of the motor simulator, i a_ref 、i b_ref and i c_ref Indicates the three-phase reference current calculated in real time, L f and R f represents the three-phase inductor filter parameters, L represents the inductance value of each phase of the simulated target motor, R represents the resistance value of each phase of the three-phase simulated target motor, e a 、e b and e c Represents the three-phase back electromotive force of the simulated target motor, T d Indicates the length of the walk.
7. The brushless DC motor simulator control method based on state switching according to claim 6, characterized in that: The reference voltage calculation module calculates the reference voltage according to the three-phase current of the main power circuit, the three-phase reconstructed phase voltage, the three-phase back electromotive force, the three-phase reference current of the simulated target motor, the judgment result, the simulated target motor voltage equation and the main power circuit equation of the motor simulator. The reference voltage also includes, if the three-phase reconstructed phase voltage is calculated by a two-phase conduction mode, setting the P and T two phases as the conduction phases and the X phase as the non-conduction phase, the reference voltage of the two-phase conduction state is expressed as follows: Among them, u' pn 、u' Tn and u' Xn It represents the reference voltage calculated in the two-phase conduction state, u Pn 、u Tn represents the reconstructed phase voltage of the P and T two-phase conduction state calculated, e p 、e T It represents the back electromotive force of the two conducting phases P and T of the simulated target motor, e x represents the back electromotive force of the non-conducting phase, i p 、i T Represents the two-phase current of the main power circuit P and T of the motor simulator, i P_ref and i T_ref It represents the real-time calculated reference current of the P and T two-phase conduction.
8. A brushless DC motor simulator control system based on state switching using the method according to any one of claims 1 to 7, characterized in that: The analog side controller is the input interface of the whole system and is used to receive the type, parameters, load torque model and three-phase inductor filter parameters of the simulated target motor; Voltage sampling module, which is responsible for collecting the voltage at the three-phase output port of the motor driver; Current sampling module, which collects the three-phase current of the main power circuit of the motor simulator; The torque calculation module calculates the electromagnetic torque according to the input three-phase current; The motion equation combines the electromagnetic torque, external load torque and simulated target motor parameters to calculate the electrical angular velocity and electrical angle; The back electromotive force calculation module calculates the three-dimensional back electromotive force of the simulated target motor according to the electrical angular velocity and electrical angle; A phase voltage reconstruction module calculates the three-phase reconstructed phase voltage of the brushless DC motor according to the voltage equation of the simulated target motor; The reference current real-time solution module uses the calculated back electromotive force and reconstructed phase voltage to solve the simulated target motor reference current in real time; A non-conducting phase judgment module, based on the predicted current value, judges which phase is in the non-conducting phase and whether it contains high-frequency components; The reference voltage calculation module calculates the reference voltage based on various parameters, such as the three-phase current of the main power circuit, the three-phase reconstructed phase voltage, the three-phase back electromotive force, the simulated target motor reference current, the non-conducting phase judgment result, etc.; The PWM module generates a switching signal according to the calculated reference voltage; The three-phase inverter receives the switching signal generated by the PWM module and controls the port voltage and current characteristics of the motor simulator to simulate the behavior of the target motor.
9. A computer device comprising: Memory and processor; The memory stores a computer program, and is characterized in that when the processor executes the computer program, the steps of the brushless DC motor simulator control method based on state switching are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of a brushless DC motor simulator control method based on state switching are implemented.
