Simulation system and method of rotary transformer supporting self-correction and fault injection
Patent Information
- Application Number
- CN202411146097.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-26
AI Technical Summary
The existing rotary transformer simulators have poor accuracy and poor real-time performance, and cannot realize the fault injection and self-correction functions, resulting in poor rotation decoding testing and increasing development costs and cycles.
A system including a host computer, a motor controller and a rotary simulator was designed to calculate the sinusoidal and cosine signals in real time through the processing unit, support self-correction and fault injection functions, and use redundant sampling and cyclic compensation mechanisms to improve system accuracy and stability.
It improves the real-time and accuracy of the system, realizes self-correction and fault detection, enhances the system's fault detection capabilities and self-protection capabilities, and ensures the accuracy and safety of measurement or simulation results.
Smart Images

Figure CN119024815A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of new energy electric vehicle motor control, and more specifically, to a simulation system and method for a rotary transformer supporting self-correction and fault injection. Background Art
[0002] New energy vehicles are a rapidly developing industry, and motors and their controllers are a vital part of new energy vehicles. Among them, the resolver is a sensor used to monitor important control information such as motor speed and position. The resolver outputs sine and cosine signals, which need to be decoded by resolver decoding (hard decoding or soft decoding) to decode the motor rotor angle and speed information. In order to determine the quality of resolver decoding and whether faults can be identified, if the actual object is used for testing, developers need to invest a lot of manpower, material resources, and financial resources, resulting in increased costs and extended development cycles. Therefore, it is necessary to develop a portable and miniaturized resolver simulator to simulate the resolver and test the resolver decoding effect. The resolver simulator in the prior art has poor accuracy, poor real-time performance, inability to implement fault injection, and inability to self-correct. If there is a problem with the analog signal generated by itself, the test effect of the resolver decoding cannot be guaranteed.
[0003] Therefore, there is an urgent need to provide a simulation system and method for a rotary transformer that supports self-correction and fault injection. Summary of the invention
[0004] In view of this, the present invention provides a simulation system and method for a rotary transformer supporting self-correction and fault injection, so as to improve the real-time performance and accuracy of the system and realize the self-correction and fault injection functions at the same time.
[0005] On the one hand, the present invention provides a simulation system of a resolver supporting self-correction and fault injection, comprising a host computer, a motor controller and a resolver simulator, wherein:
[0006] The host computer is electrically connected to the resolver simulator and the motor controller, respectively, and is used to input the first angle information, the first speed information and the first acceleration information, and is also used to monitor the second angle information and the second speed information obtained by the resolver decoding of the motor controller through the debugger, and compare them with the first angle information and the first speed information, respectively, to detect the resolver decoding effect of the motor controller;
[0007] The motor controller is electrically connected to the resolver simulator and the host computer respectively, and is used to send an excitation signal, and is also used to perform resolver decoding according to the sine differential signal and the cosine differential signal generated by the resolver simulator to obtain the second speed information and the second angle information;
[0008] A resolver simulator includes a processing unit, a first peripheral circuit, and a second peripheral circuit, wherein:
[0009] The processing unit is electrically connected to the host computer, the first peripheral circuit, and the second peripheral circuit, respectively, and is used to receive the excitation signal sent by the motor controller and the first speed information, the first acceleration information, and the first angle information input by the host computer, and use the excitation signal, the first speed information, the first acceleration information, and the first angle information to calculate the sine induction signal value and the cosine induction signal value in real time, and output the sine pulse width modulation signal and the cosine pulse width modulation signal accordingly, input the sine pulse width modulation signal to the first peripheral circuit, and input the cosine pulse width modulation signal to the second peripheral circuit; the processing unit is also used to perform redundant sampling on the excitation signal to detect whether the excitation signal input is faulty; the processing unit is also used to sample the sine differential signal and the cosine differential signal from the first peripheral circuit and the second peripheral circuit, respectively, and calculate the sampled values to obtain calculated values, and perform cyclic compensation self-correction on the calculated values so that the sampled values and the calculated values are the same within a preset range;
[0010] The first peripheral circuit is electrically connected to the processing unit and the motor controller, and is used to receive the sinusoidal pulse width modulation signal, process the sinusoidal pulse width modulation signal, generate a sinusoidal differential signal, and feed it back to the motor controller;
[0011] The second peripheral circuit is electrically connected to the processing unit and the motor controller respectively, and is used for receiving the cosine pulse width modulation signal, processing the cosine pulse width modulation signal, generating a cosine differential signal, and feeding back the cosine differential signal to the motor controller.
[0012] On the other hand, the present invention also provides a method for simulating a rotary transformer supporting self-correction and fault injection, comprising the steps of:
[0013] The host computer inputs first angle information, first speed information and first acceleration information;
[0014] The motor controller sends an excitation signal;
[0015] The processing unit of the resolver simulator receives the first speed information, the first acceleration information and the first angle information input by the host computer, collects the excitation signal, performs coupling, and calculates the sine sensing signal value and the cosine sensing signal value to be output in real time. The processing unit converts the multi-bit sine sensing signal value and the cosine sensing signal value into corresponding single-bit sine pulse width modulation signal and cosine pulse width modulation signal and outputs them to the first peripheral circuit and the second peripheral circuit of the resolver simulator. The first peripheral circuit processes the sine pulse width modulation signal to obtain a sine differential signal and sends it to the motor controller. The second peripheral circuit processes the cosine pulse width modulation signal to obtain a cosine differential signal and sends it to the motor controller.
[0016] The motor controller receives the sine differential signal and the cosine differential signal, calculates the second angle information and the second speed information, and sends them to the host computer;
[0017] The host computer compares the first angle information and the second angle information, the first speed information and the second speed information respectively, and determines the decoding effect of the motor controller resolver. When the first angle information and the second angle information, the first speed information and the second speed information are equal within a preset range, the motor controller resolver decoding accuracy is high; when the first angle information and the second angle information, the first speed information and the second speed information are not equal within the preset range, the motor controller resolver decoding accuracy is low;
[0018] It also includes: a processing unit performs redundant sampling on the excitation signal to detect whether the excitation signal input is faulty;
[0019] The processing unit samples the sine differential signal from the first peripheral circuit and the cosine differential signal from the second peripheral circuit, and calculates the sampling values of the sine differential signal and the cosine differential signal to obtain calculated values respectively, and performs cyclic compensation self-correction on the calculated values so that the sampling value and the calculated value are the same within a preset range.
[0020] Optionally, also include:
[0021] Host computer input phase deviation fault, amplitude fault and / or overspeed fault;
[0022] When the host computer inputs a phase shift fault, the processing unit delays the sinusoidal pulse width modulation signal to complete the phase shift according to the phase value corresponding to the phase shift fault;
[0023] When the upper computer inputs an amplitude fault, the processing unit adjusts the duty cycle of the sine pulse width modulation signal or the cosine pulse width modulation signal according to the amplitude value corresponding to the amplitude fault;
[0024] When an overspeed fault is input to the host computer, the processing unit no longer accepts the angle value transmitted by the host computer, and performs sine sensing signal calculation and cosine sensing signal calculation according to the built-in speed value of the processing unit.
[0025] Compared with the prior art, the simulation system and method of the rotary transformer supporting self-correction and fault injection provided by the present invention achieve at least the following beneficial effects:
[0026] The simulation system of a rotary transformer supporting self-correction and fault injection of the present invention comprises a host computer, a motor controller and a rotary transformer simulator, wherein the host computer inputs first angle information, first speed information and first acceleration information, and the motor controller sends an excitation signal; the rotary transformer simulator receives the excitation signal sent by the motor controller and the first speed information, first acceleration information and first angle information input by the host computer, and uses the excitation signal, the first speed information, the first acceleration information and the first angle information, so that a processing unit of the rotary transformer simulator calculates a sine sensing signal value and a cosine sensing signal value in real time, and outputs a sine pulse width modulation signal and a cosine pulse width modulation signal correspondingly, a first peripheral circuit processes the sine pulse width modulation signal to generate a sine differential signal, and a second peripheral circuit processes the cosine pulse width modulation signal to generate a cosine differential signal, and feeds back the signal to the motor controller. The motor controller performs resolver decoding on the sine differential signal and cosine differential signal generated by the resolver simulator to obtain second speed information and second angle information. The host computer monitors the second angle information and second speed information obtained by the resolver decoding of the motor controller through a debugger, and compares them with the first angle information and the first speed information, respectively, to detect the resolver decoding effect of the motor controller. The processing unit of the resolver simulator in the present invention supports signal verification, performs redundant sampling of the excitation signal, and detects whether the excitation signal input is faulty, thereby improving the accuracy and stability of the system, and enhancing the fault detection capability and self-protection capability of the system, so that the system can operate stably in various complex and harsh environments; the processing unit of the resolver simulator also supports self-correction, samples the sine differential signal and the cosine differential signal from the first peripheral circuit and the second peripheral circuit respectively, and calculates the sampled values to obtain the calculated values, and performs cyclic compensation self-correction on the calculated values, that is, fine-tuning the calculated values or control parameters according to the size and direction of the difference to reduce the difference, so that the sampled value and the calculated value are the same within a preset range, and the process of realizing self-correction is an iterative process, which will be repeated after each sampling and calculation. Through continuous comparison, correction and adjustment, the system can gradually reduce the difference between the sampled value and the calculated value, so that the two are consistent within a preset range. This self-correction mechanism improves the accuracy and stability of the system, so that the system can better adapt to changes in external conditions and drifts of internal parameters.
[0027] This simulation system is real-time and highly accurate, and can automatically detect and correct parameter changes to ensure the accuracy of measurement or simulation results and improve the accuracy, reliability and safety of the system.
[0028] The simulation system of the rotary transformer supporting self-correction and fault injection of the present invention also supports a fault injection function. The host computer sets fault information, and the processing unit of the rotary transformer simulator adjusts the sinusoidal pulse width modulation signal or the cosine pulse width modulation signal according to the fault information of the host computer, or calculates the sinusoidal induction signal and the cosine induction signal according to the fault information of the host computer, thereby realizing the fault injection function and simulating various fault conditions that may occur in actual operation, so as to perform fault testing, diagnosis and verification on the control system and improve the accuracy, reliability and safety of the system.
[0029] The simulation method of the rotary transformer supporting self-correction and fault injection of the present invention has real-time sampling and high precision, can automatically detect and correct parameter changes to ensure the accuracy of measurement or simulation results, and can also simulate various fault conditions that may occur in actual operation to perform fault testing, diagnosis and verification on the control system.
[0030] Of course, any product implementing the present invention does not necessarily need to achieve all of the technical effects described above at the same time.
[0031] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0033] Figure 1 It is a structural diagram of a simulation system of a rotary transformer supporting self-correction and fault injection provided by the present invention;
[0034] Figure 2 It is a flow chart of a simulation method of a rotary transformer supporting self-correction and fault injection provided by the present invention;
[0035] Figure 3 This is a flow chart of another method for simulating a rotary transformer supporting self-correction and fault injection provided by the present invention. DETAILED DESCRIPTION
[0036] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0037] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0038] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0039] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0040] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0041] Example 1
[0042] Combination Figure 1 This embodiment provides a resolver simulation system supporting self-correction and fault injection, including a host computer 10, a motor controller 30 and a resolver simulator 20.
[0043] The host computer 10 is electrically connected to the resolver simulator 20 and the motor controller 30, respectively, and is used to input the first angle information, the first speed information and the first acceleration information, and is also used to monitor the second angle information and the second speed information obtained by the resolver decoding of the motor controller 30 through the debugger 40, and compare them with the first angle information and the first speed information, respectively, to detect the resolver decoding effect of the motor controller 30;
[0044] The debugger 40 is an important tool used by the host computer 10 to monitor and debug the motor controller 30. The debugger 40 can receive and display various status information and monitoring data returned by the motor controller 30 in real time, including the second angle information and the second speed information obtained by the resolver decoding, etc. Optionally, the host computer 10 and the motor controller 30 are connected via a CAN bus or other communication methods.
[0045] The motor controller 30 is electrically connected to the resolver simulator 20 and the host computer 10, respectively, and is used to send an excitation signal (EXC+ / EXC-), and is also used to perform resolver decoding according to the sine differential signal (SIN+ / SIN-) and the cosine differential signal (COS+ / COS-) generated by the resolver simulator 20 to obtain the second speed information and the second angle information;
[0046] The resolver simulator 20 includes a processing unit 201, a first peripheral circuit 202, and a second peripheral circuit 203, wherein:
[0047] The processing unit 201 is electrically connected to the host computer 10, the first peripheral circuit 202, and the second peripheral circuit 203, respectively, and is used to receive the excitation signal (EXC+ / EXC-) sent by the motor controller 30 and the first speed information, the first acceleration information, and the first angle information input by the host computer 10, and calculate the sine sensing signal value Esin and the cosine sensing signal value Ecos in real time by using the excitation signal (EXC+ / EXC-), the first speed information, the first acceleration information, and the first angle information, and output a sine pulse width modulation signal (SIN_SPWM+ / SIN_SPWM-) and a cosine pulse width modulation signal (COS_SPWM+ / COS_SPWM-) correspondingly, and convert the sine pulse width modulation signal (S IN_SPWM+ / SIN_SPWM-) is input to the first peripheral circuit 202, and the cosine pulse width modulation signal (COS_SPWM+ / COS_SPWM-) is input to the second peripheral circuit 203; the processing unit 201 is also used to perform redundant sampling on the excitation signal (EXC+ / EXC-) to detect whether the excitation signal (EXC+ / EXC-) input is faulty; the processing unit 201 is also used to sample the sine difference signal (SIN+ / SIN-) and the cosine difference signal (COS+ / COS-) from the first peripheral circuit 202 and the second peripheral circuit 203, respectively, and calculate the sampled values to obtain calculated values, and perform cyclic compensation self-correction on the calculated values, so that the sampled values and the calculated values are the same within a preset range;
[0048] The first peripheral circuit 202 is electrically connected to the processing unit 201 and the motor controller 30, respectively, and is used to receive the sinusoidal pulse width modulation signal (SIN_SPWM+ / SIN_SPWM-), process the sinusoidal pulse width modulation signal (SIN_SPWM+ / SIN_SPWM-), generate a sinusoidal differential signal (SIN+ / SIN-), and feed it back to the motor controller 30;
[0049] The second peripheral circuit 203 is electrically connected to the processing unit 201 and the motor controller 30 respectively, and is used for receiving the cosine pulse width modulation signal (COS_SPWM+ / COS_SPWM-), processing the cosine pulse width modulation signal (COS_SPWM+ / COS_SPWM-), generating a cosine difference signal (COS+ / COS-), and feeding back the cosine difference signal to the motor controller 30.
[0050] Specifically, the host computer 10 plays an important role in the simulation system of the rotary transformer supporting self-correction and fault injection, and can set various parameters required by the simulation system, such as speed, rotation angle, number of pole pairs, etc., to ensure that the simulation system can operate according to the predetermined requirements. Figure 1As shown, the host computer 10 is electrically connected to the resolver simulator 20 and the motor controller 30, and the first angle information, the first speed information and the first acceleration information can be input therein. After the subsequent motor controller 30 obtains the second angle information and the second speed information through resolver decoding, the second angle information is compared with the first angle information, and the second speed information is compared with the first speed information. If the second angle information is the same as the first angle information, if the second speed information is the same as the first speed information, the resolver decoding effect of the motor controller 30 is good. If the second angle information is greatly different from the first angle information, if the second speed information is greatly different from the first speed information, then the resolver decoding effect of the motor controller 30 is not good.
[0051] The main function of the motor controller 30 is to control the energy transmission between the power supply and the drive motor, and to ensure that the motor can operate in a predetermined manner. The rotary transformer may have a certain deviation from the zero position of the motor during installation. The motor controller 30 has a rotary transformer calibration mode. After startup, it can automatically run a program to detect the zero position of the rotary transformer and calculate the deviation, thereby ensuring the accuracy of the motor control. In the present invention, the motor controller 30 is electrically connected to the rotary transformer simulator 20 and the host computer 10 respectively. The motor controller 30 sends an excitation signal (EXC+ / EXC-) to the rotary transformer simulator 20 through an electrical connection. This excitation signal (EXC+ / EXC-) is a sine wave or cosine wave signal, which is used to drive the rotary transformer (rotor) inside the rotary transformer simulator 20 to work. The frequency, amplitude and other parameters of the excitation signal (EXC+ / EXC-) may be adjusted according to specific application scenarios and requirements. When the resolver simulator 20 receives the excitation signal (EXC+ / EXC-), it generates corresponding sine differential signals (SIN+ / SIN-) and cosine differential signals (COS+ / COS-) according to the actual speed and position of the motor, and these signals are transmitted to the motor controller 30 through electrical connection. The processed sine differential signals (SIN+ / SIN-) and cosine differential signals (COS+ / COS-) are sent to the decoding module of the motor controller 30 for resolver decoding. The purpose of decoding is to extract the second speed information and the second angle information of the motor from these two signals. Optionally, resolver decoding can be implemented based on a specific algorithm or hardware decoding chip. For example, the algorithm may include Fourier transform, phase difference detection, inverse tangent calculation and other steps to calculate the speed and position of the motor, and the hardware decoding chip uses internal circuits and algorithms to quickly complete the decoding process.
[0052] The processing unit 201 plays a core role in the whole system. It is responsible for receiving input signals, performing real-time calculations, generating output signals, and sending these signals to corresponding peripheral circuits. The processing unit 201 uses the received excitation signal (EXC+ / EXC-) and the information input by the host computer 10 to perform a series of complex calculations. These calculations may include but are not limited to the application of dynamic models, signal processing algorithms, and possible control strategies, etc. The purpose of the calculation is to generate sinusoidal sensing signal values Esin and cosine sensing signal values Ecos in real time. These values simulate the output signals that the rotary transformer should generate under specific conditions, and convert the calculated sinusoidal sensing signal values Esin and cosine sensing signal values Ecos into sinusoidal pulse width modulation signals (SIN_SPWM+ / SIN_SPWM-) and cosine pulse width modulation signals (COS_SPWM+ / COS_SPWM-). PWM signal is a widely used analog-to-digital signal conversion method, which can simulate the voltage level of an analog signal by adjusting the width of the pulse.
[0053] In some optional embodiments, the processing unit 201 calculates the sine sensing signal value Esin and the cosine sensing signal value Ecos according to the following method:
[0054]
[0055] in, is the excitation signal (EXC+ / EXC-), A is the amplitude value, is the phase, θ is the first angle, E Sin is the sinusoidal induction signal value, E cos is the cosine sensing signal value, and the processing unit 201 calculates Sinθ and Cosθ by a coordinate rotation digital calculation method.
[0056] The host computer 10 inputs a first angle θ, which represents the rotor position simulated by the rotary transformer. The first angle θ and the excitation signal The sinusoidal induction signal can be calculated and cosine sensing signal The resolver simulator 20 generates an SPWM signal, which involves converting a sine induction signal or a cosine induction signal (or both) into an SPWM waveform for driving a motor. The generation of the SPWM signal may involve a modulation algorithm, such as a carrier comparison method or space vector modulation (SVM), to convert a continuous analog signal into a discrete PWM waveform, which is not specifically limited here.
[0057] The sinusoidal pulse width modulated signal (SIN_SPWM+ / SIN_SPWM-) is output to the first peripheral circuit 202, and the first peripheral circuit 202 includes hardware components for simulating the output of the rotary transformer, such as a signal generator, a filter, etc. The first peripheral circuit 202 first receives the sinusoidal pulse width modulated signal (SIN_SPWM+ / SIN_SPWM-) from the processing unit 201. The sinusoidal pulse width modulated signal (SIN_SPWM+ / SIN_SPWM-) represents the simulated sinusoidal induction signal value Esin. The received PWM signal needs to go through a series of processing steps to restore or convert it into a sinusoidal differential signal (SIN+ / SIN-). These processing steps may include PWM decoding, filtering, amplification, differential operation, etc. Of course, PWM decoding is the process of converting the PWM signal back to the original analog signal value, filtering is used to remove noise and interference in the signal and improve the signal-to-noise ratio of the signal, amplification is to adjust the amplitude of the signal to match the requirements of the subsequent circuit or device, and differential operation is to generate a differential signal by comparing and operating two or more signals according to the design of the circuit. The processed signals are converted into sinusoidal differential signals (SIN+ / SIN-). A differential signal is a special form of signal that represents the difference or change between two signals. In motor control, differential signals are often used to detect small changes in parameters such as position, velocity, or acceleration. The generated sinusoidal differential signals (SIN+ / SIN-) are fed back to the motor controller 30, and these sinusoidal differential signals (SIN+ / SIN-) are essential for functions such as closed-loop control or fault diagnosis of the motor controller 30. The motor controller 30 can adjust its control strategy based on these feedback signals to achieve precise control of the motor.
[0058] Similarly, the cosine pulse width modulation signal (COS_SPWM+ / COS_SPWM-) is output to the second peripheral circuit 203. Similar to the first peripheral circuit 202, the second peripheral circuit 203 is also responsible for processing the cosine pulse width modulation signal (COS_SPWM+ / COS_SPWM-) and may further convert or amplify these signals for subsequent use.
[0059] The sine differential signal (SIN+ / SIN-) and the cosine differential signal (COS+ / COS-) are transmitted to the motor controller 30 through an electrical connection. The processed sine differential signal (SIN+ / SIN-) and the cosine differential signal (COS+ / COS-) are sent to the decoding module of the motor controller 30 for resolver decoding, and the second speed information and the second angle information of the motor are extracted from the two signals.
[0060] The host computer 10 compares the second angle information with the first angle information, evaluates the effect of the motor controller 30's rotational decoding, and compares the second speed information with the first speed information. If the second angle information is the same as the first angle information, if the second speed information is the same as the first speed information, the motor controller 30's rotational decoding effect is good; if the second angle information is significantly different from the first angle information, if the second speed information is significantly different from the first speed information, then the motor controller 30's rotational decoding effect is not good.
[0061] The processing unit 201 of this embodiment also has a signal verification function and a self-correction function.
[0062] The processing unit 201 performs redundant sampling on the excitation signal (EXC+ / EXC-). It will collect the value of the same excitation signal (EXC+ / EXC-) multiple times and use different sampling paths or methods to improve the reliability and accuracy of the signal, because even if a sampling path fails, other paths can still provide valid data. By comparing the excitation signal (EXC+ / EXC-) values obtained by different sampling paths, the processing unit 201 can detect whether there is a fault in the excitation signal (EXC+ / EXC-) input. If a certain sampling value is significantly different from other sampling values, or exceeds a preset threshold range, the system can determine that the excitation signal (EXC+ / EXC-) input is faulty and take corresponding protective measures, such as alarming, shutting down, or switching to a backup system.
[0063] The processing unit 201 samples the sine differential signal (SIN+ / SIN-) and the cosine differential signal (COS+ / COS-) from the first peripheral circuit 202 and the second peripheral circuit 203, respectively. The sampled signal values are sent to the data calculation subunit inside the processing unit 201. The data calculation subunit calculates the sampled values according to a preset algorithm or model to obtain calculated values, which may represent the theoretical position, speed or acceleration parameters of the motor. The processing unit 201 compares the calculated value with the sampled value. If there is a difference between the two, and the difference exceeds the preset range, the system needs to be corrected. This correction is usually achieved by cyclic compensation, that is, according to the size and direction of the difference, the calculated value or control parameter is fine-tuned to reduce the difference. The process of self-correction implemented by the processing unit 201 is an iterative process, which is repeated after each sampling and calculation. Through continuous comparison, correction and adjustment, the system can gradually reduce the difference between the sampled value and the calculated value, so that the two remain consistent within a preset range. This self-correction mechanism improves the accuracy and stability of the system, allowing the system to better adapt to changes in external conditions and drifts in internal parameters.
[0064] The redundant sampling, fault detection, signal sampling and calculation, and cyclic compensation self-correction functions of the processing unit 201 together constitute an efficient and reliable control system. These functions not only improve the accuracy and stability of the system, but also enhance the system's fault detection capability and self-protection capability, enabling the system to operate stably in various complex and harsh environments.
[0065] The analog system of the rotary transformer of the present invention supports signal verification, redundant sampling of the excitation signal (EXC+ / EXC-), and detection of whether the excitation signal (EXC+ / EXC-) input is faulty; it also supports self-correction, sampling the sine differential signal (SIN+ / SIN-) and the cosine differential signal (COS+ / COS-) from the first peripheral circuit 202 and the second peripheral circuit 203, respectively, and calculating the sampled value to obtain the calculated value, and performing cyclic compensation self-correction on the calculated value, so that the sampled value and the calculated value are the same within a preset range. The analog system of the rotary transformer of the present invention has high real-time performance and precision, and can automatically detect and correct parameter changes to ensure the accuracy of the measurement or simulation results, and improve the accuracy, reliability and safety of the system.
[0066] Example 2
[0067] On the basis of Example 1, continue to combine Figure 1 The resolver simulator 20 further includes an oversampling converter 204 , a first analog-to-digital converter 205 , a second analog-to-digital converter 206 , and a third analog-to-digital converter 207 .
[0068] The oversampling converter 204 is electrically connected to the processing unit 201 and the motor controller 30 respectively. The processing unit 201 drives the oversampling converter 204. The oversampling converter 204 collects the excitation signal (EXC+ / EXC-) of the motor controller 30 and sends it to the first analog-to-digital converter 205.
[0069] The first analog-to-digital converter 205 is electrically connected to the oversampling converter 204 and the processing unit 201, respectively, converts the excitation signal (EXC+ / EXC-) from an analog signal to a digital signal, and sends it to the processing unit 201;
[0070] The second analog-to-digital converter 206 is electrically connected to the first peripheral circuit 202 and the processing unit 201, respectively, converts the sinusoidal differential signal (SIN+ / SIN-) from an analog signal to a digital signal, and sends it to the processing unit 201;
[0071] The third analog-to-digital converter 207 is electrically connected to the second peripheral circuit 203 and the processing unit 201 , respectively, and converts the cosine differential signal (COS+ / COS−) from an analog signal to a digital signal, and sends the digital signal to the processing unit 201 .
[0072] Specifically, the oversampling converter 204, i.e., a Sigma-Delta (Sigma-Delta) ADC chip, is a type of analog-to-digital converter using Sigma-Delta modulation technology, which has the characteristics of high resolution and low noise and is suitable for high-precision measurement applications. In this embodiment, the Sigma-Delta ADC chip can collect the sinusoidal excitation signal into multi-bit data, thereby improving the collection accuracy and efficiency of the system.
[0073] It should be noted that the Σ-Δ ADC does not directly quantize the sampled data, but quantizes the difference (increment) between the previous and next values. This incremental encoding method enables the Σ-Δ ADC to use a low-resolution one-bit quantizer to meet high-precision requirements. It uses a high sampling rate to improve resolution. The higher the oversampling rate, the higher the resolution of the ADC. Specifically, for every 4-fold increase in the oversampling rate, the signal-to-noise ratio (SNR) will increase by 6dB, which is equivalent to an increase of 1 bit in the effective number of bits (ENOB). The circuit is designed by using a differential circuit (Δ) and an accumulator (Σ) to change the spectral density of the quantization noise from the original uniform distribution to a high-frequency distribution. After noise shaping, the low-frequency power spectral density is significantly reduced, while the total noise power remains unchanged. After the Σ-Δ modulator, the part of the noise within f / 2 is almost eliminated. At this time, the quantization noise of the high-frequency part can be further eliminated by a digital low-pass filter to improve the overall signal-to-noise ratio. Finally, the data is extracted to convert the high-speed, low-precision digital signal into a low-speed, high-precision digital signal output.
[0074] The collected excitation signal (EXC+ / EXC-) is first sent to the oversampling converter 204 for processing. The oversampling converter 204 uses its own digital signal processing capabilities to perform operations such as noise shaping, filtering and extraction on the signal to further improve the signal-to-noise ratio and resolution of the signal. The processed signal is then sent to the first analog-to-digital converter 205.
[0075] The functions of the first analog-to-digital converter 205, the second analog-to-digital converter 206, and the third analog-to-digital converter 207 are all to convert analog signals into digital signals. An analog-to-digital converter (ADC) is an electronic device that converts analog signals (such as voltage or current signals converted from continuously changing physical quantities such as temperature, sound, and pressure through sensors) into digital signals (binary codes composed of 0s and 1s).
[0076] It should be noted that the processing unit 201 in the present invention is a field programmable gate array FPGA. The FPGA is composed of a large number of programmable logic blocks (such as lookup tables LUTs, triggers FFs, etc.) and programmable interconnection resources. These resources are configured to perform digital logic functions, such as AND, OR, NOT, adders, counters, etc. If the signal input to the FPGA is an analog signal, it is easily affected by noise and interference, which may lead to a decrease in signal quality. However, due to its discrete characteristics, digital signals have stronger resistance to noise and interference. In addition, when processing digital signals, FPGA can use its parallel processing capabilities and reconfigurability to accelerate calculations. In this embodiment, the excitation signal (EXC+ / EXC-) is converted from an analog signal to a digital signal by the first analog-to-digital converter 205, the sine differential signal (SIN+ / SIN-) is converted from an analog signal to a digital signal by the second analog-to-digital converter 206, and the cosine differential signal (COS+ / COS-) is converted from an analog signal to a digital signal by the analog-to-digital converter, and sent to the processing unit 201 for calculation.
[0077] Example 3
[0078] On the basis of Example 1, continue to refer to Figure 1 The simulation system of the rotary transformer supporting self-correction and fault injection in this embodiment can also realize the fault injection function. The fault injection function in the embodiment can be realized at the same time as the signal verification function and the self-correction function in the above embodiment 1, or can be realized at different times, which is not specifically limited here.
[0079] Fault information can be set in the host computer 10;
[0080] The processing unit 201 is also used to adjust the sine pulse width modulation signal (SIN_SPWM+ / SIN_SPWM-) or the cosine pulse width modulation signal (COS_SPWM+ / COS_SPWM-) according to the fault information of the host computer 10, or calculate the sine sensing signal and the cosine sensing signal according to the fault information of the host computer 10.
[0081] Specifically, the fault information input by the host computer 10 includes a phase offset fault, an amplitude fault and / or an overspeed fault, wherein:
[0082] When the host computer 10 inputs a phase shift fault, the processing unit 201 delays the sinusoidal pulse width modulation signal (SIN_SPWM+ / SIN_SPWM-) to complete the phase shift according to the phase value corresponding to the phase shift fault.
[0083] Specifically, when the host computer 10 sets a phase offset fault, the phase value can be set at the same time. At this time, the FPGA will perform a corresponding delay operation on the output sinusoidal pulse width modulation signal (SIN_SPWM+ / SIN_SPWM-)+ / SIN_SPWM- according to the phase offset value to complete the phase shift. Phase offset means that the starting point of the signal (usually the zero point or peak value of the waveform) moves forward or backward by a certain amount in time. Digital delay units can be configured inside the FPGA. These units can be inserted into the signal path as needed to generate the required phase offset. The delay amount can be precisely controlled by programming. The FPGA first receives the set value of the phase offset from the host computer 10. Then the delay amount is calculated. According to the phase offset value, the FPGA calculates the delay amount to be applied (in clock cycles). Finally, the FPGA inserts an appropriate delay unit in the generation or transmission path of the SPWM signal, or considers the delay amount when generating waveform samples to generate an SPWM signal after phase offset.
[0084] When the upper computer 10 inputs an amplitude fault, the processing unit 201 adjusts the duty cycle of the sine pulse width modulation signal (SIN_SPWM+ / SIN_SPWM-) or the cosine pulse width modulation signal (COS_SPWM+ / COS_SPWM-) according to the amplitude value corresponding to the amplitude fault;
[0085] Specifically, the FPGA first receives the amplitude value corresponding to the amplitude fault sent by the host computer 10 through a communication interface (such as UART, SPI, I2C, etc.). This amplitude value can be a specific number, indicating the required amplitude size. Inside the FPGA, there are one or more algorithms or lookup tables (LUTs) used to convert the received amplitude value into a corresponding duty cycle value. This process involves some calculations, such as calculating the duty cycle based on the ratio of the amplitude value to the maximum amplitude value, which is not specifically limited here; then according to the calculated duty cycle value, the FPGA adjusts the duty cycle of the PWM signal. In the PWM signal generation module, this is achieved by adjusting the relationship between the counter and the comparator inside the FPGA. When the value of the counter is less than a certain threshold (determined by the duty cycle), a high level is output; when the value of the counter exceeds the threshold, a low level is output; the PWM signal after the duty cycle is adjusted is output through the IO pin of the FPGA.
[0086] In some optional embodiments, the processing unit 201 includes a digital signal processing subunit, which calculates the duty cycle of the sinusoidal pulse width modulation signal (SIN_SPWM+ / SIN_SPWM-) or the cosine pulse width modulation signal (COS_SPWM+ / COS_SPWM-) according to the following method:
[0087]
[0088]
[0089] Among them, Duty SIN_SPWM Duty is the duty cycle of the sinusoidal pulse width modulation signal (SIN_SPWM+ / SIN_SPWM-). cos_SPWM is the duty cycle of the cosine pulse width modulation signal (COS_SPWM+ / COS_SPWM-), A is the amplitude value, E Sin is the sinusoidal induction signal value Esin, E cos is the cosine sensing signal value.
[0090] When the host computer 10 inputs an overspeed fault, the processing unit 201 no longer accepts the angle value transmitted by the host computer 10 , and performs sine sensing signal calculation and cosine sensing signal calculation according to the internal speed value of the processing unit 201 .
[0091] Specifically, when the host computer 10 inputs an overspeed fault, the FPGA needs to adjust its working mode so as to no longer rely on the angle value received from the host computer 10 to calculate the sine and cosine sensing signals. Instead, the FPGA will use the speed value preset or monitored in real time in its internal processing unit 201 to perform these calculations. This approach helps to maintain the stability and safety of the system in the case of overspeed and prevent further problems caused by external input errors or faults.
[0092] FPGA first detects the overspeed fault signal sent by the host computer 10. Once the signal is detected, FPGA will immediately switch to fault handling mode and stop receiving and processing the angle value from the host computer 10. FPGA will then use the motor speed threshold stored or calculated in real time in its internal processing unit 201, which is a preset safety speed threshold. For example, if the motor speed threshold is 18000rpm, then Where ω is the angular velocity. Using the internal speed value as a reference, the FPGA will perform the calculation of the sine and cosine sensing signals, which of course can be based on the functional relationship between the angle and time, where the time is derived from the speed value (for example, the angle change is calculated by multiplying the speed by the time increment). In the overspeed fault mode, the FPGA may ignore the specific time increment and instead use a fixed or speed-adjusted angle increment to calculate the sine and cosine values. The calculated sine sensing signals and cosine sensing signals are output through the IO pins of the FPGA. During the overspeed fault, these signals will reflect the speed control strategy of the internal processing unit 201 to ensure stable operation of the system.
[0093] Example 4
[0094] On the basis of Embodiment 1, Embodiment 2 or Embodiment 3, the processing unit 201 of this embodiment includes a field programmable gate array FPGA. FPGA is a parallel execution device. Using FPGA can improve real-time performance.
[0095] The FPGA communicates with the oversampling converter 204 via SPI (Serial Peripheral Interface), which is a synchronous, full-duplex, master-slave communication interface.
[0096] For the calculation of sine and cosine sensing signals, the traditional CORDIC method can be used to calculate Sinθ and Cosθ due to the high operating frequency and parallel computing support of FPGA. It should be noted that the accuracy of the excitation signal (EXC+ / EXC-) is generally 23 bits, so the accuracy of the calculation result is set to 24 bits, and the extra bit represents the sign bit. The calculation can be directly performed using the DSP unit inside the FPGA. The core idea of the CORDIC algorithm is to approximate the required function value through a series of addition and shift operations, thereby avoiding the use of complex operations such as multiplication, division, and square root. In a two-dimensional coordinate system, the CORDIC algorithm iteratively rotates a vector to the target angle, while recording the accumulated angle and the change in the vector coordinates during the rotation process, and finally obtains the trigonometric function value or other related function value of the target angle.
[0097] The frequency of the sine pulse width modulation signal (SIN_SPWM+ / SIN_SPWM-) output by the processing unit 201 is equal to the frequency of the cosine pulse width modulation signal (COS_SPWM+ / COS_SPWM-), and both are greater than or equal to M times the excitation signal (EXC+ / EXC-), where M is a positive integer greater than or equal to 32.
[0098] It should be noted that in order to enable the output sine pulse width modulation signal (SIN_SPWM+ / SIN_SPWM-) and cosine pulse width modulation signal (COS_SPWM+ / COS_SPWM-) to better simulate the sine differential signal (SIN+ / SIN-) and cosine differential signal (COS+ / COS-) after passing through the peripheral hardware circuit (the first peripheral circuit 202 and the second peripheral circuit 203), the signal frequency of the sine pulse width modulation signal (SIN_SPWM+ / SIN_SPWM-) and cosine pulse width modulation signal (COS_SPWM+ / COS_SPWM-) calculated inside the FPGA should be greater than 32 times the frequency of the excitation signal (EXC+ / EXC-), that is, f SIN_SPWM =f COS_SPWM ≥32f 激励 .
[0099] Example 5
[0100] Combination Figure 2 This embodiment provides a simulation method for a rotary transformer supporting self-correction and fault injection, referring to Figure 2 , a simulation method of a resolver supporting self-correction and fault injection, comprising the steps of:
[0101] S101, the host computer inputs first angle information, first speed information and first acceleration information;
[0102] S102, the motor controller sends an excitation signal;
[0103] S103, the processing unit of the resolver simulator receives the first speed information, the first acceleration information and the first angle information input by the host computer, collects the excitation signal, performs coupling, and calculates the sine sensing signal value and the cosine sensing signal value to be output in real time. The processing unit converts the multi-bit sine sensing signal value and the cosine sensing signal value into corresponding single-bit sine pulse width modulation signal and cosine pulse width modulation signal and outputs them to the first peripheral circuit and the second peripheral circuit of the resolver simulator. The first peripheral circuit processes the sine pulse width modulation signal to obtain a sine differential signal and sends it to the motor controller. The second peripheral circuit processes the cosine pulse width modulation signal to obtain a cosine differential signal and sends it to the motor controller.
[0104] S104, the motor controller receives the sine differential signal and the cosine differential signal, calculates the second angle information and the second speed information, and sends them to the host computer;
[0105] S105, the host computer compares the first angle information and the second angle information, the first speed information and the second speed information respectively, and determines the resolver decoding effect of the motor controller. When the first angle information and the second angle information, the first speed information and the second speed information are equal within a preset range, the resolver decoding accuracy of the motor controller is high; when the first angle information and the second angle information, the first speed information and the second speed information are not equal within the preset range, the resolver decoding accuracy of the motor controller is low;
[0106] Step S103 also includes:
[0107] S1031, the processing unit performs redundant sampling on the excitation signal to detect whether the excitation signal input is faulty;
[0108] S1032, the processing unit samples the sine differential signal from the first peripheral circuit and the cosine differential signal from the second peripheral circuit, and calculates the sampling values of the sine differential signal and the cosine differential signal to obtain calculated values respectively, and performs cyclic compensation self-correction on the calculated values so that the sampling value and the calculated value are the same within a preset range.
[0109] Here, S1031 and S1032 may be implemented simultaneously or at different times, and no specific limitation is made here.
[0110] The simulation method of the rotary transformer in this embodiment has a signal verification function and a self-correction function.
[0111] The processing unit performs redundant sampling on the excitation signal. It will collect the value of the same excitation signal multiple times and use different sampling paths or methods to improve the reliability and accuracy of the signal, because even if a sampling path fails, other paths can still provide valid data. By comparing the excitation signal values obtained by different sampling paths, the processing unit can detect whether there is a fault in the excitation signal input. If a sampling value is significantly different from other sampling values, or exceeds the preset threshold range, the system can determine that the excitation signal input is faulty and take corresponding protection measures, such as alarm, shutdown, or switching to a backup system.
[0112] The processing unit samples the sine differential signal and the cosine differential signal from the first peripheral circuit and the second peripheral circuit respectively, and the sampled signal values are sent to the data calculation subunit inside the processing unit. The data calculation subunit calculates the sampled values according to a preset algorithm or model to obtain calculated values, which may represent the parameters such as the theoretical position, speed or acceleration of the motor. The processing unit compares the calculated value with the sampled value. If there is a difference between the two, and the difference exceeds the preset range, the system needs to be corrected. This correction is usually achieved by cyclic compensation, that is, according to the size and direction of the difference, the calculated value or control parameter is fine-tuned to reduce the difference. The process of self-correction of the processing unit is an iterative process, which will be repeated after each sampling and calculation. Through continuous comparison, correction and adjustment, the system can gradually reduce the difference between the sampled value and the calculated value, so that the two are consistent within the preset range. This self-correction mechanism improves the accuracy and stability of the system, so that the system can better adapt to changes in external conditions and drifts of internal parameters.
[0113] The redundant sampling, fault detection, signal sampling and calculation, and cyclic compensation self-correction functions of the processing unit together constitute an efficient and reliable control system. These functions not only improve the accuracy and stability of the system, but also enhance the system's fault detection and self-protection capabilities, enabling the system to operate stably in various complex and harsh environments.
[0114] Example 6
[0115] On the basis of Example 5, the simulation method of the rotary transformer of this embodiment has a fault injection function, and the simulation method of the rotary transformer comprises the steps of:
[0116] S201, the host computer inputs first angle information, first speed information and first acceleration information; the host computer inputs phase offset fault, amplitude fault and / or overspeed fault;
[0117] S202, the motor controller sends an excitation signal;
[0118] S203, the processing unit of the resolver simulator receives the first speed information, the first acceleration information and the first angle information input by the host computer, collects the excitation signal, performs coupling, and calculates the sine sensing signal value and the cosine sensing signal value to be output in real time. The processing unit converts the multi-bit sine sensing signal value and the cosine sensing signal value into corresponding single-bit sine pulse width modulation signal and cosine pulse width modulation signal and outputs them to the first peripheral circuit and the second peripheral circuit of the resolver simulator. The first peripheral circuit processes the sine pulse width modulation signal to obtain a sine differential signal and sends it to the motor controller. The second peripheral circuit processes the cosine pulse width modulation signal to obtain a cosine differential signal and sends it to the motor controller.
[0119] S2031, the processing unit performs redundant sampling on the excitation signal to detect whether the excitation signal input is faulty;
[0120] S2032, the processing unit samples a sine differential signal from the first peripheral circuit, samples a cosine differential signal from the second peripheral circuit, calculates the sampled values of the sine differential signal and the cosine differential signal to obtain calculated values, and performs cyclic compensation self-correction on the calculated values so that the sampled value and the calculated value are the same within a preset range;
[0121] S2033, when the host computer inputs a phase shift fault, the processing unit delays the sinusoidal pulse width modulation signal to complete the phase shift according to the phase value corresponding to the phase shift fault;
[0122] S2034, when the upper computer inputs an amplitude fault, the processing unit adjusts the duty cycle of the sine pulse width modulation signal or the cosine pulse width modulation signal according to the amplitude value corresponding to the amplitude fault;
[0123] S2035, when the host computer inputs an overspeed fault, the processing unit no longer accepts the angle value transmitted by the host computer, and performs sine sensing signal calculation and cosine sensing signal calculation according to the built-in speed value of the processing unit.
[0124] The above steps S2031 to S2035 may be implemented simultaneously or at different times, and are not specifically limited here.
[0125] S204, the motor controller receives the sine differential signal and the cosine differential signal, calculates the second angle information and the second speed information, and sends them to the host computer;
[0126] S205, the upper computer compares the first angle information and the second angle information, the first speed information and the second speed information respectively, and determines the motor controller resolver decoding effect. When the first angle information and the second angle information, the first speed information and the second speed information are equal within a preset range, the motor controller resolver decoding accuracy is high; when the first angle information and the second angle information, the first speed information and the second speed information are not equal within the preset range, the motor controller resolver decoding accuracy is low.
[0127] The simulation method of the rotary transformer supporting self-correction and fault injection of the present invention also supports a fault injection function. The host computer sets fault information, and the processing unit of the rotary transformer simulator adjusts the sinusoidal pulse width modulation signal or the cosine pulse width modulation signal according to the fault information of the host computer, or calculates the sinusoidal induction signal and the cosine induction signal according to the fault information of the host computer to realize the fault injection function and simulate various fault conditions that may occur in actual operation, so as to perform fault testing, diagnosis and verification on the control system and improve the accuracy, reliability and safety of the system.
[0128] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will be appreciated by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A rotary transformer simulation system supporting self-correction and fault injection, characterized in that: It includes host computer, motor controller and resolver simulator, among which: The host computer is electrically connected to the resolver simulator and the motor controller, respectively, and is used to input first angle information, first speed information and first acceleration information, and is also used to monitor the second angle information and second speed information obtained by the resolver decoding of the motor controller through a debugger, and compare them with the first angle information and the first speed information, respectively, to detect the resolver decoding effect of the motor controller; The motor controller is electrically connected to the resolver simulator and the host computer respectively, and is used to send an excitation signal, and is also used to perform resolver decoding according to the sine differential signal and the cosine differential signal generated by the resolver simulator to obtain the second speed information and the second angle information; The resolver simulator comprises a processing unit, a first peripheral circuit, and a second peripheral circuit, wherein: The processing unit is electrically connected to the host computer, the first peripheral circuit, and the second peripheral circuit, respectively, and is used to receive the excitation signal sent by the motor controller and the first speed information, the first acceleration information, and the first angle information input by the host computer, and use the excitation signal, the first speed information, the first acceleration information, and the first angle information to calculate the sine sensing signal value and the cosine sensing signal value in real time, and output a sine pulse width modulation signal and a cosine pulse width modulation signal correspondingly, input the sine pulse width modulation signal to the first peripheral circuit, and input the cosine pulse width modulation signal to the second peripheral circuit; the processing unit is also used to perform redundant sampling on the excitation signal to detect whether the excitation signal input is faulty; the processing unit is also used to sample the sine differential signal and the cosine differential signal from the first peripheral circuit and the second peripheral circuit, respectively, and calculate the sampled values to obtain calculated values, and perform cyclic compensation self-correction on the calculated values, so that the sampled values and the calculated values are the same within a preset range; The first peripheral circuit is electrically connected to the processing unit and the motor controller, respectively, and is used to receive the sinusoidal pulse width modulation signal, process the sinusoidal pulse width modulation signal, generate the sinusoidal differential signal, and feed it back to the motor controller; The second peripheral circuit is electrically connected to the processing unit and the motor controller respectively, and is used for receiving the cosine pulse width modulation signal, processing the cosine pulse width modulation signal, generating the cosine differential signal, and feeding back the cosine differential signal to the motor controller.
2. The simulation system according to claim 1, characterized in that The resolver simulator further includes an oversampling converter, a first analog-to-digital converter, a second analog-to-digital converter, and a third analog-to-digital converter, wherein: The oversampling converter is electrically connected to the processing unit and the motor controller respectively, the processing unit drives the oversampling converter, and the oversampling converter collects the excitation signal of the motor controller and sends it to the first analog-to-digital converter; The first analog-to-digital converter is electrically connected to the oversampling converter and the processing unit, respectively, converts the excitation signal from an analog signal to a digital signal, and sends the digital signal to the processing unit; The second analog-to-digital converter is electrically connected to the first peripheral circuit and the processing unit, respectively, converts the sinusoidal differential signal from an analog signal to a digital signal, and sends the digital signal to the processing unit; The third analog-to-digital converter is electrically connected to the second peripheral circuit and the processing unit respectively, converts the cosine differential signal from an analog signal into a digital signal, and sends the digital signal to the processing unit.
3. The simulation system according to claim 1, characterized in that: The host computer is also used to set fault information; The processing unit is further used to adjust the sine pulse width modulation signal or the cosine pulse width modulation signal according to the fault information of the host computer, or calculate the sine induction signal and the cosine induction signal according to the fault information of the host computer.
4. The simulation system according to claim 3, characterized in that: The fault information input by the host computer includes phase offset fault, amplitude fault and / or overspeed fault, wherein: When the phase shift fault is inputted by the host computer, the processing unit delays the sinusoidal pulse width modulation signal to complete phase shift according to the phase value corresponding to the phase shift fault; When the upper computer inputs the amplitude fault, the processing unit adjusts the duty cycle of the sine pulse width modulation signal or the cosine pulse width modulation signal according to the amplitude value corresponding to the amplitude fault; When the host computer inputs the overspeed fault, the processing unit no longer accepts the angle value transmitted by the host computer, and performs sine sensing signal calculation and cosine sensing signal calculation according to the built-in speed value of the processing unit.
5. The simulation system according to claim 1, characterized in that: The processing unit calculates the sine sensing signal value and the cosine sensing signal value according to the following method: in, is the excitation signal, A is the amplitude value, is the phase, θ is the first angle, E Sin is the sinusoidal induction signal value, E cos is the cosine sensing signal value, and the processing unit calculates Sinθ and Cosθ by a coordinate rotation digital calculation method.
6. The simulation system according to claim 5, characterized in that: The processing unit includes a digital signal processing subunit, and the digital signal processing subunit calculates the duty cycle of the sine pulse width modulation signal or the cosine pulse width modulation signal according to the following method: Among them, Duty SIN_ _ SPWM Duty is the duty cycle of the sinusoidal pulse width modulation signal. cos _ SPWM is the duty cycle of the cosine pulse width modulation signal.
7. The simulation system according to claim 1, characterized in that: The processing unit includes a field programmable gate array.
8. The simulation system according to claim 7, characterized in that: The frequency of the sine pulse width modulation signal output by the processing unit is equal to the frequency of the cosine pulse width modulation signal, and both are greater than or equal to M times of the excitation signal, where M is a positive integer greater than or equal to 32.
9. A method for simulating a rotary transformer supporting self-correction and fault injection, characterized in that: Includes steps: The host computer inputs first angle information, first speed information and first acceleration information; The motor controller sends an excitation signal; The processing unit of the resolver simulator receives the first speed information, the first acceleration information and the first angle information input by the host computer, collects the excitation signal, performs coupling, and calculates the sine sensing signal value and the cosine sensing signal value to be output in real time. The processing unit converts the multi-bit sine sensing signal value and the cosine sensing signal value into corresponding single-bit sine pulse width modulation signals and cosine pulse width modulation signals and outputs them to the first peripheral circuit and the second peripheral circuit of the resolver simulator. The first peripheral circuit processes the sine pulse width modulation signal to obtain a sine differential signal and sends it to the motor controller. The second peripheral circuit processes the cosine pulse width modulation signal to obtain a cosine differential signal and sends it to the motor controller. The motor controller receives the sine differential signal and the cosine differential signal, calculates second angle information and second speed information, and sends the second angle information and the second speed information to the host computer; The host computer compares the first angle information and the second angle information, the first speed information and the second speed information respectively, and determines the resolver decoding effect of the motor controller. When the first angle information and the second angle information, the first speed information and the second speed information are equal within a preset range, the resolver decoding accuracy of the motor controller is high; when the first angle information and the second angle information, the first speed information and the second speed information are not equal within a preset range, the resolver decoding accuracy of the motor controller is low; It also includes: the processing unit performs redundant sampling on the excitation signal to detect whether the excitation signal input is faulty; The processing unit samples the sine differential signal from the first peripheral circuit and samples the cosine differential signal from the second peripheral circuit, and calculates the sampling values of the sine differential signal and the cosine differential signal to obtain calculated values respectively, and performs cyclic compensation self-correction on the calculated values so that the sampling value and the calculated value are the same within a preset range.
10. The simulation method according to claim 9, characterized in that: Also includes: Inputting a phase offset fault, an amplitude fault and / or an overspeed fault into the host computer; When the phase shift fault is inputted by the host computer, the processing unit delays the sinusoidal pulse width modulation signal to complete phase shift according to the phase value corresponding to the phase shift fault; When the upper computer inputs the amplitude fault, the processing unit adjusts the duty cycle of the sine pulse width modulation signal or the cosine pulse width modulation signal according to the amplitude value corresponding to the amplitude fault; When the host computer inputs the overspeed fault, the processing unit no longer accepts the angle value transmitted by the host computer, and performs sine sensing signal calculation and cosine sensing signal calculation according to the built-in speed value of the processing unit.
Citation Information
Cited By
Calibration device for resolver angle signal of electronic controller of aero-engine
CN119644839A
Control module with four-channel rotary transformer signal conversion and acquisition
CN121704266A
