RD2S1210 signal conditioning circuit for acquiring motor position and servo motor control system
By designing sine and cosine conditioning circuits for rotary transformers to condition excitation signals and analog signals, the problem of poor environmental adaptability of photoelectric encoders is solved, the impact of interference on motor position control is reduced, and control accuracy and system performance are improved.
Patent Information
- Application Number
- CN202410581790.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-08-23
AI Technical Summary
In the precision permanent magnet synchronous motor control system, the photoelectric encoder has poor environmental adaptability, causing motor jitter and external vibration to affect accuracy. The resolver has strong anti-interference ability but the output signal is complex, requiring effective shaft angle conversion processing to improve control. Accuracy.
Design a signal conditioning circuit including a sine excitation conditioning circuit, a sine conditioning circuit and a cosine conditioning circuit, which are connected to the rotary transformer and the motor decoding chip respectively. The excitation signals and analog signals are conditioned through these conditioning circuits and output to the motor decoding chip for decoding processing. , reduce common mode interference and differential mode interference, and improve servo motor position control accuracy.
Effectively reduce common mode interference and differential mode interference, improve servo motor position control accuracy, improve the performance of the servo motor controller, and extend the service life of the sensor.
Smart Images

Figure CN118539818A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hydraulic servo control, and in particular to a signal conditioning circuit of RD2S1210 for acquiring a motor position and a servo motor control system. Background Art
[0002] In the increasingly sophisticated permanent magnet synchronous motor control systems, the requirements and accuracy of motor control are also getting higher and higher. In the process of realizing closed-loop control, the rotor position is one of the most important feedback quantities. Generally, the introduction of position sensors can obtain accurate motor rotor position information more stably, thereby obtaining higher control accuracy and faster transient response. Photoelectric encoders are sensors that integrate photoelectric signals and convert position information into digital information through gratings. Photoelectric encoders have high accuracy and are suitable for high-performance motor control systems, but their environmental adaptability is poor. Motor jitter or external vibration factors will affect the accuracy. The resolver is a small AC motor that uses the stator winding to input the excitation signal and the rotor winding to generate an induced voltage through coupling. Since the resolver has no electronic components inside, it has strong anti-interference ability and high adaptability to harsh environments. Compared with other sensors, it has a longer service life and has become a mainstream and reliable sensor for measuring position and speed.
[0003] During normal operation, the resolver needs an external circuit to provide an excitation signal. Its output signal is a complex analog signal that needs to be processed and converted into a digital angle signal before it can enter the control system. For resolvers, the main research direction is currently focused on obtaining the optimal shaft angle conversion processing method and improving accuracy. Among them, shaft angle conversion is to convert the analog signal of the resolver into a digital signal with rotor position information. It can be seen that the use of a reasonable analog signal conditioning circuit is crucial to the acquisition of the rotor position information signal using a dedicated decoding chip. Summary of the invention
[0004] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, the first object of the present invention is to provide a signal conditioning circuit of RD2S1210 for obtaining the motor position, which can reduce the adverse effects of common mode interference and differential mode interference on the position or speed of the servo motor, thereby improving the position control accuracy of the servo motor.
[0005] A second object of the present invention is to provide a servo motor control system.
[0006] To achieve the above object, the present invention is implemented through the following technical solutions:
[0007] A signal conditioning circuit of RD2S1210 for obtaining the position of a motor comprises: a sine excitation conditioning circuit, a sine conditioning circuit and a cosine conditioning circuit, wherein the three conditioning circuits are respectively connected to a rotary transformer and a motor decoding chip; the sine excitation conditioning circuit is used to condition the excitation signal output by the motor decoding chip and transmit it to the excitation coil of the rotary transformer, the sine conditioning circuit and the cosine conditioning circuit are respectively used to condition the sine analog signal and the cosine analog signal at the sine coil and cosine coil ends of the rotary transformer, and output them to the motor decoding chip for decoding processing to obtain the motor rotor position.
[0008] Preferably, the motor decoding chip is a RD2S1210 chip, which includes an excitation oscillator, an AD conversion circuit and a closed-loop tracking loop, and the closed-loop tracking loop includes a digital sine-cosine multiplier, a phase-sensitive regulator, a two-stage integrator and a filter compensator.
[0009] Preferably, the sinusoidal excitation conditioning circuit includes two first operational amplifier units and a first common-mode choke, and the two excitation signal output ends of the motor decoding chip are respectively connected to the first ends of the primary and secondary sides of the first common-mode choke through the two first operational amplifier units, and the second ends of the primary and secondary sides of the first common-mode choke are connected to the excitation coil of the rotary transformer.
[0010] Preferably, the first operational amplifier unit includes a first operational amplifier and a second operational amplifier, the excitation signal output terminal of the motor decoding chip is connected to the negative terminal of the second operational amplifier through a first resistor, and the negative terminal of the second operational amplifier is also connected to the output terminal of the second operational amplifier through a first capacitor and a second resistor; the negative terminal of the first operational amplifier is grounded through a third resistor, and is connected to the output terminal of the first operational amplifier through a fourth resistor, the output terminal of the first operational amplifier is also connected to the positive terminal of the second operational amplifier through a sixth resistor, the positive terminal of the first operational amplifier is connected to the reference voltage output terminal of the motor decoding chip through a fifth resistor, and the output terminal of the second operational amplifier is connected to the first end of the primary side of the first common mode choke, wherein the first capacitor and the second resistor are connected in parallel.
[0011] Preferably, the two excitation signal output ends of the motor decoding chip are connected to the power supply and the ground through a pair of surge suppression diodes; the first ends of the primary and secondary sides of the first common mode choke are grounded through the second capacitor and the fourth capacitor respectively, the second ends of the primary and secondary sides of the first common mode choke are grounded through the fifth capacitor and the sixth capacitor respectively, the third capacitor is connected between the first ends of the primary and secondary sides of the first common mode choke, and the seventh capacitor is connected between the second ends of the primary and secondary sides of the first common mode choke; the signal ground and the shielding ground of the sinusoidal excitation conditioning circuit are connected through a magnetic bead.
[0012] Preferably, the circuit structure of the sine conditioning circuit and the cosine conditioning circuit is the same, the sine conditioning circuit includes a second common-mode choke and two second operational amplifier units, the two ends of the rotary transformer sine coil are respectively connected to the first ends of the primary and secondary sides of the second common-mode choke, and the second ends of the primary and secondary sides of the second common-mode choke are respectively connected to the motor decoding chip through the two second operational amplifier units.
[0013] Preferably, the second operational amplifier unit includes the third operational amplifier to the fifth operational amplifier, the second end of the primary side of the second common-mode choke is connected to the negative end of the third operational amplifier through the seventh resistor, the negative end of the third operational amplifier is connected to the output end of the third operational amplifier through the eighth resistor and the ninth capacitor, the positive end of the fifth operational amplifier is connected to the reference voltage output end of the motor decoding chip, the negative end of the fifth operational amplifier is connected to the positive ends of the third operational amplifier and the fourth operational amplifier through the ninth resistor and the tenth resistor respectively, the output end of the third operational amplifier is connected to the negative end of the fourth operational amplifier through the eleventh resistor and the twelfth resistor, wherein the two ends of the twelfth resistor are also respectively connected to the thirteenth resistor and one end of the tenth capacitor, the other ends of the thirteenth resistor and the tenth capacitor are both connected to the output end of the fourth operational amplifier, the output end of the fourth operational amplifier is connected to the motor decoding chip, wherein the eighth resistor and the ninth capacitor are connected in parallel.
[0014] Preferably, the second ends of the primary and secondary sides of the second common-mode choke are grounded via an eighth capacitor and a thirteenth capacitor respectively; and the second ends of the primary and secondary sides of the second common-mode choke are connected via an eleventh capacitor.
[0015] Preferably, both ends of the rotary transformer sinusoidal coil are grounded through a pair of surge suppression diodes respectively; the second ends of the primary and secondary sides of the second common mode choke are connected to the power supply and the ground respectively through a pair of surge suppression diodes; the signal ground and the shielding ground of the sinusoidal conditioning circuit are connected through a magnetic bead.
[0016] To achieve the above object, the second aspect of the present invention provides a servo motor control system, including the above-mentioned RD2S1210 signal conditioning circuit for obtaining the motor position.
[0017] The present invention has at least the following technical effects:
[0018] The present invention provides a signal conditioning circuit of RD2S1210 for obtaining the position of a motor. The signal conditioning circuit comprises a sine excitation conditioning circuit, a sine conditioning circuit and a cosine conditioning circuit. The three conditioning circuits are respectively connected to a rotary transformer and a motor decoding chip. The sine excitation conditioning circuit conditions the excitation signal output by the motor decoding chip and transmits it to the excitation coil of the rotary transformer. The sine conditioning circuit and the cosine conditioning circuit respectively condition the sine analog signal and the cosine analog signal at the sine coil and cosine coil ends of the rotary transformer, and output them to the motor decoding chip for decoding processing, so as to obtain the rotor position of the motor. The signal conditioning circuit can reduce the adverse effects of common-mode interference and differential-mode interference on the position or speed of a servo motor, and is convenient for improving the position control accuracy of the servo motor. The present invention also provides a servo motor control system, which can improve the working performance of a servo motor controller by using a dual set of software and hardware measures for resisting common-mode interference and differential-mode interference.
[0019] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 Schematic diagram of the structure of the signal conditioning circuit of RD2S1210 for obtaining the motor position according to an embodiment of the present invention.
[0021] Figure 2 This is a functional block diagram of the RD2S1210 chip according to an embodiment of the present invention.
[0022] Figure 3 Schematic diagram of a Type II closed-loop tracking loop according to an embodiment of the present invention.
[0023] Figure 4 Schematic diagram of the structure of the sinusoidal excitation conditioning circuit according to an embodiment of the present invention.
[0024] Figure 5 Schematic diagram of the structure of a sinusoidal conditioning circuit according to an embodiment of the present invention.
[0025] Figure 6 Schematic diagram of the structure of a cosine conditioning circuit according to an embodiment of the present invention.
[0026] Figure 7 It is a main program flow chart of an embodiment of the present invention.
[0027] Figure 8 Schematic diagram of the hardware initialization process of an embodiment of the present invention.
[0028] Fig. 9 The figure is a schematic diagram of the software initialization process according to an embodiment of the present invention.
[0029] Fig.10Schematic diagram of the A / D interrupt flow in an embodiment of the present invention.
[0030] Fig.11 The figure is a schematic diagram of an interrupt flow of processing decoding according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The present embodiment is described in detail below, and examples of the embodiment are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0032] The following describes a signal conditioning circuit of RD2S1210 and a servo motor control system for obtaining the motor position according to the present embodiment with reference to the accompanying drawings.
[0033] Figure 1 FIG. 1 is a schematic diagram of the structure of the signal conditioning circuit of RD2S1210 for obtaining the motor position according to an embodiment of the present invention. Figure 1 As shown, the signal conditioning circuit of the RD2S1210 for obtaining the motor position includes: a sine excitation conditioning circuit, a sine conditioning circuit and a cosine conditioning circuit, and the three conditioning circuits are respectively connected to the rotary transformer and the motor decoding chip, namely the RD2S1210 chip. Among them, the sine excitation conditioning circuit is used to condition the excitation signal output by the motor decoding chip and transmit it to the excitation coil of the rotary transformer, and the sine conditioning circuit and the cosine conditioning circuit are respectively used to condition the sine analog signal and the cosine analog signal at the sine coil and cosine coil ends of the rotary transformer, and output them to the motor decoding chip for decoding processing to obtain the motor rotor position.
[0034] Figure 2 This is a functional block diagram of the RD2S1210 chip according to an embodiment of the present invention. Figure 2 EXC and EXC in it represent the connection terminals of the excitation winding, i.e. the excitation coil; Sin and SinLO are connected to the sine winding, i.e. the sine coil, of the rotary transformer; Cos and CosLO are connected to the cosine winding, i.e. the cosine coil, of the rotary transformer. The excitation winding is usually installed on the rotor and rotates with the rotor, and its sinusoidal excitation signal is generally applied through an auxiliary transformer. The output winding is a pair of orthogonally distributed sine and cosine windings. Due to the special relative position between the stator and rotor of the rotary transformer, voltages with sine and cosine relationships with the rotor position angle are output respectively. In this embodiment, the excitation signal or the excitation signal is generated by an excitation oscillator inside the chip, and the chip also includes an ADC, i.e. an AD (analog-to-digital) conversion circuit, a Type II closed-loop tracking loop, etc., which receives signals from the sine winding and cosine winding of the rotary transformer.
[0035] Figure 3Schematic diagram of Type II closed-loop tracking loop in an embodiment of the present invention. Figure 3 It can be seen that the Type II closed-loop tracking loop is mainly composed of a digital sine-cosine multiplier, a phase-sensitive regulator, a two-stage integrator and a filter compensator. The entire system uses parallel addition and data latch delay for calculation. Among them, the filter compensator is composed of a differential circuit and an integral circuit, and transmits data proportionally with the first-stage integrator. The entire system forms a Type II closed-loop tracking loop, which can provide real-time fault detection.
[0036] like Figure 3 As shown, when the chip is working normally, the sine and cosine analog signals coupled by the rotary transformer generate data stream signals through the modulation circuit, which are multiplied with the data in the sine table and the cosine table to be converted into sine and cosine digital signals, and then the two signals are compared with the digital angle Φ output by the second-stage integrator respectively. After the digital sine and cosine multiplier and error processing, a new digital angle Φ is formed through the phase-sensitive regulator and the first integrator, and the process is repeated in sequence to form a closed loop, until the error signal sin(θ-Φ)=0, that is, the real-time decoding of the motor rotor position signal is realized, and when the sine and cosine output signal changes at a constant speed, the error solved by the system is 0.
[0037] Figure 4 FIG. 1 is a schematic diagram of the structure of a sinusoidal excitation conditioning circuit according to an embodiment of the present invention. Figure 4 As shown, the sine excitation conditioning circuit is connected to the excitation signal terminal EXC (pin 38) at the output end of the RD2S1210 decoding chip and (39 pin) connection, the sinusoidal excitation signal is processed by the sinusoidal excitation conditioning circuit and transmitted to the excitation coil, where V REFOUT Indicates the reference voltage output terminal (pin 47) from the RD2S1210 decoding chip.
[0038] like Figure 4 As shown, the sinusoidal excitation conditioning circuit includes two first operational amplifier units and a first common mode choke coil L C1 The two excitation signal output terminals of the motor decoding chip are EXC and Through the two first operational amplifier units and the first common mode choke L C1 The first end of the primary and secondary sides is connected to the first common mode choke coil L C1 The second ends of the primary and secondary sides are connected to the excitation coil of the rotary transformer.
[0039] The first operational amplifier unit includes a first operational amplifier A 1 and the second operational amplifier A 2 The excitation signal output terminal EXC of the motor decoding chip is connected to the second operational amplifier A through the first resistor R1. 2 The negative terminal of the second operational amplifier A2 The negative end of the first capacitor C1 and the second resistor R2 are connected to the second operational amplifier A 2 The output terminal of the first operational amplifier A is connected; 1 The negative end of the resistor R3 is grounded and connected to the first operational amplifier A through the fourth resistor R4. 1 The output terminal of the first operational amplifier A 1 The output end is also connected to the second operational amplifier A through the sixth resistor R6. 2 The positive terminal of the first operational amplifier A 1 The positive end of the motor is connected to the reference voltage output terminal V of the motor decoding chip through the fifth resistor R5. REFOUT Connect the second operational amplifier A 2 The output end and the first common mode choke L C1 The first end of the primary side is connected, wherein the first capacitor C1 and the second resistor R2 are connected in parallel. The excitation signal output end of the motor decoding chip The connection circuit is the same as the EXC terminal and will not be repeated here.
[0040] Please continue to refer to Figure 4 The two excitation signal output ends of the motor decoding chip are connected to the power supply +V through a pair of surge suppression diodes D1_1 and D1_2. 1 and ground; the first common mode choke coil L C1 The first ends of the primary and secondary sides are grounded through the second capacitor C2 and the fourth capacitor C4 respectively, and the first common mode choke coil L C1 The second ends of the primary and secondary sides are grounded through the fifth capacitor C5 and the sixth capacitor C6 respectively, and the first common mode choke coil L C1 A third capacitor C3 is connected between the first end of the primary and secondary sides, and a first common mode choke coil L C1 The seventh capacitor C7 is connected between the second ends of the primary and secondary sides; the signal ground GGND of the sinusoidal excitation conditioning circuit and the shielding ground are connected through a magnetic bead L G1 connect.
[0041] Among them, A 1 and A 3 Choose a single op amp with low offset, low current noise, low input voltage, and wide signal bandwidth. 2 and A 4 Select a power amplifier. In this embodiment, D1_1, D1_2, D2_1, and D2_2 are selected as surge suppression diodes to protect the functional amplifier A. 2 and A 4 .
[0042] Figure 5 FIG. 1 is a schematic diagram of the structure of a sinusoidal conditioning circuit according to an embodiment of the present invention. Figure 5 As shown, the output terminal S of the sine coil of the rotary transformer1 and S 3 The terminal voltage is transmitted to the sine coil input terminals Sin (pin 42) and SinLO (pin 41) of the RD2S1210 decoding chip through the processing circuit.
[0043] like Figure 5 As shown, the sinusoidal conditioning circuit includes a second common-mode choke L C2 and two second operational amplifier units, the two ends of the rotary transformer sinusoidal coil are connected to the second common mode choke L C2 The first end of the primary and secondary sides is connected to the second common mode choke coil L C2 The second ends of the primary and secondary sides are connected to the RD2S1210 decoding chip through two second operational amplifier units respectively.
[0044] The second operational amplifier unit includes a third operational amplifier A 5_1 , the fourth operational amplifier A 5_2 and the fifth operational amplifier A 7 , the second common mode choke L C2 The second end of the primary side is connected to the third operational amplifier A through the seventh resistor R7. 5_1 The negative terminal of the third operational amplifier A 5_1 The negative end of the third operational amplifier A is connected to the negative end of the third operational amplifier A through the eighth resistor R8 and the ninth capacitor C9. 5_1 The output terminal of the fifth operational amplifier A 7 The positive terminal of the motor decoder chip is connected to the reference voltage output terminal V REFOUT Connect the fifth operational amplifier A 7 The negative end of the third operational amplifier A is connected to the third operational amplifier A through the ninth resistor R9 and the tenth resistor R10. 5_1 and the fourth operational amplifier A 5_2 The positive terminal of the third operational amplifier A 5_1 The output end of the fourth operational amplifier A is connected to the eleventh resistor R11 and the twelfth resistor R12. 5_2 The two ends of the twelfth resistor R12 are also connected to the thirteenth resistor R13 and one end of the tenth capacitor C10, respectively, and the other ends of the thirteenth resistor R13 and the tenth capacitor C10 are connected to the fourth operational amplifier A 5_2 The output terminal of the fourth operational amplifier A 5_2 The output end of is connected to the motor decoding chip, wherein the eighth resistor R8 is connected in parallel with the ninth capacitor C9. The second common mode choke coil L C2 The secondary side second end connection circuit is the same as the primary side second end connection circuit, which will not be repeated here.
[0045] like Figure 5 As shown, the second common mode choke L C2The second ends of the primary and secondary sides are grounded through the eighth capacitor C8 and the thirteenth capacitor C13 respectively; the second common mode choke coil L C2 The first and second ends of the secondary sides are connected through an eleventh capacitor C11. The two ends of the rotary transformer sine coil are grounded through a pair of surge suppression diodes D3_1 and D3_2 respectively; the second common mode choke L C2 The second ends of the primary and secondary sides are connected to the power supply +V through surge suppression diodes D4_1, D4_2, D5_1, and D5_2 respectively. 2 The signal ground GGND of the sine conditioning circuit and the shielding ground are connected through a magnetic bead L G2 connect.
[0046] Among them, A 5_1 and A 5_2 Composition of op amp A 5 , A 6_1 and A 6_2 Composition of op amp A 6 , that is, A 5 and A 6 Select dual op amps with low offset, low current noise, low input voltage, and wide signal bandwidth. Figure 5 Middle A 7 and A 8 Select a single op amp with low offset, low current noise, low input voltage, and wide signal bandwidth. D3_1, D3_2, D4_1, D4_2, D5_1, D5_2 select surge suppression diodes to protect op amp A 5 and A 6 .
[0047] Figure 6 FIG. 1 is a schematic diagram of the structure of a cosine conditioning circuit according to an embodiment of the present invention. Figure 6 As shown in Figure 1, the cosine conditioning circuit structure is the same as the sine conditioning circuit structure. The cosine coil output terminal S of the rotary transformer 2 and S 4 The terminal voltage is transmitted to the cosine coil input terminals Cos (pin 45) and CosLO (pin 44) of the RD2S1210 decoding chip through the processing circuit.
[0048] Among them, A 9_1 and A 9_2 Composition of op amp A 9 , A 10_1 and A 10_2 Composition of op amp A 10 , that is, op amp A 9 and A 10 Select dual op amps with low offset, low current noise, low input voltage, and wide signal bandwidth. Figure 6 Middle A 11 and A 12Choose a single op amp with low offset, low current noise, low input voltage, and wide signal bandwidth. C3 is the third common mode choke, L G3 The ferrite beads are used to separate the shielding ground from the signal ground CGND. D6_1, D6_2, D7_1, D7_2, D8_1, and D8_2 are surge suppression diodes that can protect the op amp A. 9 and A 10 .
[0049] This embodiment is described as follows:
[0050] (1) In order to improve the ability of the sine excitation conditioning circuit, the sine conditioning circuit and the cosine conditioning circuit to resist common-mode interference, a common-mode choke L is set in each conditioning circuit. C1 , L C2 , L C3 .
[0051] (2) In order to improve the ability of the sine excitation conditioning circuit, the sine conditioning circuit and the cosine conditioning circuit to resist common mode interference, a magnetic bead L is set in each conditioning circuit. G1 , L G2 , L G3 , isolate the shield ground from the signal ground CGND.
[0052] (3) In order to improve the ability of the sinusoidal excitation conditioning circuit to resist common-mode interference, common-mode capacitors C2, C4, C5 and C6 are set; in order to improve the ability of the sinusoidal excitation conditioning circuit to resist differential-mode interference, differential-mode capacitors C3 and C7 are set.
[0053] (4) In order to improve the ability of the sinusoidal conditioning circuit to resist common-mode interference, common-mode capacitors C8 and C13 are provided. In order to improve the ability of the sinusoidal conditioning circuit to resist differential-mode interference, a differential-mode capacitor C11 is provided.
[0054] (5) In order to improve the ability of the cosine conditioning circuit to resist common-mode interference, common-mode capacitors C17 and C22 are set; in order to improve the ability of the cosine conditioning circuit to resist differential-mode interference, a differential-mode capacitor C20 is set.
[0055] (6) In order to increase the reference voltage V in the sinusoidal excitation conditioning circuit REFOUT In order to improve the stability of the circuit, a common-mode amplifier circuit based on a single operational amplifier A1 and resistors R3-R5 and a common-mode amplifier circuit based on a single operational amplifier A3 and resistors R37-R39 are respectively provided.
[0056] (7) In order to increase the reference voltage V in the sine conditioning circuit REFOUT In order to improve the stability of the circuit, a follower circuit based on the single operational amplifier A7 and a follower circuit based on the single operational amplifier A8 were set up respectively.
[0057] (8) In order to increase the reference voltage V in the cosine conditioning circuit REFOUT To improve the stability of the circuit, a follower circuit based on single op amp A11 and a follower circuit based on single op amp A12 are provided respectively.
[0058] (9) In order to ensure the effectiveness of the proposed hardware measures to resist differential mode interference and common mode interference, it is also necessary to use the main program flow, hardware initialization flow, hardware initialization flow, A / D interrupt flow, and interrupt flow for processing decoding.
[0059] In order to realize the initial position detection of the permanent magnet synchronous motor rotor, this embodiment uses Code Composer Studio (code debugger) to complete software writing and compilation, and the host computer Bootloader or emulator updates and flashes the control board software. The software design includes the main program and the interrupt flow of processing decoding, collects relevant data and then compensates it, and finally outputs the position information to participate in the position loop control.
[0060] Figure 7 1 is a main program flow chart of an embodiment of the present invention. Figure 7 As shown, after power-on, the main program detects and initializes each hardware module, including the GPIO (general purpose input and output port) port (including reset port) between the decoding chip and the DSP (digital signal processor). The decoding chip needs to use three ports, namely SDO (serial data output), SDI (serial data input) and SCLK (clock signal) to complete SPI (serial peripheral interface) communication with DSP. SCLK generates clock signal to control data transmission; The pin is used to transfer the integrator data to the register; before the DSP establishes communication with the decoding chip, The pin is set low and delayed for 3 clock cycles, and then the timing is used to establish communication. During the program running process, the angle is calculated every 4 cycles, the sampled data reads the original angle of the resolver and delays, the communication is disconnected, the angle is converted according to the number of resolver pole pairs and motor pole pairs, the servo motor position control is realized, and the current and other data and coordinate transformation are calculated.
[0061] Figure 8 FIG. 1 is a schematic diagram of the hardware initialization process of an embodiment of the present invention. Figure 8 As shown, hardware initialization includes A / D (analog / digital) initialization, EEROM (electrically erasable programmable read-only memory) initialization, communication port initialization, D / A (digital / analog) initialization, pin initialization and timer initialization processes.
[0062] Fig. 9 FIG. 1 is a schematic diagram of the software initialization process of an embodiment of the present invention. Fig. 9As shown, software initialization includes the processes of control parameter initialization, switch quantity flag initialization, limit protection flag and delay initialization, control parameter and state initialization, A / D data area initialization and operation mode initialization.
[0063] Fig.10 FIG. 2 is a schematic diagram of an A / D interrupt flow chart of an embodiment of the present invention. Fig.10 As shown, the A / D interrupt process includes power-on initialization pin reset and opening of lock, periodic function logic processing, PWM (pulse width modulation) program module output PWM pulse, torque position initialization, speed initialization, running sampling module program, establishing decoding SPI communication, reading and calculating the resolver angle, acquiring data and processing and transmitting data, calculating voltage, current, rotor position and speed and other parameters, and executing voltage loop, current loop and position loop modules.
[0064] Fig.11 FIG. 1 is a schematic diagram of an interruption process for processing decoding according to an embodiment of the present invention. Fig.11 As shown in the figure, when the RD2S1210 decoding chip works in configuration mode:
[0065] First, the excitation frequency needs to be configured (10 kHz in this embodiment) to ensure that the frequency of the system output excitation voltage meets the requirements of the sine-cosine resolver.
[0066] Secondly, the resolution of the RD2S1210 decoding chip should be configured to meet the requirements of angle resolution accuracy. In this embodiment, the resolution of the resolver output angle acquisition is set to 16 bits. Therefore, the two bytes of angle information can be combined into an unsigned short integer data, and multiplied by 0.005493 (360 / 65536) to obtain the hexadecimal angle information.
[0067] Third, read the fault register to determine the validity of the position data, and transmit the angle position information and fault information to the microprocessor via SPI.
[0068] Therefore, in the configuration mode, the registers, excitation frequency and resolution of the RD2S1210 decoding chip need to be configured.
[0069] Among them, when it is judged that the system has a fault according to the fault information, The pin is set high to output fault information, otherwise, The pin is set high to output the motor rotor position information.
[0070] Furthermore, the present invention also provides a servo motor control system, including the above-mentioned RD2S1210 signal conditioning circuit for obtaining the motor position. The servo motor control system can improve the working performance of the servo motor controller by using both software and hardware measures to resist common mode interference and differential mode interference.
[0071] In summary, the present invention provides a signal conditioning circuit of RD2S1210 for obtaining the position of a motor, the signal conditioning circuit includes a sine excitation conditioning circuit, a sine conditioning circuit and a cosine conditioning circuit, the three conditioning circuits are respectively connected to a rotary transformer and a motor decoding chip, wherein the sine excitation conditioning circuit conditions the excitation signal output by the motor decoding chip and transmits it to the excitation coil of the rotary transformer, the sine conditioning circuit and the cosine conditioning circuit respectively condition the sine analog signal and the cosine analog signal at the sine coil and cosine coil ends of the rotary transformer, and output them to the motor decoding chip for decoding processing, thereby obtaining the rotor position of the motor, the signal conditioning circuit can reduce the adverse effects of common-mode interference and differential-mode interference on the position or speed of the servo motor, and is convenient for improving the position control accuracy of the servo motor, and the present invention provides a servo motor control system, which can improve the working performance of the servo motor controller through a dual set of software and hardware measures to resist common-mode interference and differential-mode interference.
[0072] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0073] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the present invention. After reading the above content, it will be apparent to those skilled in the art that various modifications and substitutions of the present invention will occur. Therefore, the protection scope of the present invention should be limited by the appended claims.
Claims
1. A signal conditioning circuit of RD2S1210 for obtaining the position of a motor, characterized in that: include: The three conditioning circuits, namely, a sine excitation conditioning circuit, a sine conditioning circuit and a cosine conditioning circuit, are respectively connected to the rotary transformer and the motor decoding chip; the sine excitation conditioning circuit is used to condition the excitation signal output by the motor decoding chip and transmit it to the excitation coil of the rotary transformer; the sine conditioning circuit and the cosine conditioning circuit are respectively used to condition the sine analog signal and the cosine analog signal at the sine coil and cosine coil ends of the rotary transformer, and output them to the motor decoding chip for decoding processing to obtain the motor rotor position.
2. The signal conditioning circuit of RD2S1210 for obtaining the motor position as claimed in claim 1, characterized in that: The motor decoding chip is a RD2S1210 chip, which includes an excitation oscillator, an AD conversion circuit and a closed-loop tracking loop. The closed-loop tracking loop includes a digital sine-cosine multiplier, a phase-sensitive regulator, a two-stage integrator and a filter compensator.
3. The signal conditioning circuit of RD2S1210 for obtaining the motor position as claimed in claim 1, characterized in that: The sinusoidal excitation conditioning circuit includes two first operational amplifier units and a first common-mode choke. The two excitation signal output ends of the motor decoding chip are respectively connected to the first ends of the primary and secondary sides of the first common-mode choke through the two first operational amplifier units, and the second ends of the primary and secondary sides of the first common-mode choke are connected to the excitation coil of the rotary transformer.
4. The signal conditioning circuit of RD2S1210 for obtaining the motor position as claimed in claim 3, characterized in that: The first operational amplifier unit includes a first operational amplifier and a second operational amplifier. The excitation signal output terminal of the motor decoding chip is connected to the negative terminal of the second operational amplifier through a first resistor, and the negative terminal of the second operational amplifier is also connected to the output terminal of the second operational amplifier through a first capacitor and a second resistor; the negative terminal of the first operational amplifier is grounded through a third resistor, and is connected to the output terminal of the first operational amplifier through a fourth resistor, the output terminal of the first operational amplifier is also connected to the positive terminal of the second operational amplifier through a sixth resistor, the positive terminal of the first operational amplifier is connected to the reference voltage output terminal of the motor decoding chip through a fifth resistor, and the output terminal of the second operational amplifier is connected to the first terminal of the primary side of the first common mode choke, wherein the first capacitor and the second resistor are connected in parallel.
5. The signal conditioning circuit of RD2S1210 for obtaining the motor position as claimed in claim 4, characterized in that: The two excitation signal output ends of the motor decoding chip are connected to the power supply and the ground through a pair of surge suppression diodes; the first ends of the primary and secondary sides of the first common mode choke are grounded through the second capacitor and the fourth capacitor respectively, the second ends of the primary and secondary sides of the first common mode choke are grounded through the fifth capacitor and the sixth capacitor respectively, the third capacitor is connected between the first ends of the primary and secondary sides of the first common mode choke, and the seventh capacitor is connected between the second ends of the primary and secondary sides of the first common mode choke; the signal ground and the shielding ground of the sinusoidal excitation conditioning circuit are connected through a magnetic bead.
6. The signal conditioning circuit of RD2S1210 for obtaining the motor position as claimed in claim 1, characterized in that: The circuit structure of the sine conditioning circuit is the same as that of the cosine conditioning circuit. The sine conditioning circuit includes a second common-mode choke and two second operational amplifier units. The two ends of the rotary transformer sine coil are respectively connected to the first ends of the primary and secondary sides of the second common-mode choke, and the second ends of the primary and secondary sides of the second common-mode choke are respectively connected to the motor decoding chip through the two second operational amplifier units.
7. The signal conditioning circuit of RD2S1210 for obtaining the motor position as claimed in claim 6, characterized in that: The second operational amplifier unit includes the third operational amplifier to the fifth operational amplifier, the second end of the primary side of the second common-mode choke is connected to the negative end of the third operational amplifier through the seventh resistor, the negative end of the third operational amplifier is connected to the output end of the third operational amplifier through the eighth resistor and the ninth capacitor, the positive end of the fifth operational amplifier is connected to the reference voltage output end of the motor decoding chip, the negative end of the fifth operational amplifier is connected to the positive ends of the third operational amplifier and the fourth operational amplifier through the ninth resistor and the tenth resistor respectively, the output end of the third operational amplifier is connected to the negative end of the fourth operational amplifier through the eleventh resistor and the twelfth resistor, wherein the two ends of the twelfth resistor are also connected to the thirteenth resistor and one end of the tenth capacitor respectively, the other ends of the thirteenth resistor and the tenth capacitor are both connected to the output end of the fourth operational amplifier, the output end of the fourth operational amplifier is connected to the motor decoding chip, wherein the eighth resistor and the ninth capacitor are connected in parallel.
8. The signal conditioning circuit of RD2S1210 for obtaining the motor position as claimed in claim 7, characterized in that: The second ends of the primary and secondary sides of the second common-mode choke are grounded via an eighth capacitor and a thirteenth capacitor respectively; the second ends of the primary and secondary sides of the second common-mode choke are connected via an eleventh capacitor.
9. The signal conditioning circuit of RD2S1210 for obtaining the motor position as claimed in claim 8, characterized in that: Both ends of the rotary transformer sinusoidal coil are grounded through a pair of surge suppression diodes; the second ends of the primary and secondary sides of the second common mode choke are connected to the power supply and the ground through a pair of surge suppression diodes; the signal ground and the shielding ground of the sinusoidal conditioning circuit are connected through a magnetic bead.
10. A servo motor control system, characterized in that: A signal conditioning circuit comprising RD2S1210 for acquiring the motor position as claimed in any one of claims 1 to 9.
