Rotary transformer signal simulation device and test system of motor controller
By designing a rotary signal simulation device, using analog input channels, signal generators and conversion modules, the simulation test of rotary signal is realized, which solves the problems of large land, large equipment weight and easy damage in the existing technology, and improves the motor Efficiency and flexibility of controller testing.
Patent Information
- Application Number
- CN202410940714.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-05
AI Technical Summary
The existing motor controller test solutions have problems such as large footprint, large equipment weight and difficult to move, rotary tooling and motors are easily damaged, and the solutions are not easy to integrate and control.
A rotary signal analog device is designed, including an analog input channel, a signal generator, a conversion module and an analog output channel. The rotary excitation signal of the motor controller is converted into an excitation digital signal through the analog input channel, and the signal generator generates a target. The conversion module converts the excitation digital signal and the target frequency signal into analog rotary signal, and inputs it to the motor controller through the analog output channel to realize the simulation test of the rotary signal, avoiding the real rotary tooling and Use of motor.
It improves the testing efficiency of the motor controller, reduces the footprint and weight, enhances the flexibility and safety of the test system, reduces power consumption, and adapts to the specific requirements of different models of motor controllers.
Smart Images

Figure CN118897535A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motor controller testing, and in particular to a resolver signal simulation device and a motor controller testing system. Background Art
[0002] An electric vehicle is a car that uses one or more electric motors as a power source instead of a traditional internal combustion engine (such as a gasoline or diesel engine). It has the advantages of energy saving, environmental protection and low cost. As energy and environmental issues become increasingly severe, electric vehicles have become the main development direction of the automotive industry. The motor controller is the core component of an electric vehicle. The motor controller controls the motor to provide driving power for the car according to the instructions of the electric vehicle control system. Therefore, the testing of the motor controller is particularly important.
[0003] At present, the motor controller is mainly tested through the resolver tooling (rotary transformer) and the motor. Specifically, the resolver is installed inside the motor, and the motor rotates to drive the resolver. The resolver transmits the real-time signal (resolver signal) to the motor controller so that the motor controller can analyze the motor rotor position and speed information. However, the above scheme has problems such as large footprint, heavy and difficult to move related equipment, easy damage of the resolver tooling and motor, and difficulty in integrated control, which need to be solved urgently. Summary of the invention
[0004] In view of this, the present invention provides a test system for a resolver signal simulation device and a motor controller to solve the problems of related technical solutions, such as large footprint, heavy and difficult-to-move related equipment, easy damage to the resolver tooling and motor, and difficulty in integrated control.
[0005] In a first aspect, the present invention provides a resolver signal simulation device, which includes an analog input channel, a signal generator, a conversion module and an analog output channel; the analog input channel is connected to a motor controller, and is used to receive a resolver excitation signal from the motor controller, and convert the resolver excitation signal into an excitation digital signal; the signal generator is connected to a computer device, and is used to receive a resolver control signal from the computer device, and generate a sine signal of a target frequency and a cosine signal of a target frequency based on the resolver control signal, wherein the resolver control signal includes a rotational speed and a pole pair number of the motor, and the target frequency is determined based on the rotational speed and the pole pair number; the conversion module is connected to the analog input channel and the signal generator, and is used to receive an excitation digital signal, a sine signal of a target frequency and a cosine signal of a target frequency, and generate an analog resolver signal according to the excitation digital signal, the sine signal of the target frequency and the cosine signal of the target frequency; the analog output channel is connected to the conversion module and the motor controller, and is used to receive an analog resolver signal, and forward the analog resolver signal to the motor controller.
[0006] The resolver signal simulation device provided by the present invention converts the resolver excitation signal output by the motor controller into an excitation digital signal through an analog input channel, converts the resolver control signal representing the motor speed related information provided by the computer device into a sine and cosine signal of a target frequency through a signal generator, and then converts the excitation digital signal and the sine and cosine signal of the target frequency into an analog resolver signal through a conversion module, and inputs the analog resolver signal into the motor controller through an analog output channel to test the performance of the motor controller. The resolver signal simulation device provided by the present invention can realize the simulation of resolver signals of various speeds on the same board through the mutual cooperation of the analog input channel, the signal generator, the conversion module and the analog output channel, without setting up a real resolver tooling and motor, avoiding the problems existing in the related art such as large floor space, heavy weight of the related equipment used and difficulty in moving, easy damage of the resolver tooling and motor, and difficulty in integrated control of the solution, thereby improving the test efficiency of the motor controller.
[0007] In an optional embodiment, the conversion module includes a normalization processing unit and a multiplier; the normalization processing unit is used to control the amplitude of the sine signal of the target frequency between -1 and 1 to obtain a normalized sine signal, and is used to control the amplitude of the cosine signal of the target frequency between -1 and 1 to obtain a normalized cosine signal; the multiplier is used to multiply the normalized sine signal with the excitation digital signal, and to multiply the normalized cosine signal with the excitation digital signal to obtain an analog resolver signal.
[0008] In an optional embodiment, the resolver control signal also includes a ratio coefficient; a multiplier is used to multiply the normalized sine signal, the excitation digital signal and the ratio coefficient, and to multiply the normalized cosine signal, the excitation digital signal and the ratio coefficient to obtain an analog resolver signal.
[0009] In this embodiment, the accuracy of the output simulated resolver signal can be adjusted by setting the transformation ratio coefficient to ensure that the simulated resolver signal matches the output characteristics of the actual resolver hardware, so that the resolver signal simulation device can adapt to the specific requirements of different types of motor controllers for resolver signals, meet the resolver specifications of various motor controllers, and improve the compatibility of the resolver signal simulation device.
[0010] In an optional embodiment, the resolver control signal also includes an upper cycle coefficient and a lower cycle coefficient, and the conversion module also includes a comparator; the comparator is used to output a first target cycle coefficient and a second target cycle coefficient, wherein the first target cycle coefficient is the upper cycle coefficient when the sine signal is in the upper half cycle, the first target cycle coefficient is the lower cycle coefficient when the sine signal is in the lower half cycle, the second target cycle coefficient is the upper cycle coefficient when the cosine signal is in the upper half cycle, and the second target cycle coefficient is the lower cycle coefficient when the cosine signal is in the lower half cycle; a multiplier is used to multiply the normalized sine signal, the excitation digital signal, the transformation ratio coefficient and the first target cycle coefficient, and multiply the normalized cosine signal, the excitation digital signal, the transformation ratio coefficient and the second target cycle coefficient to obtain an analog resolver signal.
[0011] In this embodiment, by setting the upper cycle coefficient and the lower cycle coefficient, the amplitude of half a cycle of the sine and cosine signals can be controlled individually, thereby generating an analog resolver signal with an envelope waveform of large and small waves, simulating a motor fault condition, and then testing the motor controller's ability to detect faults.
[0012] In an optional embodiment, when the resolver signal simulation device is in a normal simulation mode, the upper period coefficient and the lower period coefficient are both 1; when the resolver simulation device is in a large and small wave fault simulation mode, the upper period coefficient and the lower period coefficient are not both 1.
[0013] In an optional implementation, the signal generator determines the target frequency by the following formula:
[0014]
[0015] Among them, n represents the speed of the motor, f represents the target frequency, and p represents the number of pole pairs of the rotating magnetic field of the motor.
[0016] In an optional implementation, the analog input channel, the signal generator, the conversion module and the analog output channel are integrated into an FPGA board.
[0017] In an optional implementation, the computer device includes a PXIe 8861 controller, and the FPGA board is a PXI-7851R FPGA board.
[0018] In this embodiment, the resolver signal simulation device is integrated on the PXI-7851R FPGA board, and there is no need to consider issues such as power supply and integrated control interface. The chassis directly supplies power and control, making the motor controller test system more concise and efficient, and safer and more energy-saving than the method of testing with a real motor. Moreover, through the multi-channel analog input and output interface of the PXI-7851R FPGA board, it can be reused into multiple resolver signal simulation devices, or used as a redundant interface. If the interface is damaged, the interface can be replaced for continued use.
[0019] In an optional implementation, the motor controller and the analog input channel are connected via a first transformer, and the motor controller and the analog output channel are connected via a second transformer.
[0020] In a second aspect, the present invention provides a test system for a motor controller, comprising a motor controller, a computer device and a resolver signal simulation device according to the first aspect or any corresponding embodiment thereof; the analog input channel and the analog output channel of the resolver signal simulation device are connected to the motor controller, and the signal generator of the resolver signal simulation device is connected to the computer device. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 is a schematic structural diagram of a resolver signal simulation device according to an embodiment of the present invention;
[0023] Figure 2 is a schematic diagram of a specific structure of a resolver signal simulation device according to an embodiment of the present invention;
[0024] Figure 3 is a schematic diagram of a normal analog resolver signal according to an embodiment of the present invention;
[0025] Figure 4 is a schematic diagram of a large-wave and small-wave simulated resolver signal according to an embodiment of the present invention;
[0026] Figure 5 4 is a schematic diagram of the structure of a test system for a motor controller according to an embodiment of the present invention.
[0027] 100. Resolver signal simulation device; 110. Analog input channel; 120. Signal generator; 130. Conversion module; 131. Normalization processing unit; 132. Multiplier; 133. Comparator; 140. Analog output channel; 150. First transformer; 160. Second transformer; 200. Motor controller; 300. Computer equipment; 310. PXIe 8861 controller; 320. PXI-7851R FPGA board; 330. PXIe 1092 chassis. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0029] The present invention provides a resolver signal simulation device for simulating a resolver signal to test the performance of a motor controller. The motor controller may be a motor controller in a device that needs to control the operation of a motor, for example, a motor controller in an electric vehicle.
[0030] The resolver signal simulation device provided by the present invention converts the resolver excitation signal sent by the motor controller and the resolver control signal (motor speed information) sent by the computer device into an analog resolver signal through the mutual cooperation of an analog input channel, a signal generator, a conversion module and an analog output channel, and sends the analog resolver signal to the motor controller to test the performance of the motor controller. The analog input channel, the signal generator, the conversion module and the analog output channel in the present invention can be integrated on the same printed circuit board, and there is no need to set up a resolver tooling and a motor, thereby avoiding the problems existing in the related art such as large floor space occupation, heavy weight of the related equipment used and difficulty in movement, easy damage of the resolver tooling and the motor, and difficulty in integrated control of the solution, thereby improving the test efficiency of the motor controller.
[0031] The resolver signal simulation device provided by the present invention is described in detail below with reference to the accompanying drawings.
[0032] For example, Figure 1 As shown, the resolver signal simulation device 100 provided by the present invention includes an analog input channel 110 , a signal generator 120 , a conversion module 130 and an analog output channel 140 .
[0033] The analog input channel 110 is connected to the motor controller 200 , and is used to receive the resolver excitation signal from the motor controller 200 , and convert the resolver excitation signal into an excitation digital signal.
[0034] It should be understood that the resolver excitation signal refers to an AC signal generated by the motor controller and applied to the excitation coil of the resolver sensor (a position sensor commonly used in motor control), usually an AC current of constant frequency. The function of the resolver is to accurately measure the position, speed and rotation direction of the motor rotor, and transmit the signal representing the position, speed and rotation direction of the motor rotor to the motor controller. In the present invention, the resolver excitation signal is input to the conversion module 130 by the analog input channel 110.
[0035] Exemplarily, the resolver excitation signal may be a sinusoidal signal with an amplitude of ±10V and a frequency of 10KHz. The analog input channel 110 includes an analog-to-digital conversion unit, which is used to convert the resolver excitation signal output by the motor controller 200 into a digital signal.
[0036] The signal generator 120 is connected to the computer device 300, and the signal generator 120 is used to receive the resolver control signal from the computer device 300, and generate a sine signal of a target frequency and a cosine signal of a target frequency based on the resolver control signal. Specifically, for the convenience of description, the sine signal of the target frequency and the cosine signal of the target frequency are referred to as sine and cosine signals of the target frequency.
[0037] The resolver control signal includes the speed and pole pair number of the motor, and the target frequency is determined based on the speed and pole pair number. Specifically, the signal generator 120 refers to a digital circuit module that can generate signals of different frequencies, shapes (sine (SIN) waves and cosine (COS) waves) and amplitudes through programming. Exemplarily, the signal generator 120 can be designed based on a field programmable gate array (FPGA).
[0038] The conversion module 130 is connected to the analog input channel 110 and the signal generator 120, and is used to receive the excitation digital signal, the sine signal of the target frequency, and the cosine signal of the target frequency, and generate an analog resolver signal according to the excitation digital signal, the sine signal of the target frequency, and the cosine signal of the target frequency. The analog output channel 140 is connected to the conversion module 130 and the motor controller 200, and is used to receive the analog resolver signal and forward the analog resolver signal to the motor controller 200.
[0039] Among them, the analog resolver signal is a SIN signal and a COS signal that carry information such as the position, speed and rotation direction of the motor rotor. After the motor controller 200 receives the analog resolver signal, it determines the position and / or speed of the motor shaft by decoding the analog resolver signal, and determines the motor rotation angle by analyzing the phase difference and amplitude of the SIN signal and the COS signal.
[0040] The resolver signal simulation device provided by the present invention converts the resolver excitation signal output by the motor controller into an excitation digital signal through an analog input channel, converts the resolver control signal representing the motor speed related information provided by the computer device into a sine and cosine signal of a target frequency through a signal generator, and then converts the excitation digital signal and the sine and cosine signal of the target frequency into an analog resolver signal through a conversion module, and inputs the analog resolver signal into the motor controller through an analog output channel to test the performance of the motor controller. The resolver signal simulation device provided by the present invention can realize the simulation of resolver signals of various speeds on the same board through the mutual cooperation of the analog input channel, the signal generator, the conversion module and the analog output channel, without setting up a real resolver tooling and motor, avoiding the problems existing in the related art such as large floor space, heavy weight of the related equipment used and difficulty in moving, easy damage of the resolver tooling and motor, and difficulty in integrated control of the solution, thereby improving the test efficiency of the motor controller.
[0041] Exemplarily, the signal generator 120 may determine the frequencies (target frequencies) of the generated sine and cosine signals by the following formula (1):
[0042]
[0043] Among them, n represents the speed of the motor in revolutions per minute, f represents the target frequency in hertz (Hz), 60 represents 60 seconds per minute, and p represents the number of pole pairs of the rotating magnetic field of the motor.
[0044] Exemplarily, the analog input channel 110, the signal generator 120, the conversion module 130 and the analog output channel 140 in the present invention may be integrated into an FPGA board.
[0045] Specifically, the signal generator 120 is a unique function of FPGA programming, which can directly generate triangular signals, pulse signals, etc. of various frequencies in the FPGA. The signal generator 120 converts the speed value and pole pair number simulated by the computer device according to the above formula (1) to obtain the target frequency of the sine and cosine signals (sine signal and cosine signal). At the same time, the signal generator 120 can generate a SIN waveform and a COS waveform (a high-resolution waveform with an amplitude other than 1), the frequencies of the SIN waveform and the COS waveform are consistent, and the phase difference between the SIN waveform and the COS waveform is 90°.
[0046] Exemplarily, the motor speed in the resolver control signal output by the computer device can be based on the input confirmation of the staff, or can be randomly generated by the computer device within a certain range. For example, the motor speed can range from -50000rpm to 50000rpm, for example, the motor speed can be -50000rpm, -48000rpm, -20000rpm, 10000rpm, 30000rpm or 50000rpm, etc.
[0047] The specific structure of the conversion module 130 is described below with reference to the accompanying drawings.
[0048] For example, Figure 2 As shown, the conversion module 130 includes a normalization processing unit 131 and a multiplier 132, wherein the number of the multipliers 132 is multiple.
[0049] Specifically, the normalization processing unit 131 is used to control the amplitude range of the sine signal of the target frequency between -1 and 1 to obtain a normalized sine signal, and is used to control the amplitude range of the cosine signal of the target frequency between -1 and 1 to obtain a normalized cosine signal.
[0050] The multiplier 132 is used to multiply the normalized sine signal with the excitation digital signal, and to multiply the normalized cosine signal with the excitation digital signal, so as to obtain an analog resolver signal.
[0051] Specifically, after the signal generator 120 generates the sine and cosine signals of the target frequency, the generated sine and cosine signals are normalized to obtain the normalized sine signal (sin(θ)) and the normalized cosine signal (cos(θ)), and then sin(θ) and cos(θ) are respectively compared with the excitation digital signal (U s ×sin(ωt)) to obtain the analog resolver signal.
[0052] That is, after determining the excitation digital signal and the normalized sine and cosine signals, the conversion module 130 can determine the analog resolver signal by the following formula (2).
[0053]
[0054] Among them, V sin Represents the resolver sinusoidal signal, V cos Represents the resolver cosine signal, V sin and V cos Composed of analog resolver signal, U s represents the amplitude of the resolver excitation signal, sin(ωt) represents the frequency of the resolver excitation signal, U s ×sin(ωt) represents the excitation digital signal Vref , sin(θ) represents the normalized sine signal, and cos(θ) represents the normalized cosine signal.
[0055] Furthermore, if Figure 2 As shown, the resolver control signal also includes a ratio coefficient k, which is used to adjust the amplitude of the sine and cosine signals. The ratio coefficient can be the ratio between the peak-to-peak voltage of the sine and cosine signals and the peak-to-peak voltage of the resolver excitation signal.
[0056] It should be understood that the peak-to-peak voltage V pp It represents the absolute value of the voltage difference from the positive maximum value to the negative maximum value in a complete cycle of a sine wave or cosine wave, V pp It is the maximum range of signal amplitude, reflecting the maximum amplitude of signal fluctuation.
[0057] Specifically, in this embodiment, the multiplier 132 is used to multiply the normalized sine signal, the excitation digital signal and the ratio coefficient, and to multiply the normalized cosine signal, the excitation digital signal and the ratio coefficient to obtain the analog resolver signal. That is, the multiplier 132 multiplies sin(θ) and cos(θ) by the excitation digital signal (U s ×sin(ωt)), the amplitude of the obtained sine and cosine signals is adjusted according to the transformation ratio coefficient to obtain the analog resolver signal.
[0058] That is, in this embodiment, the conversion module 130 can determine the analog resolver signal by the following formula (3).
[0059]
[0060] Among them, k is the transformation ratio coefficient.
[0061] In this embodiment, the accuracy of the output simulated resolver signal can be adjusted by setting the transformation ratio coefficient to ensure that the simulated resolver signal matches the output characteristics of the actual resolver hardware, so that the resolver signal simulation device can adapt to the specific requirements of different types of motor controllers for resolver signals, meet the resolver specifications of various motor controllers, and improve the compatibility of the resolver signal simulation device.
[0062] Furthermore, if Figure 2 As shown, the resolver control signal further includes an upper period coefficient j1 and a lower period coefficient j2, and the conversion module 130 further includes a comparator 133. The upper period coefficient j1 and the lower period coefficient j2 can be determined by the staff according to the test requirements.
[0063] Specifically, the comparator 133 is used to output the first target period coefficient j t1and the second target period coefficient j t2 , where the first target period coefficient j t1 When the sinusoidal signal is in the upper half cycle, it is the upper cycle coefficient, and the first target cycle coefficient j t1 When the sinusoidal signal is in the lower half cycle, it is the lower cycle coefficient, and the second target cycle coefficient j t2 When the cosine signal is in the upper half cycle, it is the upper cycle coefficient, and the second target cycle coefficient j t2 When the cosine signal is in the lower half cycle, it is the lower cycle coefficient.
[0064] Exemplarily, the upper half cycle of a sine signal may refer to a moment when the amplitude of the sine signal is positive (above the baseline), the lower half cycle of a sine signal may refer to a moment when the amplitude of the sine signal is negative (below the baseline), the upper half cycle of a cosine signal may refer to a moment when the amplitude of the cosine signal is positive, and the lower half cycle of a cosine signal may refer to a moment when the amplitude of the cosine signal is negative.
[0065] In this embodiment, the multiplier is used to multiply the normalized sine signal, the excitation digital signal, the transformation ratio coefficient and the first target period coefficient, and to multiply the normalized cosine signal, the excitation digital signal, the transformation ratio coefficient and the second target period coefficient to obtain an analog resolver signal.
[0066] That is, the conversion module 130 can determine the analog resolver signal by the following formula (4).
[0067]
[0068] Among them, j t1 represents the first target period coefficient, j t2 Represents the second target period coefficient.
[0069] In this embodiment, by setting the upper cycle coefficient and the lower cycle coefficient, the amplitude of half a cycle of the sine and cosine signals can be controlled individually, thereby generating an analog resolver signal with an envelope waveform of large and small waves, simulating a motor fault condition, and then testing the motor controller's ability to detect faults.
[0070] Specifically, when the resolver signal simulation device is in the normal simulation mode, the upper period coefficient and the lower period coefficient are both 1. At this time, the generated simulated resolver signal can be as follows: Figure 3 As shown; when the resolver simulation device is in the large and small wave fault simulation mode, the upper cycle coefficient and the lower cycle coefficient are not both 1. At this time, the generated simulated resolver signal can be as follows Figure 4 shown.
[0071] Exemplarily, in order to simulate a real resolver hardware scenario and be compatible with a wider excitation input range, the motor controller 200 is connected to the analog input channel via the first transformer 150 , and the motor controller 200 is connected to the analog output channel via the second transformer 160 .
[0072] Among them, Figure 5 As shown, the primary side of the first transformer 150 is connected to the motor controller 200, and the secondary side of the first transformer 150 is connected to the analog input channel ( Figure 5 The primary side of the second transformer 160 is connected to the analog output channel ( Figure 5 The secondary side of the second transformer 160 is connected to the motor controller 200.
[0073] Specifically, the first transformer is used to reduce the voltage of the resolver excitation signal, and the secondary side of the first transformer 150 is a step-down terminal, that is, the voltage of the primary side of the first transformer 150 is greater than the voltage of the secondary side of the first transformer 150. For example, if the amplitude of the resolver excitation signal output by the motor controller is a sine wave of ±10V, after passing through the first transformer 150, the analog input channel receives an induced sine signal with an amplitude less than ±10V. The second transformer 160 can be a 1:1 transformer, which is used to isolate the analog output channel 140 and the motor controller 200.
[0074] For example, Figure 5 As shown, the computer device includes a peripheral component interconnect extensions for instrumentation (PXIe) 8861 controller 310, and the FPGA board is a PXI-7851R FPGA board.
[0075] Specifically, the computer device can be an industrial computer, which includes a PXIe 1092 chassis 330, a PXIe8861 controller 310 and a PXI-7851R FPGA board 320. The above-mentioned resolver signal simulation device 100 is integrated (deployed) on the PXI-7851R FPGA board 320. The PXIe 8861 controller 310 is connected to the resolver signal simulation device 100 to provide a resolver control signal for the signal generator 120 of the resolver signal simulation device 100.
[0076] Among them, the PXIe 1092 chassis 330 is the carrier of the PXIe 8861 controller 310 and the PXI-7851R FPGA board 320. The PXIe 1092 chassis 330 supplies power to the PXIe 8861 controller 310 and the PXI-7851R FPGA board 320. The PXIe 8861 controller 310 communicates with the resolver signal simulation device 100 on the PXI-7851R FPGA board 320 through the bus of the PXIe 1092 chassis 330. The above method can save a series of supporting resources and improve the integration of the motor controller test system.
[0077] Specifically, in the related art, sometimes simulated resolver signals can be generated by a resolver simulator tool provided by a supplier. However, this resolver simulator tool requires a specific integrated control interface (such as a serial port and a controller area network (CAN) bus) to connect to a host computer, has a slow response control speed, and also requires a power supply.
[0078] In this embodiment, the rotary signal simulation device 100 is integrated on the PXI-7851R FPGA board 320, so there is no need to consider issues such as power supply and integrated control interface, and there is no need to occupy CAN communication resources. The chassis is directly powered and controlled, making the test system of the motor controller more concise and efficient, and safer and more energy-saving than the method of testing through a real motor. Moreover, through the multi-channel analog input and output interface of the PXI-7851R FPGA board 320, it can be reused into multiple rotary signal simulation devices 100, or used as a redundant interface. If the interface is damaged, the interface can be replaced and continued to be used. In addition, it also has a field programmable function to customize the rotary algorithm (the above formula (2) or formula (3)) and the fault simulation algorithm (the above formula (4)).
[0079] The present invention also provides a test system for a motor controller, such as Figure 5 As shown, the test system of the motor controller includes a motor controller 200, a computer device and the resolver signal simulation device 100 provided in any one of the above embodiments.
[0080] The analog input channel and the analog output channel of the resolver signal simulation device are connected to the motor controller 200 , and the signal generator of the resolver signal simulation device is connected to the PXIe 8861 controller 310 of the computer equipment.
[0081] Specifically, the motor controller 200's resolver excitation signal (EXC+ and EXC-) is connected to the primary side of the first transformer, the analog input interface (AI+ and AI-) is connected to the secondary side (step-down end) of the first transformer, the analog resolver signal (resolver recovery signal SIN+, SIN-, COS+ and COS-) of the motor controller 200 is connected to the secondary side of the second transformer, and the analog output interface (AO+ and AO-) is connected to the primary side of the second transformer.
[0082] The motor controller 200 generates a resolver excitation signal (sine wave with an amplitude of ±10V and a frequency of 10KHz), which is stepped down by the first transformer to an induction sinusoidal signal V with an amplitude less than ±10V and a constant frequency. ref , this V ref The signal is collected by the analog input channel, and the analog input channel collects the reduced-voltage resolver excitation signal (the induced sinusoidal signal V ref ) is converted into an excitation digital signal (U s ×sin(ωt)), the excitation digital signal is related to the voltage at the time of acquisition. The higher the voltage, the larger the value, and it can be positive or negative. In this embodiment, the value corresponding to the maximum voltage of the FPGA board is 32767.
[0083] The signal generator obtains the target frequency of the sine and cosine signals according to the above formula (1), the simulated speed value and the pole pair number, and generates a SIN waveform and a COS waveform at the same time. The waveform frequencies of the SIN waveform and the COS waveform are consistent, and the phase difference between the SIN waveform and the COS waveform is 90°. After that, the conversion module normalizes the generated sine and cosine signals to obtain normalized sin(θ) and cos(θ).
[0084] Then, the normalized sin(θ) and cos(θ) are compared with the excitation digital signal U s ×sin(ωt) to obtain the original analog resolver signal (U s ×sin(ωt)×sin(θ), U s ×sin(ωt)×cos(θ)); then adjust the amplitude of the original analog resolver signal according to the ratio coefficient k to obtain the final analog resolver signal (k×U s ×sin(ωt)×sin(θ), k×U s ×sin(ωt)×cos(θ)). The final analog resolver signal is then mapped to the analog output interface and then transmitted to the motor controller.
[0085] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0086] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0087] 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.
[0088] In the description of this specification, the description with reference to the terms "this embodiment", "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0089] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0090] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the present invention.
Claims
1. A resolver signal simulation device, characterized in that: The resolver signal simulation device comprises an analog input channel, a signal generator, a conversion module and an analog output channel; The analog input channel is connected to the motor controller, and is used to receive the resolver excitation signal from the motor controller, and convert the resolver excitation signal into an excitation digital signal; The signal generator is connected to the computer device, and is used to receive a resolver control signal from the computer device, and generate a sine signal of a target frequency and a cosine signal of the target frequency based on the resolver control signal, wherein the resolver control signal includes a rotation speed and a pole pair number of the motor, and the target frequency is determined based on the rotation speed and the pole pair number; The conversion module is connected to the analog input channel and the signal generator, and is used to receive the excitation digital signal, the sine signal of the target frequency, and the cosine signal of the target frequency, and generate an analog resolver signal according to the excitation digital signal, the sine signal of the target frequency, and the cosine signal of the target frequency; The analog output channel is connected to the conversion module and the motor controller, and is used to receive the analog resolver signal and forward the analog resolver signal to the motor controller.
2. The resolver signal simulation device according to claim 1, characterized in that: The conversion module includes a normalization processing unit and a multiplier; The normalization processing unit is used to control the amplitude of the sine signal of the target frequency between -1 and 1 to obtain a normalized sine signal, and is used to control the amplitude of the cosine signal of the target frequency between -1 and 1 to obtain a normalized cosine signal; The multiplier is used to multiply the normalized sine signal with the excitation digital signal, and to multiply the normalized cosine signal with the excitation digital signal to obtain the analog resolver signal.
3. The resolver signal simulation device according to claim 2, characterized in that: The resolver control signal also includes a transformation ratio coefficient; The multiplier is used to multiply the normalized sine signal, the excitation digital signal and the transformation ratio coefficient, and to multiply the normalized cosine signal, the excitation digital signal and the transformation ratio coefficient to obtain the analog resolver signal.
4. The resolver signal simulation device according to claim 3, characterized in that: The resolver control signal further includes an upper period coefficient and a lower period coefficient, and the conversion module further includes a comparator; The comparator is used to output a first target cycle coefficient and a second target cycle coefficient, wherein the first target cycle coefficient is the upper cycle coefficient when the sine signal is in the upper half cycle, the first target cycle coefficient is the lower cycle coefficient when the sine signal is in the lower half cycle, the second target cycle coefficient is the upper cycle coefficient when the cosine signal is in the upper half cycle, and the second target cycle coefficient is the lower cycle coefficient when the cosine signal is in the lower half cycle; The multiplier is used to multiply the normalized sine signal, the excitation digital signal, the transformation ratio coefficient and the first target period coefficient, and multiply the normalized cosine signal, the excitation digital signal, the transformation ratio coefficient and the second target period coefficient to obtain the analog resolver signal.
5. The resolver signal simulation device according to claim 4, characterized in that: When the resolver signal simulation device is in a normal simulation mode, the upper period coefficient and the lower period coefficient are both 1; when the resolver simulation device is in a large and small wave fault simulation mode, the upper period coefficient and the lower period coefficient are not both 1.
6. The resolver signal simulation device according to any one of claims 1 to 5, characterized in that: The signal generator determines the target frequency by the following formula: Wherein, n represents the rotation speed of the motor, f represents the target frequency, and p represents the number of pole pairs of the rotating magnetic field of the motor.
7. The resolver signal simulation device according to any one of claims 1 to 5, characterized in that: The analog input channel, the signal generator, the conversion module and the analog output channel are integrated into an FPGA board.
8. The resolver signal simulation device according to claim 7, characterized in that: The computer device includes a PXIe8861 controller, and the FPGA board is a PXI-7851R FPGA board.
9. The resolver signal simulation device according to any one of claims 1 to 5, characterized in that: The motor controller and the analog input channel are connected via a first transformer, and the motor controller and the analog output channel are connected via a second transformer.
10. A motor controller testing system, characterized in that: It comprises a motor controller, a computer device and a resolver signal simulation device as claimed in any one of claims 1 to 9; The analog input channel and the analog output channel of the resolver signal simulation device are connected to the motor controller, and the signal generator of the resolver signal simulation device is connected to the computer device.
Citation Information
Cited By
Waveform simulation device and test system
CN121596105A
