CN-121978989-A - Motor simulation device and test system
Abstract
The embodiment of the invention provides a motor simulation device and a motor simulation system, and relates to the technical field of testing. In the motor simulation device, a signal conditioning module receives a three-phase voltage signal at the current moment output by a tested motor controller, a load adjusting module receives the three-phase voltage signal output by the tested motor controller to obtain a three-phase current signal at the current moment, a main control module preprocesses the three-phase voltage signal and the three-phase current signal sent by the signal conditioning module, an FPGA processing module determines motor simulation parameters of a simulated motor at the next moment, the main control module drives the load adjusting module to perform equivalent impedance simulation based on a target three-phase current signal, and the FPGA processing module outputs the motor simulation parameters to the tested motor controller to adjust the output three-phase voltage of the tested motor controller. The invention greatly reduces the requirement of the motor simulation device on hardware type selection and realizes controllable cost.
Inventors
- TAN XIAO
- GAO YONGXING
Assignees
- 苏州英特模科技股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260407
Claims (10)
- 1. The motor simulation device is characterized by comprising a main control module, an FPGA processing module, a load adjusting module and a signal conditioning module, wherein the main control module is respectively in communication connection with the FPGA processing module, the load adjusting module and the signal conditioning module; The signal conditioning module is used for receiving a three-phase voltage signal at the current moment output by the tested motor controller; The load adjusting module is used for receiving the three-phase voltage signal output by the tested motor controller, obtaining a three-phase current signal at the current moment and sampling by the signal conditioning module; The main control module is used for preprocessing the three-phase voltage signals and the three-phase current signals sent by the signal conditioning module and sending the three-phase voltage signals and the three-phase current signals to the FPGA processing module; The FPGA processing module is used for determining motor simulation parameters of the simulated motor at the next moment based on the received three-phase voltage signals, the three-phase current signals and a preset motor simulation model, wherein the motor simulation parameters comprise target three-phase current signals and encoder signals; the main control module is also used for driving the load adjustment module to perform equivalent impedance simulation based on the target three-phase current signal, so that the three-phase voltage signal output by the tested motor controller is the target three-phase current signal after passing through the load adjustment module; The FPGA processing module is used for outputting the motor simulation parameters to a tested motor controller so that the tested motor controller can adjust the output three-phase voltage based on the target three-phase current signal and the encoder signal.
- 2. The motor simulation device of claim 1, wherein the motor simulation device comprises a motor simulation device, The FPGA processing module is further used for: based on the three-phase current signal and the three-phase voltage signal at the previous moment, determining an ideal three-phase voltage signal at the current moment; Determining composite error information at the current moment based on the three-phase voltage signal at the current moment and an ideal three-phase voltage signal at the current moment; Determining a current compensation gain parameter based on the composite error information at the current moment, the composite error information at the last moment and the three-phase current signal and the three-phase voltage signal at the last moment; determining a target three-phase voltage signal at the current moment based on the current compensation gain parameter and the composite error information at the current moment; The main control module is specifically configured to drive the load adjustment module to perform equivalent impedance simulation based on the target three-phase current signal and the target three-phase voltage signal.
- 3. The motor simulation device according to claim 2, wherein the FPGA processing module is specifically configured to determine a reference three-phase voltage signal at a current time based on the compensation gain parameter and the composite error information at the current time; And determining a target three-phase voltage signal at the current moment based on the reference three-phase voltage signal at the current moment, the dead zone voltage compensation amplitude and the temperature drift voltage compensation amplitude.
- 4. The motor simulation device of claim 3 wherein the composite error information comprises an amplitude error component and a phase error component, the compensation gain parameter comprises an amplitude compensation gain and a phase compensation gain; The calculation formula of the reference three-phase voltage signal at the current moment is as follows: u comp [t]=u ref [t]+K a ×e a [t]+K p ×e p [t]; Where u comp [ t ] represents the reference three-phase voltage signal at the current time t, u ref [ t ] represents the initial reference voltage at the current time t, K a represents the current amplitude compensation gain, K p represents the current phase compensation gain, e a [ t ] represents the amplitude error component at the current time t, and e p [ t ] represents the phase error component at the current time t.
- 5. The motor simulation device according to claim 3, wherein the load adjustment module comprises a switch driving circuit, a three-phase switch module and a resistive network module; The resistance sensing network module is connected to the motor controller to be tested, the three-phase switch module is respectively connected with the switch driving circuit and the resistance sensing network module, and the switch driving circuit is connected to the main control module; The main control module is specifically used for generating a PWM driving signal based on the target three-phase current signal and sending the PWM driving signal to the switch driving circuit; the switch driving circuit is used for carrying out switch control on MOS tubes in the three-phase switch module based on the PWM driving signal so as to adjust the connection between the resistance sensing network module and the three-phase switch module, so that the three-phase voltage signal output by the tested motor controller is the target three-phase current signal after passing through the resistance sensing network module and the three-phase switch module.
- 6. The motor simulation device according to claim 1, wherein the preprocessing includes at least zero point correction and/or gain compensation.
- 7. The motor simulation device according to claim 1, wherein the main control module and the FPGA processing module communicate through two communication channels, the two communication channels respectively communicate based on a parallel data bus and an SPI bus; the main control module is used for sending the three-phase current signals and the three-phase voltage signals to the FPGA processing module through the parallel data bus; The FPGA processing module is used for sending the target three-phase current signal to the main control module through the SPI bus.
- 8. The motor simulation device of claim 1, further comprising a clock generation module; the clock generation module is used for generating a sampling clock and providing the sampling clock to the main control module and the FPGA processing module respectively.
- 9. The motor simulation device of claim 1, further comprising a power management module; The power management module is used for supplying power to the main control module and the FPGA processing module at the same time.
- 10. A test system comprising a motor controller under test and a motor simulation device according to any one of claims 1 to 9; the tested motor controller is used for adjusting the three-phase voltage output to the motor simulation device based on the received motor simulation parameters sent by the motor simulation device.
Description
Motor simulation device and test system Technical Field The invention relates to the technical field of testing, in particular to a motor simulation device and a testing system. Background In research and application of a power-level motor simulator, the power-level motor simulator has the advantages of convenience in testing, energy feedback to a power grid, capability of simulating extreme or fault conditions of a motor and the like, and is widely used for motor driver testing in the fields of electric automobiles, aerospace, wind power generation and the like. The power level motor simulator based on the DSP is adopted to replace the traditional mechanical motor rack for testing, so that the power level motor simulator is an effective way with low cost and simple implementation. However, in order to realize high-precision simulation, part of the system adopts a high-performance hardware platform based on a DSP (digital signal processor) to be matched with a high-speed analog-to-digital conversion chip for signal acquisition and processing, and in order to realize the ultra-high switching frequency so as to simulate the motor characteristics to the greatest extent, a peripheral circuit with the same high end is usually required to be equipped, for example, a high-power switching device is used for realizing high-frequency current adjustment in parallel connection, so that the overall cost of the motor simulator is high. Disclosure of Invention The invention aims to provide a motor simulation device and a testing system, which use a heterogeneous computing architecture of a main control module and an FPGA processing module, wherein the heterogeneous computing architecture is used for the cooperation of a double processor, the main control module can ensure the stability, reliability and control logic of the system, and the FPGA processing module ensures the extreme speed and precision of algorithm execution, so that the high-precision motor state simulation is realized under the medium sampling rate, the hardware selection requirement of the motor simulation device is greatly reduced, and the cost is controllable. The invention provides a motor simulation device which comprises a main control module, an FPGA processing module, a load adjusting module and a signal conditioning module, wherein the main control module is respectively in communication connection with the FPGA processing module, the load adjusting module and the signal conditioning module; The signal conditioning module is used for receiving a three-phase voltage signal at the current moment output by the tested motor controller; The load adjusting module is used for receiving the three-phase voltage signal output by the tested motor controller, obtaining a three-phase current signal at the current moment and sampling by the signal conditioning module; The main control module is used for preprocessing the three-phase voltage signals and the three-phase current signals sent by the signal conditioning module and sending the three-phase voltage signals and the three-phase current signals to the FPGA processing module; The FPGA processing module is used for determining motor simulation parameters of the simulated motor at the next moment based on the received three-phase voltage signals, the three-phase current signals and a preset motor simulation model, wherein the motor simulation parameters comprise target three-phase current signals and encoder signals; the main control module is also used for driving the load adjustment module to perform equivalent impedance simulation based on the target three-phase current signal, so that the three-phase voltage signal output by the tested motor controller is the target three-phase current signal after passing through the load adjustment module; The FPGA processing module is used for outputting the motor simulation parameters to a tested motor controller so that the tested motor controller can adjust the output three-phase voltage based on the target three-phase current signal and the encoder signal. The invention also provides a test system, which comprises a tested motor controller and the motor simulation device; the tested motor controller is used for adjusting the three-phase voltage output to the motor simulation device based on the received motor simulation parameters sent by the motor simulation device. In one embodiment, the FPGA processing module is further configured to: based on the three-phase current signal and the three-phase voltage signal at the previous moment, determining an ideal three-phase voltage signal at the current moment; Determining composite error information at the current moment based on the three-phase voltage signal at the current moment and an ideal three-phase voltage signal at the current moment; Determining a current compensation gain parameter based on the composite error information at the current moment, the composite error information at the last moment and the three