CN114527723A - Motor controller simulation test method, system, device and storage medium - Google Patents
Motor controller simulation test method, system, device and storage medium Download PDFInfo
- Publication number
- CN114527723A CN114527723A CN202111291743.5A CN202111291743A CN114527723A CN 114527723 A CN114527723 A CN 114527723A CN 202111291743 A CN202111291743 A CN 202111291743A CN 114527723 A CN114527723 A CN 114527723A
- Authority
- CN
- China
- Prior art keywords
- signal
- motor controller
- output execution
- preset
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 87
- 238000010998 test method Methods 0.000 title claims abstract description 21
- 238000012360 testing method Methods 0.000 claims abstract description 68
- 230000007246 mechanism Effects 0.000 claims abstract description 33
- 238000000034 method Methods 0.000 claims abstract description 24
- 238000004364 calculation method Methods 0.000 claims description 16
- 239000007921 spray Substances 0.000 claims description 12
- 239000000446 fuel Substances 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 15
- 239000003921 oil Substances 0.000 description 22
- 230000003750 conditioning effect Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 7
- 238000011161 development Methods 0.000 description 4
- 230000018109 developmental process Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000002347 injection Methods 0.000 description 2
- 239000007924 injection Substances 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000000295 fuel oil Substances 0.000 description 1
- 239000007789 gas Substances 0.000 description 1
- 238000012812 general test Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012821 model calculation Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 239000000243 solution Substances 0.000 description 1
- 230000033772 system development Effects 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
- G05B23/0213—Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24065—Real time diagnostics
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Control Of Electric Motors In General (AREA)
- Testing And Monitoring For Control Systems (AREA)
Abstract
The embodiment of the invention discloses a motor controller simulation test method, a motor controller simulation test system, a motor controller simulation test device and a storage medium. And sending the output execution signal to a motor controller to be tested so that the motor controller executes the output execution signal through a preset motor mechanism and feeds back the feedback signal after calculating to obtain the feedback signal. The background system provides input signals, so that a real motor is not used for testing, and the technical problem that in the prior art, the test danger is caused due to the fact that the performance of a motor controller is unknown in the bench test process is solved.
Description
Technical Field
The invention relates to a motor controller simulation test method, a system, a device and a storage medium.
Background
With the increasing complexity and the increasing control parameters of the electronic control system of the high-speed diesel engine, the difficulty of system development is also increasing. If the traditional design scheme of the electric control system is adopted, namely, the electric control unit, namely the motor controller which is often called, is designed firstly, then the matching test is carried out through a diesel engine bench test, the parameters and the strategy of the electric control system are corrected according to the test result, and then the bench test is carried out.
The testing process is repeated, the development period is long, a large amount of manpower and material resources are consumed, a large amount of diesel engine experimental data are needed in the design of the electric control system, a general test bench system is difficult to provide standard dynamic working conditions, particularly limit working conditions, and the testing risk is large.
When an imperfect electric control system is adopted to carry out a real machine test, the method has greater potential safety hazard. Therefore, the key for accelerating the development process of the electric control system of the high-speed diesel engine is to reduce the dependence degree of the debugging of the electric control system on the bench test, and before the bench test, a real-time simulation environment needs to be established, so that the electric control system can provide an environment which is close to the actual operation environment and simulate various working conditions and fault modes.
Technical personnel in the field are seeking a motor controller simulation test, which is helpful for solving the technical problem of test danger caused by unknown performance of a motor controller in the bench test process in the prior art.
Disclosure of Invention
In view of the above problems in the prior art, embodiments of the present invention provide a method, a system, a device, and a storage medium for a simulation test of a motor controller, which provide an input signal through a background system, and do not use a real motor for testing any more, thereby helping to solve the technical problem of test danger in the prior art due to unknown performance of the motor controller during a bench test.
In an embodiment, an embodiment of the present invention provides a simulation test method for a motor controller, where the method includes:
calculating according to preset operation data and an operation model to obtain an output execution signal, wherein the operation model is an operation model for calculating according to the operation data to obtain the output execution signal;
and sending the output execution signal to a motor controller to be tested so that the motor controller executes the output execution signal through a preset motor mechanism and calculates to obtain a feedback signal, and then feeding back the feedback signal.
In an embodiment, the obtaining of the output execution signal according to the preset operation data by calculation according to an operation model, where the operation model is an operation model for obtaining the output execution signal according to the operation data by calculation includes:
calculating according to preset operation data and an operation model to obtain a simulation signal;
and adjusting according to the simulation signal to obtain the output execution signal, wherein the output execution signal is a signal which can be identified and executed by a motor controller.
In an embodiment, after the motor controller executes the output execution signal through a preset motor mechanism and calculates a feedback signal, feeding back the feedback signal includes:
the motor controller calculates to obtain a driving signal according to the output execution signal;
the motor controller sends the driving signal to a preset motor mechanism, wherein the motor mechanism comprises the oil spray nozzle and the electromagnetic valve to drive the oil spray nozzle and the electromagnetic valve, working data of the oil spray nozzle and the electromagnetic valve are collected through a preset first collecting device, and the working data are used as feedback signals to be fed back.
In an embodiment, said performing a signal calculation on said motor controller according to said output to obtain a driving signal further comprises:
operating according to preset operation data to obtain a voltage signal, wherein the operation data comprises preset data capable of calculating to obtain the voltage signal;
and sending the voltage signal to a preset rotating speed simulation device so that the voltage signal drives the rotating speed simulation device to generate a rotating speed signal, and sending the rotating speed signal to the motor controller, wherein the motor controller calculates according to the output execution signal and the rotating speed signal to obtain a driving signal.
In an embodiment, after the step of acquiring the working data of the oil nozzle and the electromagnetic valve by using a preset acquisition device and feeding back the working data as a feedback signal, the method further includes:
acquiring working state data of the motor controller through a preset second acquisition device;
and feeding back the working state data as a feedback signal.
In one embodiment, the present application provides a motor controller simulation test system, which includes a background system and a motor mechanism;
the background system is used for calculating according to preset running data and an operation model to obtain an output execution signal, wherein the operation model is the operation model for calculating according to the running data to obtain the output execution signal; and sending the output execution signal to a motor controller to be tested so that the motor controller can feed back a feedback signal after executing the output execution signal through a preset motor mechanism and calculating to obtain the feedback signal.
In one embodiment, the motor controller simulation test system further comprises an upper computer;
and the upper computer is used for configuring the operation data.
In one embodiment, the present application further provides a simulation test apparatus for a motor controller, the apparatus including:
the calculation module is used for calculating according to preset operation data and an operation model to obtain an output execution signal, wherein the operation model is the operation model for calculating according to the operation data to obtain the output execution signal;
and the sending and receiving module is used for sending the output execution signal to a motor controller to be tested so that the motor controller can execute the output execution signal through a preset motor mechanism and feed back the feedback signal after calculating to obtain the feedback signal.
In one embodiment, the present application further provides a motor controller simulation test apparatus, the apparatus including: a processor and a memory;
the memory stores an application program executable by the processor for causing the processor to perform the steps of the motor controller simulation test method.
In an embodiment, the present application further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the motor controller simulation test method described herein.
Drawings
FIG. 1 is a schematic diagram of a process 100 of a simulation testing method for a motor controller according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a process 200 of a simulation test method for a motor controller according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of a process 300 of a simulation testing method for a motor controller according to another embodiment of the present invention;
FIG. 4 is a schematic diagram of a process 400 of a simulation testing method for a motor controller according to another embodiment of the present invention;
FIG. 5 is a schematic diagram of a process 500 of a simulation test method for a motor controller according to another embodiment of the present invention;
FIG. 6 is a schematic diagram of a simulation test system of a motor controller according to another embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a rotational speed simulator according to another embodiment of the present invention;
fig. 8 is a schematic diagram of a simulation testing apparatus for a motor controller according to another embodiment of the present invention.
Reference numerals:
background system 1
Analog quantity output card 11
Digital multifunctional card 13
Signal conditioning module 3
Large current output conditioning 0-24mA to 0-5A current output type board card 33
Digital signal output conditioning standard TTL level to 0-24V voltage board card 34
ICM module 42
Rotating speed simulation device 6
First speed measuring fluted disc 66
Second speed measuring fluted disc 69
Detailed Description
In order to make the technical solutions of the present invention better understood, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
Various aspects and features of the present application are described herein with reference to the drawings.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and structures have not been described in detail so as to not unnecessarily obscure the present application with unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
In the prior art, after the research and development of a motor controller are completed, systematic tests on the control logic and control parameters of the motor controller and the working state of a controlled motor are needed, such tests are to input test signals after the motor controller is connected with a real motor, and then test whether the control logic and control parameters of the motor controller are correct or meet requirements and the working state of the controlled motor, but such tests have problems because the performance of the motor controller is unknown, so that the motor controller may send wrong control signals and the like, which may cause damage to the motor and also may cause accidents and dangers, so that technicians in the field are seeking a motor controller simulation test which is helpful for solving the bench test process in the prior art and because the performance of the motor controller is unknown, leading to technical problems of test danger.
Fig. 1 is a schematic diagram of a process 100 of a simulation test method for a motor controller according to an embodiment of the present invention. As shown in fig. 1, in one embodiment, the present application provides a simulation testing method for a motor controller, the method including:
and S101, calculating according to preset operation data and an operation model to obtain an output execution signal, wherein the operation model is the operation model which calculates according to the operation data to obtain the output execution signal.
In this step, a specific step of calculating an output execution signal according to the operation data by using the operation model is provided. In this step, the operation model is stored in a database, and the operation model can obtain a specific output execution signal according to the input operation data. At this time, the output execution signal is the output execution signal that should be issued to the motor controller under the current operation data.
And S102, sending the output execution signal to a motor controller to be tested, so that the motor controller executes the output execution signal through a preset motor mechanism and calculates to obtain a feedback signal, and then feeding back the feedback signal.
A specific step of sending the output execution signal to the motor controller is provided in this step. In this step, the motor controller may control the motor mechanism according to an output execution signal, the motor mechanism simulates a specific mechanism on the motor controller to control the motor, feedback signals are obtained according to the working state of the motor mechanism, and the feedback signals may be acquired by using a specific acquisition device and fed back to the background for subsequent test analysis.
In the present embodiment, a specific implementation of a simulation test method for a motor controller is provided. Firstly, an output execution signal is obtained according to preset operation data and calculation according to an operation model, wherein the operation model is the operation model which obtains the output execution signal according to the operation data. In the prior art, the operation data is directly loaded to a real motor and the motor controller, and a control signal of the motor controller directly acts on the motor, so that the dangerous situation is easily caused. And sending the output execution signal to a motor controller to be tested so that the motor controller executes the output execution signal through a preset motor mechanism and calculates to obtain a feedback signal, and then feeding back the feedback signal. The feedback signal is fed back to the background system, and then the feedback signal is used as a test result. The signal processing is realized by simulating the signal of the motor through the background, so that the motor controller is not used for controlling the real motor, the specific situation that the motor is in an accident due to the problem of the control signal of the motor controller can be avoided, and the technical problem that the test is dangerous due to the unknown performance of the motor controller in the prior art in the bench test process can be solved.
Fig. 2 is a schematic diagram of a flow 200 of a simulation testing method for a motor controller according to another embodiment of the present invention, as shown in fig. 2, in an embodiment, the obtaining of the output execution signal by calculation according to a calculation model according to preset operation data includes:
and S201, calculating according to preset running data and an operation model to obtain a simulation signal.
In this step, a specific step of calculating the simulation signal according to the operation model based on the operation data is provided. The simulation signal is the simulation signal calculated according to the operation model, but the simulation signal is not necessarily recognized by the motor controller.
S202, the output execution signal is obtained according to the simulation signal adjustment, wherein the output execution signal is a signal which can be identified and executed by a motor controller.
And in the step, adjusting the simulation signal to obtain the output execution signal. The output execution signal is a signal that can be recognized and executed by the motor controller.
In this embodiment, a specific implementation is provided for converting the simulation signal into the output execution signal, which is not necessarily suitable for direct input into the motor controller, so that the above-mentioned method is required for adjustment.
Fig. 3 is a schematic diagram of a process 300 of a simulation testing method for a motor controller according to another embodiment of the present invention. As shown in fig. 3, in an embodiment, after the motor controller executes the output execution signal through a preset motor mechanism and calculates a feedback signal, feeding back the feedback signal includes:
and S301, calculating by the motor controller according to the output execution signal to obtain a driving signal.
In this step, a specific step of calculating and obtaining the driving signal by the motor controller is provided, and at this time, the motor controller obtains the driving signal according to its own control logic.
And S302, the motor controller sends the driving signal to a preset motor mechanism, wherein the motor mechanism comprises the oil spray nozzle and the electromagnetic valve to drive the oil spray nozzle and the electromagnetic valve, working data of the oil spray nozzle and the electromagnetic valve are collected through a preset first collecting device, and the working data are used as feedback signals to be fed back.
A specific step of sending the drive signal to the motor mechanism is provided in this step. The first acquisition device acquires working data of the oil nozzle and the electromagnetic valve and feeds back the working data as a feedback signal.
In this embodiment, a specific embodiment of controlling the fuel injector and the solenoid valve and feeding back the operating data of the fuel injector and the solenoid valve is provided. The motor controller also controls the oil nozzle and the electromagnetic valve of the diesel engine during actual operation, so that the oil nozzle and the electromagnetic valve are important data for testing, and the motor controller calculates and obtains a driving signal according to the output execution signal. The control signal output by the motor controller is derived from the driving signal, so the motor controller sends the driving signal to a preset motor mechanism, wherein the motor mechanism comprises the oil spray nozzle and the electromagnetic valve to drive the oil spray nozzle and the electromagnetic valve, and collects working data of the oil spray nozzle and the electromagnetic valve through a preset first collecting device, and feeds the working data back to a background system as a feedback signal.
Fig. 4 is a schematic diagram of a process 400 of a simulation testing method for a motor controller according to another embodiment of the present invention. As shown in fig. 4, in an embodiment, the calculating the driving signal according to the output execution signal for the motor controller further includes:
s401, operating according to preset operating data to obtain a voltage signal, wherein the operating data comprises preset data capable of calculating the voltage signal.
In this step, a specific step of calculating the operation data to obtain the voltage signal is provided. The operation data comprises self control data and the voltage signal in the step except the data information for controlling the electromagnetic valve and the oil injection port.
S402, sending the voltage signal to a preset rotating speed simulation device so that the voltage signal drives the rotating speed simulation device to generate a rotating speed signal, and sending the rotating speed signal to the motor controller, wherein the motor controller calculates according to the output execution signal and the rotating speed signal to obtain a driving signal.
In this step, a specific step of sending the voltage signal to the rotation speed simulator is provided, where the rotation speed simulator is a mechanism for performing real simulation on a crankshaft and a main shaft, the crankshaft and the main shaft rotate to generate the rotation speed signal and send the rotation speed signal to the motor controller, the rotation speed signal and the output execution signal are jointly and comprehensively calculated to obtain the driving signal, and the motor controller sends the driving signal to the oil nozzle and the electromagnetic valve to further control the operation of the oil nozzle and the electromagnetic valve.
In the embodiment, a specific implementation mode of the test by using the rotating speed simulating device is provided. Firstly, a voltage signal is obtained through operation according to preset operation data, wherein the operation data comprise preset data of the voltage signal which can be obtained through calculation. And then, sending the voltage signal to a preset rotating speed simulation device so that the voltage signal drives the rotating speed simulation device to generate a rotating speed signal, and sending the rotating speed signal to the motor controller, wherein the motor controller calculates according to the output execution signal and the rotating speed signal to obtain a driving signal. It should be noted that the rotation speed simulator only outputs the rotation speed signal.
Fig. 5 is a schematic diagram of a process 500 of a simulation test method for a motor controller according to another embodiment of the present invention. As shown in fig. 5, in an embodiment, after the step of acquiring the working data of the oil nozzle and the electromagnetic valve by using a preset acquisition device and feeding back the working data as a feedback signal, the method further includes:
and S501, collecting the working state data of the motor controller through a preset second collecting device.
In this step, a specific step of acquiring the working state data of the motor controller through the second acquisition device is provided.
And S502, feeding back the working state data as a feedback signal.
In this step, a specific step of sending the working state data to the background system is provided.
In the present embodiment, a specific implementation of the feedback of the operating state data of the motor controller 4 is provided. Firstly, working state data of the motor controller 4 are acquired through a preset second acquisition device, and then the working state data are also used as feedback signals for feedback. The working state data includes voltage, temperature and the like.
Fig. 6 is a schematic diagram of a simulation test system of a motor controller according to another embodiment of the present invention. As shown in fig. 6, in an embodiment, the present application provides a motor controller simulation test system, which includes a background system 1 and a motor mechanism 10;
the background system 1 is used for calculating according to preset running data and an operation model to obtain an output execution signal, wherein the operation model is the operation model for calculating according to the running data to obtain the output execution signal; and sending the output execution signal to the motor controller 4 to be tested, so that the motor controller 4 feeds back the feedback signal after executing the output execution signal through a preset motor mechanism 10 and calculating to obtain the feedback signal.
Wherein the motor mechanism 10 includes an oil jet 103 and an electromagnetic valve 104
In one embodiment, the simulation test system of the motor controller 4 further comprises an upper computer 2;
and the upper computer 2 is used for configuring the operation data.
The operation model is configured in the upper computer 2, a tester can set the operation data through a preset human-computer interaction software operation, and the operation data can also be automatically and directly used for subsequent calculation through preset configuration. As the background system 1, in order to deal with the interaction between the digital quantity and the analog quantity in the test, the background system 1 further includes an analog quantity output card 11, an analog quantity input card 12, a digital multifunction card 13, and an engine signal card 14.
The backend system 1 may further include an emulation controller 15, wherein the emulation controller 15 uses a CompactRIO real-time controller of NI corporation, which may run an RT-Linux system and implement nanosecond-level operations with the support of a multi-core processor. The high-speed Model is built by Matlab/Simulink software, the whole Model consists of a rotating speed module, a rail pressure module, a fuel oil module, an air inlet and outlet module, an intercooler module and a supercharger simulation module, the Model is compiled into a C code by means of an NIVeriStand.tlc compiling file provided by NI, and then the C code can be loaded into a real-time controller to run, and an input/output Interface of the Model can be flexibly connected with an external environment through a Model Interface toolkit plug-in of Labview. The input port of the model receives engine control signals from the controller, such as signals of start-stop instructions, oil quantity, load, valve opening and the like, and after the input state values are obtained, the simulation controller 15 carries out real-time calculation according to mathematical operation rules of the model, namely the operation model can finally output values such as engine rotating speed, common rail pressure, power, fuel consumption, valve working state and the like. The compact RIO controller is provided with 8I/O module slots, input and output board cards can be flexibly configured according to requirements, the test platform is provided with an analog output board card 11, an analog acquisition board card 12, a digital multifunctional card 13 and a professional engine signal card 14, and engine state numerical value information obtained by model calculation is converted into analog quantity or digital quantity through the I/O output modules and is output to the engine controller, such as the temperature and pressure values of various oil, gas and water of the engine, the rotating speeds of a main shaft, a crankshaft and a supercharger, and the opening degrees of a gas valve and a supercharger control valve. The analog quantity or digital quantity control signals sent by the engine controller are converted into numerical values through the I/O input board card and then input to the simulation controller 15, such as start-stop speed-raising control signals, fuel quantity control signals, air inflow control signals and booster valve switching signals.
A signal conditioning module 3 is arranged between the real-time background system 1 and the engine controller, and because the types of engine control signals are more and limited by the number of I/O board card slots, part of the signals can be in accordance with the signal form of a real sensor after being converted by the signal conditioning module 3. One function of the signal conditioning module 3 is to realize the matching of the electrical characteristics between the real-time simulation system and the controller, and the other function is to protect the simulator and the high-speed controller from being damaged by large current. The signal conditioning module 3 comprises a large-current acquisition conditioning 0-5A current-to-0-24 mA current board 31, a large-current acquisition conditioning 0-25A current-to-0-10V voltage board 32, a large-current output conditioning 0-24 mA-to-0-5A current output board 33 and a digital signal output conditioning standard TTL level-to-0-24V voltage board 34. The signal conditioning modules 3 are connected with the real-time background system 1 and the engine controller, have a hardware environment formed by the acquisition board card and the output board card, can realize the function of converting data into electric appliance signals, namely realize the function of simulating sensor signals on an actual diesel engine, and condition and convert received diesel engine state parameter signals of the real-time simulation platform into analog signals consistent with sensors installed on a high-speed diesel engine.
The motor controller 4 simulation test system further comprises a signal conditioning module 3, the signal conditioning module 3 has functions of large current collection, large current output, voltage conversion and the like, and the signal conditioning module 3 is used for obtaining a simulation signal according to preset operation data and calculation of an operation model and obtaining the output execution signal according to the simulation signal adjustment, wherein the output execution signal is a signal which can be identified and executed by the motor controller 4.
In addition, the upper computer 2 can adopt a high-performance industrial PC, and the interactive system can be developed by adopting LabVIEW, so that the test operation, the data observation and the engine parameter calibration are realized. And recording data such as rotating speed, rail pressure, alarm information and the like through a MySQL development database. The upper computer 2 development platform communicates with the real-time simulation platform through the Ethernet to realize the management function of the real-time simulation system.
The motor controller 4 includes an ECM module 41 and an ICM module 42.
After receiving the simulation signals of the background system 1 and the rotating speed simulation device 6, the motor controller 4 obtains a control signal through calculation of an internal program, then sends a control instruction to the actuator, the actuator returns a feedback signal to the real-time simulation system through the I/O acquisition module, and part of signals without the actuator are directly returned to the background system 1 through the I/O acquisition module, so that a closed loop is formed.
Fig. 7 is a schematic structural diagram of a rotation speed simulator according to another embodiment of the invention. As shown in fig. 7, the rotational speed simulation device 6 includes a main shaft 61 and a crankshaft 62, and a camshaft 63;
the main shaft 61 passes through servo motor drive 64, and main shaft 61 drives bent axle 62 through first belt drive 65, and first fluted disc 66 that tests the speed is installed to bent axle 62, and first fluted disc 66 that tests the speed is testing the speed through first hall sensor 67 and is obtaining first rotational speed, and main shaft 61 still drives camshaft 63 through second belt drive 68, and camshaft 63 installs the second and tests speed fluted disc 69 and second hall sensor 610 and test the speed and obtain the second rotational speed, tacho signal includes first rotational speed with the second rotational speed.
The engine speed signal is used as the most important state parameter to influence the control of the engine controller on a plurality of signals such as oil injection, speed regulation, security protection and the like. In order to simulate the actual rotating speed signal measuring method of the high-speed machine more really, the testing platform is provided with a rotating speed simulating device 6. The background system 1 calculates the real-time rotating speed of the engine through the operation model, converts the real-time rotating speed of the engine into a voltage value of 0-5V, and outputs the voltage value to the servo driver through the voltage analog quantity board card, and the servo driver controls the servo motor to rotate through PWM wave signals with corresponding proportional duty ratio, so that the rotating speed of the servo motor 64 is consistent with the calculated rotating speed of the engine. The transmission ratio of the first belt transmission 65 is 2: 1, the second belt drive 68 has a transmission ratio of 1: 1, the rotation speed of the crankshaft 62 is 2 times that of the camshaft 63, which is consistent with the rotation speed ratio of the crankshaft 62 and the camshaft 63 of a real high-speed machine. The Hall sensor is used for measuring a fluted disc, the sensor outputs a 24V high level signal when the teeth exist, the sensor outputs a 0V low level signal when the teeth do not exist, the speed measuring fluted disc rotates along with the shaft at the same speed, a square wave signal with the size of 24V can be obtained, and the square wave signal is input to the engine controller as an engine rotating speed signal.
In addition, the operation model output signal can represent a state signal of the diesel engine in general, such as the rotating speed, the rail pressure, the temperature and the pressure of each cylinder and the opening state of each valve of the diesel engine when the motor is the diesel engine. The controller obtains the state signal and then calculates according to the control program in the controller, and finally outputs a control signal, namely the output execution signal, part of the output execution signal is directly fed back to the operation model, the other part of the output execution signal acts on the external actuator and then enters the operation model, and the operation model receives the output execution signal and then operates again to update the state signal of the operation model, so that the operation and the control of the whole diesel engine are simulated by repeated circulation.
Fig. 8 is a schematic diagram of a simulation testing apparatus for a motor controller according to another embodiment of the present invention. As shown in fig. 8, in one embodiment, the present application provides a motor controller simulation test apparatus, comprising:
the calculation module 101 is configured to calculate an output execution signal according to a preset operation data and an operation model, where the operation model is an operation model that calculates the output execution signal according to the operation data.
The sending and receiving module 102 is configured to send the output execution signal to the motor controller 4 to be tested, so that the motor controller 4 feeds back a feedback signal after executing the output execution signal through a preset motor mechanism 10 and calculating the feedback signal.
In one embodiment, the present application provides a motor controller simulation test apparatus, the apparatus comprising: a processor and a memory;
an application program executable by the processor is stored in the memory for causing the processor to perform the steps of the motor controller simulation test method.
In one embodiment, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a motor controller simulation test method.
The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the scope of the present invention is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present invention, and such modifications and equivalents should also be considered as falling within the scope of the present invention.
Claims (10)
1. A motor controller simulation test method is characterized by comprising the following steps:
calculating according to preset operation data and an operation model to obtain an output execution signal, wherein the operation model is an operation model for calculating according to the operation data to obtain the output execution signal;
and sending the output execution signal to a motor controller to be tested so that the motor controller executes the output execution signal through a preset motor mechanism and calculates to obtain a feedback signal, and then feeding back the feedback signal.
2. The motor controller simulation test method of claim 1, wherein the calculating an output execution signal according to a calculation model based on preset operation data, wherein the calculating the operation model to obtain the output execution signal based on the operation data comprises:
calculating according to preset operation data and an operation model to obtain a simulation signal;
and adjusting according to the simulation signal to obtain the output execution signal, wherein the output execution signal is a signal which can be identified and executed by a motor controller.
3. The motor controller simulation test method according to claim 1 or 2, wherein after the motor controller executes the output execution signal through a preset motor mechanism and calculates a feedback signal, feeding back the feedback signal comprises:
the motor controller calculates to obtain a driving signal according to the output execution signal;
the motor controller sends the driving signal to a preset motor mechanism, wherein the motor mechanism comprises the oil spray nozzle and the electromagnetic valve to drive the oil spray nozzle and the electromagnetic valve, working data of the oil spray nozzle and the electromagnetic valve are collected through a preset first collecting device, and the working data are used as feedback signals to be fed back.
4. The motor controller simulation test method of claim 3, wherein the performing the signal calculation on the motor controller according to the output to obtain the driving signal further comprises:
operating according to preset operation data to obtain a voltage signal, wherein the operation data comprises preset data capable of calculating to obtain the voltage signal;
and sending the voltage signal to a preset rotating speed simulation device so that the voltage signal drives the rotating speed simulation device to generate a rotating speed signal, and sending the rotating speed signal to the motor controller, wherein the motor controller calculates according to the output execution signal and the rotating speed signal to obtain a driving signal.
5. The motor controller simulation test method according to claim 3, wherein after the step of collecting the working data of the fuel injector and the solenoid valve by a preset collecting device and feeding back the working data as a feedback signal, the method further comprises:
collecting working state data of the motor controller 4 through a preset second collecting device;
and feeding back the working state data as a feedback signal.
6. A motor controller simulation test system is characterized by comprising a background system and a motor mechanism;
the background system is used for calculating according to preset running data and an operation model to obtain an output execution signal, wherein the operation model is the operation model for calculating according to the running data to obtain the output execution signal; and sending the output execution signal to a motor controller to be tested so that the motor controller can feed back a feedback signal after executing the output execution signal through a preset motor mechanism and calculating to obtain the feedback signal.
7. The motor controller simulation test system of claim 6, further comprising an upper computer;
and the upper computer is used for configuring the operation data.
8. A motor controller simulation test device is characterized by comprising:
the calculation module is used for calculating according to preset operation data and an operation model to obtain an output execution signal, wherein the operation model is the operation model for calculating according to the operation data to obtain the output execution signal;
and the sending and receiving module is used for sending the output execution signal to a motor controller to be tested so that the motor controller can execute the output execution signal through a preset motor mechanism and feed back the feedback signal after calculating to obtain the feedback signal.
9. A motor controller simulation test apparatus, the apparatus comprising: a processor and a memory;
the memory has stored therein an application program executable by the processor for causing the processor to perform the steps of the motor controller simulation test method of any of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the motor controller simulation test method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111291743.5A CN114527723B (en) | 2021-11-03 | 2021-11-03 | Simulation test method, system and device for motor controller and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111291743.5A CN114527723B (en) | 2021-11-03 | 2021-11-03 | Simulation test method, system and device for motor controller and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114527723A true CN114527723A (en) | 2022-05-24 |
CN114527723B CN114527723B (en) | 2024-06-04 |
Family
ID=81619423
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111291743.5A Active CN114527723B (en) | 2021-11-03 | 2021-11-03 | Simulation test method, system and device for motor controller and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114527723B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5524498A (en) * | 1995-04-28 | 1996-06-11 | Delco Electronics Corporation | Motor feedback simulation for test equipment |
CN103970128A (en) * | 2014-05-23 | 2014-08-06 | 国家电网公司 | On-line real-time simulation testing system of wind generating set controller |
CN104111174A (en) * | 2014-08-06 | 2014-10-22 | 北京理工大学 | Rotating speed simulation device based on phase of vehicle engine |
CN105425609A (en) * | 2015-11-09 | 2016-03-23 | 沪东重机有限公司 | System for testing electric control hardware of low-speed diesel engine |
CN107315407A (en) * | 2017-08-31 | 2017-11-03 | 中国第汽车股份有限公司 | A kind of automotive motor controller emulation test system |
CN108490916A (en) * | 2018-03-29 | 2018-09-04 | 北京新能源汽车股份有限公司 | Simulation method, device and equipment for testing functions of motor controller |
CN108958222A (en) * | 2018-07-26 | 2018-12-07 | 威马智慧出行科技(上海)有限公司 | A kind of test macro based on electric vehicle controller hardware and emulation electric machine controller |
CN109521755A (en) * | 2019-01-21 | 2019-03-26 | 苏州华兴源创科技股份有限公司 | A kind of analogue system, rotation become test macro and rotation becomes test method |
CN110794803A (en) * | 2019-08-01 | 2020-02-14 | 中国第一汽车股份有限公司 | Test system and method of engine controller |
CN111830930A (en) * | 2020-07-15 | 2020-10-27 | 上海科梁信息工程股份有限公司 | Motor controller simulation test method, system, device and computer storage medium |
-
2021
- 2021-11-03 CN CN202111291743.5A patent/CN114527723B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5524498A (en) * | 1995-04-28 | 1996-06-11 | Delco Electronics Corporation | Motor feedback simulation for test equipment |
CN103970128A (en) * | 2014-05-23 | 2014-08-06 | 国家电网公司 | On-line real-time simulation testing system of wind generating set controller |
CN104111174A (en) * | 2014-08-06 | 2014-10-22 | 北京理工大学 | Rotating speed simulation device based on phase of vehicle engine |
CN105425609A (en) * | 2015-11-09 | 2016-03-23 | 沪东重机有限公司 | System for testing electric control hardware of low-speed diesel engine |
CN107315407A (en) * | 2017-08-31 | 2017-11-03 | 中国第汽车股份有限公司 | A kind of automotive motor controller emulation test system |
CN108490916A (en) * | 2018-03-29 | 2018-09-04 | 北京新能源汽车股份有限公司 | Simulation method, device and equipment for testing functions of motor controller |
CN108958222A (en) * | 2018-07-26 | 2018-12-07 | 威马智慧出行科技(上海)有限公司 | A kind of test macro based on electric vehicle controller hardware and emulation electric machine controller |
CN109521755A (en) * | 2019-01-21 | 2019-03-26 | 苏州华兴源创科技股份有限公司 | A kind of analogue system, rotation become test macro and rotation becomes test method |
CN110794803A (en) * | 2019-08-01 | 2020-02-14 | 中国第一汽车股份有限公司 | Test system and method of engine controller |
CN111830930A (en) * | 2020-07-15 | 2020-10-27 | 上海科梁信息工程股份有限公司 | Motor controller simulation test method, system, device and computer storage medium |
Non-Patent Citations (1)
Title |
---|
范恩随;武奇生;李艳波;: "机轮转速模拟系统的设计与实现", 工业仪表与自动化装置, no. 06, 15 December 2018 (2018-12-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN114527723B (en) | 2024-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103970128B (en) | A kind of Wind turbines controller online real-time simulation test system | |
EP2157488A2 (en) | Systems and methods for simulating plant operations | |
RU2515602C2 (en) | Method for manufacturing of smart system for complex development and testing of high-voltage converter | |
Raman et al. | Design and implementation of HIL simulators for powertrain control system software development | |
CN201829070U (en) | Hardware-in-the-loop simulating experiment platform for automatic transmission | |
CN110794803A (en) | Test system and method of engine controller | |
CN110926833A (en) | Electric automobile test system and test method | |
CN103034227A (en) | Testing method in circuit of battery electric vehicle vehicle-control unit model | |
CN111624987A (en) | Automatic test system of automobile motor controller | |
CN206162185U (en) | Vehicle control unit is at ring emulation test system | |
CN104898647A (en) | Automatic calibration simulation testing system for ECU stand | |
CN102890499A (en) | Method for loop testing of vehicle control unit software of pure electric automobile | |
CN111983933A (en) | In-loop simulation system for controller hardware of range extender | |
CN205002963U (en) | Pressurized strut load analogue means and semi -physical simulation tester | |
CN212586737U (en) | Automatic test system of automobile motor controller | |
CN109187046A (en) | A kind of hybrid vehicle system test platform architecture based on battery simulator | |
CN103543739B (en) | A kind of for verifying analogue system and the method for engine idle on off control | |
CN201740647U (en) | Testing system of engine controller | |
CN208239866U (en) | A kind of exerciser automatic electrical control system | |
CN114527723A (en) | Motor controller simulation test method, system, device and storage medium | |
WO2010005724A2 (en) | Systems and methods for automated simulation of a propulsion system and testing of propulsion control systems | |
CN213987201U (en) | In-loop simulation system for controller hardware of range extender | |
Reyneri et al. | Simulink-Based Codesign and Cosimulation of a Common Rail™ Injector Test Bench | |
CN104361818B (en) | Diesel engine electric control teaching experimental system and simulation method thereof | |
CN114488842A (en) | Simulation test system and method for electronic speed regulator of diesel engine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |