Rotary transformer initial deflection angle detection method and device for permanent magnet synchronous motor

By monitoring the resolver feedback signal in real time in the motor controller of the permanent magnet synchronous motor and generating three-phase current drive instructions, the initial deflection angle of the resolver is calculated, which solves the problem of insufficient detection accuracy and improves detection accuracy and processing efficiency.

CN118539792APending Publication Date: 2024-08-23SHENZHEN V&T TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310197353.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-23
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The resolver initial deflection angle detection method used for permanent magnet synchronous motors in the prior art has a problem of insufficient detection accuracy, which affects the motor control output performance.

Method used

By assembling a resolver detector and a resolver encoder in the motor controller, the resolver feedback signal is monitored in real time, its abnormality is judged, a three-phase current drive command is generated to drive the motor rotor to rotate, and the resolver is calculated based on the resolver position angle. Change the initial deflection angle and store it in the motor controller.

Benefits of technology

The detection accuracy of the initial deflection angle of the resolver is improved, the complicated processing process of zero position calibration of the resolver is eliminated, and the processing efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118539792A
    Figure CN118539792A
Patent Text Reader

Abstract

The invention discloses a resolver initial deflection angle detection method and device for a permanent magnet synchronous motor, and the method comprises the steps: controlling the rotation of the permanent magnet synchronous motor, monitoring a resolver feedback signal of the motor in real time, and judging whether the resolver feedback signal is abnormal or not; if no abnormity exists, a three-phase current driving instruction is generated to drive the motor rotor to rotate and coincide with the first direction, the rotary transformation position angle of the motor is obtained, a rotary transformation initial deflection angle is obtained through calculation according to a motor rotor position angle calculation formula, and the rotary transformation initial deflection angle is output to a storage of a motor controller to be stored. According to the technical method disclosed by the invention, in the embodiment of the invention, the motor is controlled through the motor controller, and the initial deflection angle of the resolver is automatically calculated and stored by outputting the corresponding driving control instruction and combining an algorithm, so that the detection accuracy of the initial deflection angle of the resolver is improved; and meanwhile, the complicated machining process of zero calibration of the rotary transformer is omitted, and the machining efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent control technology, and in particular to a method and device for detecting an initial deflection angle of a resolver of a permanent magnet synchronous motor. Background Art

[0002] If the motor controller is to maximize the torque output of the permanent magnet synchronous motor, it is necessary to accurately obtain the permanent magnet synchronous motor rotor position angle θr to ensure that the stator magnetic field generated by the permanent magnet synchronous motor stator winding and the rotor magnetic field generated by the permanent magnet synchronous motor rotor magnet are orthogonal. How to determine the exact value of the motor rotor position angle θr and set it becomes a key factor in the motor controller to maximize the output torque of the permanent magnet synchronous motor.

[0003] The stator magnetic field of the permanent magnet synchronous motor drives the motor rotor to rotate to a position that coincides with the direction of the stator magnetic field. Ideally, the N-pole center axis of the motor rotor is aligned with the A-axis, that is, the position angle θr of the permanent magnet synchronous motor rotor is 0. The resolver position angle θ measured by the monitoring special tooling is continuously adjusted until the resolver position angle θ=0, and then the resolver is installed and fixed. In this way, the resolver zero position calibration is completed, and the initial deflection angle δ between the resolver zero position and the A-axis is 0.

[0004] At present, in the process of zero-position calibration of the resolver of the permanent magnet synchronous motor (even if the initial deflection angle δ of the resolver is installed = 0), when the resolver is installed in the production of the permanent magnet synchronous motor, the U-phase winding of the permanent magnet synchronous motor is connected to the positive pole of the low-voltage DC power supply provided by the special tooling through the special tooling test equipment, and the V and W phases are connected to the negative pole of the low-voltage DC power supply. When the low-voltage DC power supply is turned on, the direction of the magnetic field generated by the stator winding of the permanent magnet synchronous motor theoretically coincides with the A axis. However, the existence of actual motor processing errors leads to differences in the inductance of the V and W phase windings, which leads to the magnetic field direction generated by the stator winding of the permanent magnet synchronous motor not completely coinciding with the A axis, resulting in poor accuracy of the initial deflection angle detected, and then the accuracy of the final resolver zero-position calibration is affected. Finally, in the vector control of the motor controller, if the resolver position angle θ is directly used as the motor rotor position angle θr, that is, θr = θ, the motor control output performance will be affected.

[0005] Therefore, the initial deflection angle detection method for the permanent magnet synchronous motor in the prior art method has the problem of insufficient detection accuracy. Summary of the invention

[0006] The embodiments of the present invention provide a method and device for detecting the initial deflection angle of a resolver of a permanent magnet synchronous motor, aiming to solve the problem of insufficient detection accuracy in the initial deflection angle detection method for a permanent magnet synchronous motor in the prior art.

[0007] In a first aspect, an embodiment of the present invention provides a method for detecting an initial deflection angle of a resolver for a permanent magnet synchronous motor. The method is applied to a motor controller, wherein a resolver detector is installed in the motor controller, and a resolver encoder is installed on the motor. The resolver detector is electrically connected to the motor controller and the resolver encoder respectively, and the motor controller is electrically connected to the permanent magnet synchronous motor to drive and control the permanent magnet synchronous motor. The method includes:

[0008] Sending a first control instruction to the motor controller to control the rotation of the permanent magnet synchronous motor and monitor the resolver feedback signal of the motor in real time;

[0009] Determining whether the resolver feedback signal is abnormal;

[0010] If the resolver feedback signal is normal, a three-phase current drive instruction corresponding to the first direction is generated and output to the motor controller, so as to drive the motor rotor to rotate and coincide with the first direction through the three-phase current corresponding to the three-phase current drive instruction;

[0011] Acquire a resolver position angle obtained by measuring a feedback signal of the resolver encoder by the resolver detector;

[0012] The initial deflection angle of the resolver is calculated based on the pre-stored motor rotor position angle calculation formula and the resolver position angle;

[0013] The resolver initial deflection angle is output to the memory of the motor controller for storage.

[0014] In the above method, optionally, the determining whether the resolver feedback signal is abnormal includes:

[0015] Acquire a first envelope signal and a second envelope signal from the resolver feedback signal;

[0016] Calculating resolver amplitude values ​​corresponding to the first envelope signal and the second envelope signal;

[0017] It is determined whether the resolver amplitude value is not greater than an amplitude determination threshold, thereby determining whether the resolver feedback signal is abnormal.

[0018] In the above method, optionally, the generating of the three-phase current drive instruction corresponding to the first direction includes:

[0019] Constructing a synthetic current vector having an amplitude corresponding to a preset current value along the first direction in a three-phase coordinate system;

[0020] The synthetic current vector is decomposed into three phases in the three-phase coordinate system to generate a corresponding three-phase current drive instruction.

[0021] The above method, optionally, after determining whether the resolver feedback signal is abnormal, further comprises:

[0022] If the resolver feedback signal is abnormal, a second control instruction is issued to shut down the motor controller.

[0023] The above method, optionally, after outputting the resolver initial deflection angle to the memory of the motor controller for storage, further comprises:

[0024] issuing a third control instruction to the motor controller to end the closed-loop vector control of the permanent magnet synchronous motor;

[0025] The motor rotor position angle calculation formula is used to calculate the resolver initial deflection angle stored in the memory and the resolver position angle obtained by measurement to obtain the motor rotor real-time position angle.

[0026] In a second aspect, an embodiment of the present invention provides a resolver initial deflection angle detection device for a permanent magnet synchronous motor, the device is configured in a motor controller, the motor controller is equipped with a resolver detector, the motor is equipped with a resolver encoder, the resolver detector is electrically connected to the motor controller and the resolver encoder respectively, the motor controller is electrically connected to the permanent magnet synchronous motor to drive and control the permanent magnet synchronous motor, the device includes:

[0027] A resolver feedback signal acquisition unit, used for issuing a first control instruction to the motor controller to control the rotation of the permanent magnet synchronous motor and monitor the resolver feedback signal of the motor in real time;

[0028] A judging unit, used for judging whether the resolver feedback signal is abnormal;

[0029] A three-phase current drive instruction output unit, configured to generate a three-phase current drive instruction corresponding to a first direction and output the three-phase current drive instruction to the motor controller if the resolver feedback signal is normal, so as to drive the motor rotor to rotate and coincide with the first direction through the three-phase current corresponding to the three-phase current drive instruction;

[0030] A resolver position angle acquisition unit, used to acquire a resolver position angle obtained by measuring the feedback signal of the resolver encoder by the resolver detector;

[0031] A calculation unit, used to calculate the initial deflection angle of the resolver according to a pre-stored motor rotor position angle calculation formula and the resolver position angle;

[0032] A storage unit is used to output the initial deflection angle of the resolver to the memory of the motor controller for storage.

[0033] In the above device, optionally, the judging unit comprises:

[0034] An envelope signal acquisition unit, used to acquire a first envelope signal and a second envelope signal from the resolver feedback signal;

[0035] A resolver amplitude value calculation unit, used to calculate resolver amplitude values ​​corresponding to the first envelope signal and the second envelope signal;

[0036] The resolver amplitude value judgment unit is used to judge whether the resolver amplitude value is not greater than an amplitude judgment threshold, thereby judging whether the resolver feedback signal is abnormal.

[0037] In the above device, optionally, the three-phase current drive instruction output unit includes:

[0038] A synthetic current vector construction unit, configured to construct a synthetic current vector having an amplitude corresponding to a preset current value along the first direction in a three-phase coordinate system;

[0039] The three-phase decomposition unit is used to perform three-phase decomposition on the synthetic current vector in the three-phase coordinate system to generate a corresponding three-phase current drive instruction.

[0040] In a third aspect, an embodiment of the present application provides a device for detecting an initial deflection angle of a resolver of a permanent magnet synchronous motor, which includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0041] Memory, used to store computer programs;

[0042] The processor is used to implement the steps of the method for detecting the initial deflection angle of the resolver of a permanent magnet synchronous motor as described in any one of the embodiments of the first aspect when executing the program stored in the memory.

[0043] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a method for detecting an initial rotation angle of a permanent magnet synchronous motor as described in any one of the embodiments of the first aspect.

[0044] It can be seen from the above scheme that the present invention provides a method and device for detecting the initial deflection angle of a resolver for a permanent magnet synchronous motor, which controls the rotation of the permanent magnet synchronous motor and monitors the resolver feedback signal of the motor in real time, determines whether the resolver feedback signal is abnormal, and if there is no abnormality, generates a three-phase current drive instruction to drive the motor rotor to rotate and coincide with the first direction, obtains the resolver position angle of the motor and calculates the resolver initial deflection angle according to the motor rotor position angle calculation formula, and outputs the resolver initial deflection angle to the memory of the motor controller for storage.

[0045] That is to say, in the embodiment of the present invention, the motor is controlled by the motor controller, and the initial deflection angle of the resolver is automatically calculated and stored by outputting corresponding drive control instructions and combining the algorithm, thereby improving the detection accuracy of the initial deflection angle of the resolver; at the same time, the detection process of the initial deflection angle of the resolver does not need to calibrate the initial deflection angle of the motor to "0", thereby eliminating the complicated processing process of the resolver zero position calibration and improving the processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0047] Figure 1 A schematic flow chart of a method for detecting an initial deflection angle of a resolver of a permanent magnet synchronous motor provided by an embodiment of the present invention;

[0048] Figure 2 A schematic diagram of an application scenario of a method for detecting an initial deflection angle of a resolver of a permanent magnet synchronous motor provided by an embodiment of the present invention;

[0049] Figure 3 A schematic diagram of the application effect of the method for detecting the initial deflection angle of a resolver of a permanent magnet synchronous motor provided by an embodiment of the present invention;

[0050] Figure 4 A schematic diagram of another application effect of the method for detecting the initial deflection angle of a resolver of a permanent magnet synchronous motor provided by an embodiment of the present invention;

[0051] Figure 5 A schematic diagram of another application effect of the method for detecting the initial deflection angle of a resolver of a permanent magnet synchronous motor provided by an embodiment of the present invention;

[0052] Figure 6 A block diagram of a device for detecting an initial deflection angle of a resolver of a permanent magnet synchronous motor provided by an embodiment of the present invention;

[0053] Figure 7 A block diagram of a resolver initial deflection angle detection device for a permanent magnet synchronous motor provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] In order to solve the problem of insufficient detection accuracy in the prior art detection method for the resolver initial deflection angle of a permanent magnet synchronous motor, an embodiment of the present invention provides a method for detecting the resolver initial deflection angle of a permanent magnet synchronous motor. Figure 1 and Figure 2 , Figure 1 A schematic flow chart of a method for detecting an initial deflection angle of a resolver of a permanent magnet synchronous motor provided by an embodiment of the present invention; Figure 2 A schematic diagram of an application scenario of a method for detecting the initial deflection angle of a resolver for a permanent magnet synchronous motor provided by an embodiment of the present invention; the method for detecting the initial deflection angle of a resolver for a permanent magnet synchronous motor is applied to a motor controller 1, and the method is executed by an application software installed in the motor controller 1, the motor controller 1 is equipped with a resolver detector 22, and the permanent magnet synchronous motor 2 is equipped with a resolver encoder 21, the resolver detector 22 is electrically connected to the motor controller 1 and the resolver encoder 21, respectively, and the motor controller 1 is electrically connected to the permanent magnet synchronous motor 2 to drive and control the permanent magnet synchronous motor 2. Among them, the resolver detector 22 is a device for outputting a resolver excitation signal and detecting a feedback signal of the resolver encoder 21 and performing signal processing.

[0056] The specific implementation process of the method for detecting the initial deflection angle of the resolver of a permanent magnet synchronous motor provided by the present invention is described in detail below. Figure 1 As shown, the method includes steps S110 to S160.

[0057] S110, issuing a first control instruction to the motor controller to control the rotation of the permanent magnet synchronous motor and monitor the resolver feedback signal of the motor in real time.

[0058] A first control instruction is issued to the motor controller to control the rotation of the permanent magnet synchronous motor and monitor the motor's resolver feedback signal in real time. The first control instruction is issued to the motor controller, the motor controller starts and drives the permanent magnet synchronous motor to rotate through I / F (current-frequency ratio) control, the I / F control open-loop drag motor rotation, and realizes the vector control of the permanent magnet synchronous motor. By setting the current-frequency within the range that matches the motor, the motor can be rotated at the set frequency. At this time, the motor stator generates a controllable rotating magnetic field, and the generated stator rotating magnetic field interacts with the motor rotor magnetic field to drive the motor rotor to rotate. The motor's resolver feedback signal can be monitored in real time through the motor controller. The resolver feedback signal is also the sin\cos signal of the resolver feedback during the motor rotation process.

[0059] S120: Determine whether the resolver feedback signal is abnormal.

[0060] Determine whether the resolver feedback signal is abnormal. Wherein, a first envelope signal and a second envelope signal can be obtained from the resolver feedback signal, and determine whether the resolver feedback signal is abnormal based on the first envelope signal and the second envelope signal.

[0061] In a specific embodiment, step S120 includes the steps of: acquiring a first envelope signal and a second envelope signal from the resolver feedback signal; calculating a resolver amplitude value corresponding to the first envelope signal and the second envelope signal; and determining whether the resolver amplitude value is not greater than an amplitude judgment threshold, thereby determining whether the resolver feedback signal is abnormal.

[0062] Specifically, the sin signal envelope and cos signal envelope of the motor resolver output are obtained by sampling the resolver feedback signal, thereby obtaining two sets of envelope signals Asin(ωt) and Acos(ωt) that change sinusoidally with the position angle, wherein A is the signal amplitude, and ω is the angular frequency of the motor rotor; the envelope signal Asin(ωt) obtained during one rotation of the motor is the first envelope signal, and the envelope signal Acos(ωt) obtained during one rotation of the motor is the second envelope signal.

[0063] The resolver amplitude values ​​corresponding to the first envelope signal and the second envelope signal can be further calculated. The calculation process can be performed by Figure 5 The calculation formula can be expressed as follows:

[0064]

[0065] The resolver amplitude value calculated by the above formula is the resolver amplitude value corresponding to one revolution of the motor controlled by the I / F, and it is also judged whether the resolver amplitude value is not greater than the amplitude judgment threshold, wherein the amplitude judgment threshold can be pre-set to a resolver abnormal alarm threshold value X greater than 0; the above process is to judge whether the calculated A is greater than X. If A is not greater than X, it is judged that the resolver feedback signal is abnormal, and if A is greater than X, it is judged that the resolver feedback signal is not abnormal.

[0066] In a specific embodiment, after step S120, the method further includes the following steps: if the resolver feedback signal is abnormal, issuing a second control instruction to shut down the motor controller.

[0067] If the resolver feedback signal is abnormal, it indicates that the resolver signal sin / cos is abnormal or has a broken wire fault. At this time, the resolver sensor module of the motor controller cannot output the position angle information normally or the output position angle information is wrong. Since the subsequent step of detecting the initial deflection angle of the resolver cannot be executed, a second control instruction is issued to shut down the motor controller.

[0068] S130. If there is no abnormality in the resolver feedback signal, generate a three-phase current drive instruction corresponding to the first direction and output it to the motor controller, so as to drive the motor rotor to rotate and coincide with the first direction through the three-phase current corresponding to the three-phase current drive instruction.

[0069] If there is no abnormality in the resolver feedback signal, a three-phase current drive instruction corresponding to the first direction is generated and output to the motor controller, so as to drive the motor rotor to rotate and coincide with the first direction through the three-phase current corresponding to the three-phase current drive instruction. If there is no abnormality in the resolver feedback signal, it indicates that the resolver sensor module of the motor controller can output the position angle information normally, that is, the step of detecting the initial deflection angle of the resolver can continue. A three-phase current drive instruction corresponding to the first direction can be generated and output to the motor controller. The motor controller outputs the corresponding three-phase current to the permanent magnet synchronous motor according to the three-phase current drive instruction, thereby realizing the rotation of the permanent magnet synchronous motor driven by the three-phase current. The schematic diagram of the three-phase stator winding of the motor is as shown in the figure. Figure 3 As shown, Figure 3As shown, the three-phase stator of the motor contains three windings, each of which can be supplied with a current separately, and three groups of currents are supplied to the three windings U, V, and W respectively, so that the angle between the three groups of currents in the plane coordinate system is 120°. Currents of different magnitudes can be supplied to the three windings respectively, so as to realize the rotation of the motor stator driven by the three-phase current, and since the phase current vectors supplied to the three windings are combined into a synthetic current vector, the three windings can be supplied with currents of appropriate magnitudes respectively to drive the motor rotor to rotate to a suitable angle, that is, to drive the motor stator to rotate to the direction corresponding to the synthetic current vector. In the embodiment of the present application, a three-phase current corresponding to the first direction can be generated, and after the motor is driven to rotate by the three-phase current, the motor rotor can be made to coincide with the first direction.

[0070] In a specific embodiment, step S130 includes the steps of: constructing a synthetic current vector having an amplitude corresponding to a preset current value along the first direction in a three-phase coordinate system; and performing three-phase decomposition of the synthetic current vector in the three-phase coordinate system to generate a corresponding three-phase current drive instruction.

[0071] Specifically, a synthetic current vector having an amplitude corresponding to a preset current value may be constructed along a first direction in a three-phase coordinate system, wherein the three-phase stationary coordinate system is as follows: Figure 4 As shown, the three axes of the three-phase coordinate system are A, B, and C. The three axes of the three-phase coordinate system are determined with reference to the three-phase stator winding UVW of the motor, and the angle between the three axes A, B, and C is 120°. Figure 4 In the example, the counterclockwise rotation direction is the positive direction (the rotation direction corresponding to the angular frequency ω of the motor rotor is as follows Figure 4 ), Figure 4 The α-axis and β-axis in the image constitute a two-phase stationary coordinate system αβ, in which the α-axis coincides with the A-axis and the β-axis leads the α-axis by 90° (in the positive direction). Figure 4 The d-axis and q-axis in the permanent magnet synchronous motor form a two-phase synchronous rotating coordinate system dq, wherein the d-axis is aligned with the central axis of the N magnetic pole of the motor rotor in the permanent magnet synchronous motor, and the q-axis leads the d-axis by 90° (in the positive direction). The dq-axis coordinate system rotates synchronously with the motor rotor at the same angular frequency ω.

[0072] As in the embodiment of the present application, the first direction can be determined as Figure 4 In the A-axis direction, a synthetic current vector with an amplitude corresponding to the preset current value can be constructed in the A-axis direction, and the direction of the synthetic current vector coincides with the A-axis. For example, if the preset current value is 0.6A, the amplitude of the synthetic current vector is also determined to be 0.6A. Afterwards, the synthetic current vector is decomposed into three phases in the three-phase coordinate system ABC, that is, the synthetic current vector is decomposed into three-phase current vectors along the A-axis, the B-axis and the C-axis.

[0073] By respectively passing current values ​​corresponding to the three-phase current into the three windings of the three-phase stator, the motor rotor can be driven to rotate in the same direction as the synthetic current vector corresponding to the three-phase current, that is, the motor rotor is driven to rotate in the first direction, that is, Figure 4 The d-axis in coincides with the A-axis. Figure 4 Here, θr represents the rotor position angle, and θr means the angle between the rotor d-axis and the rotor A-axis. When the motor rotor rotates to the first direction, θr=0.

[0074] S140: Obtain a resolver position angle obtained by measuring the feedback signal of the resolver encoder by the resolver detector.

[0075] The resolver position angle is obtained by measuring the feedback signal of the resolver encoder with the resolver detector. The resolver detector is a special detector mounted on the motor controller. After the motor rotor is controlled to rotate to a first direction, the resolver position angle of the permanent magnet synchronous motor can be measured by the resolver detector. Figure 4 θ is used to represent it, and θ means the angle between the motor rotor d-axis and the resolver zero position.

[0076] S150, calculating the resolver initial deflection angle according to the pre-stored motor rotor position angle calculation formula and the resolver position angle.

[0077] The resolver initial deflection angle is obtained according to the pre-stored motor rotor position angle calculation formula and the resolver position angle calculation. After the resolver position angle is measured, the resolver initial deflection angle can be obtained through the motor rotor position angle calculation formula and the resolver position angle calculation.

[0078] The calculation formula can be expressed by formula (2):

[0079] θr=θ*Poles / Np-δ (2);

[0080] Among them, θ is the resolver position angle, θr is the rotor position angle, δ is the resolver initial deflection angle, poles is the number of motor pole pairs, Np is the number of resolver pole pairs, poles and Np are related to the structural characteristics of the motor and resolver respectively. When the structural characteristics of the motor and resolver are uniquely determined, the values ​​of poles and Np are also uniquely determined.

[0081] Since the motor rotor rotates to the first direction, θr = 0, the above formula can be simplified to formula (3):

[0082] δ = θ*Poles / Np (3);

[0083] At this time, θ, poles and Np are all uniquely determined values, and the value of δ can be calculated using the simplified formula above.

[0084] S160, outputting the initial deflection angle of the resolver to the memory of the motor controller for storage.

[0085] The resolver initial deflection angle is output to the memory of the motor controller for storage. The motor controller is equipped with a memory, which may be an EEPROM (Erasable Programmable ROM Memory), and the resolver initial deflection angle δ is stored in the memory of the motor controller. Subsequently, the actual electronic rotor position angle θr during the operation of the motor can be calculated based on the resolver initial deflection angle δ stored in the memory of the motor controller and the measured resolver position angle θ.

[0086] In a specific embodiment, after step S160, the steps are also included: issuing a third control instruction to the motor controller to end the vector control of the permanent magnet synchronous motor; calculating the resolver initial deflection angle stored in the memory and the measured resolver position angle according to the motor rotor position angle calculation formula to obtain the motor rotor real-time position angle θr.

[0087] After the resolver initial deflection angle is sent to the motor controller for storage, a third control instruction is sent to the motor controller to shut down the motor controller, and the motor controller can end the vector control of the permanent magnet synchronous motor. In the subsequent normal power-on operation of the motor, the resolver initial deflection angle δ and the measured resolver position angle θ can be calculated according to the calculation formula, that is, the above formula (2) is used to calculate, so as to obtain the real-time motor rotor position angle; since θ and δ are known quantities, the values ​​of poles and Np are also uniquely determined, and the real-time motor rotor position angle can be expressed as the rotor position angle θr.

[0088] The embodiment of the present invention provides a method for detecting the initial deflection angle of a resolver for a permanent magnet synchronous motor, which controls the rotation of the permanent magnet synchronous motor and monitors the resolver feedback signal of the motor in real time, determines whether the resolver feedback signal is abnormal, and if there is no abnormality, generates a three-phase current drive instruction to drive the motor rotor to rotate and coincide with a first direction, obtains the resolver position angle of the motor, and calculates the initial deflection angle of the resolver according to a formula for calculating the motor rotor position angle, and outputs the initial deflection angle of the resolver to a memory of a motor controller for storage.

[0089] That is to say, in the embodiment of the present invention, the motor is controlled by the motor controller, and the initial deflection angle of the resolver is automatically calculated and stored by outputting the corresponding drive control instructions and combining the algorithm, thereby improving the detection accuracy of the initial deflection angle of the resolver; at the same time, the detection process of the initial deflection angle of the resolver does not need to calibrate the initial deflection angle of the resolver to "0", thereby eliminating the complicated processing process of the resolver zero position calibration and improving the processing efficiency.

[0090] Corresponding to the above-mentioned method for detecting the initial deflection angle of a resolver of a permanent magnet synchronous motor, an embodiment of the present invention further provides a device for detecting the initial deflection angle of a resolver of a permanent magnet synchronous motor, which can be configured in the motor controller 1. The device for detecting the initial deflection angle of a resolver of a permanent magnet synchronous motor is used to execute any embodiment of the above-mentioned method for detecting the initial deflection angle of a resolver of a permanent magnet synchronous motor. Specifically, please refer to Figure 6 , Figure 6 A block diagram of a device for detecting an initial deflection angle of a resolver of a permanent magnet synchronous motor provided by an embodiment of the present invention.

[0091] like Figure 6 As shown, the resolver initial deflection angle detection device 100 for a permanent magnet synchronous motor includes a resolver feedback signal acquisition unit 110, a judgment unit 120, a three-phase current drive instruction output unit 130, a resolver position angle acquisition unit 140, a calculation unit 150 and a storage unit 160.

[0092] The resolver feedback signal acquisition unit 110 is used to issue a first control instruction to the motor controller to control the rotation of the permanent magnet synchronous motor and monitor the resolver feedback signal of the motor in real time.

[0093] The judging unit 120 is used to judge whether the resolver feedback signal is abnormal.

[0094] In a specific embodiment, the judgment unit 120 includes subunits: an envelope signal acquisition unit, used to obtain a first envelope signal and a second envelope signal from the resolver feedback signal; a resolver amplitude value calculation unit, used to calculate the resolver amplitude value corresponding to the first envelope signal and the second envelope signal; a resolver amplitude value judgment unit, used to judge whether the resolver amplitude value is not greater than an amplitude judgment threshold, thereby judging whether the resolver feedback signal is abnormal.

[0095] In a specific embodiment, the resolver initial deflection angle detection device 100 for a permanent magnet synchronous motor further includes a subunit: a second control instruction sending unit, which is configured to issue a second control instruction to shut down the motor controller if the resolver feedback signal is abnormal.

[0096] The three-phase current drive instruction output unit 130 is used to generate a three-phase current drive instruction corresponding to the first direction and output it to the motor controller if there is no abnormality in the resolver feedback signal, so as to drive the motor rotor to rotate and coincide with the first direction through the three-phase current corresponding to the three-phase current drive instruction.

[0097] In a specific embodiment, the three-phase current drive instruction output unit 130 includes sub-units: a synthetic current vector construction unit, which is used to construct a synthetic current vector whose amplitude corresponds to the preset current value along the first direction in a three-phase coordinate system; a three-phase decomposition unit, which is used to perform three-phase decomposition of the synthetic current vector in the three-phase coordinate system to generate a corresponding three-phase current drive instruction.

[0098] The resolver position angle acquisition unit 140 is used to acquire the resolver position angle obtained by the resolver detector measuring the feedback signal of the resolver encoder.

[0099] The calculation unit 150 is used to calculate the initial deflection angle of the resolver according to the pre-stored motor rotor position angle calculation formula and the resolver position angle.

[0100] The storage unit 160 is used to output the initial deflection angle of the resolver to the memory of the motor controller for storage.

[0101] In a specific embodiment, the device 100 for detecting the initial deflection angle of a resolver for a permanent magnet synchronous motor further includes subunits: a third control instruction sending unit, used to send a third control instruction to the motor controller to end the vector control of the permanent magnet synchronous motor; a rotor real-time position angle calculation unit, used to calculate the resolver initial deflection angle stored in the memory and the measured resolver position angle according to the motor rotor position angle calculation formula to obtain the motor rotor real-time position angle.

[0102] The device for detecting the initial rotation angle of a resolver of a permanent magnet synchronous motor provided in an embodiment of the present invention controls the rotation of the permanent magnet synchronous motor and monitors the rotation angle feedback signal of the motor in real time, determines whether the rotation angle feedback signal is abnormal, and generates a three-phase current drive instruction to drive the motor rotor to rotate and coincide with a first direction if there is no abnormality, obtains the rotation angle of the motor, and calculates the initial rotation angle of the resolver according to the calculation formula of the motor rotor position angle, and outputs the initial rotation angle of the resolver to the memory of the motor controller for storage.

[0103] That is to say, in the embodiment of the present invention, the motor is controlled by the motor controller, and the initial deflection angle of the resolver is automatically calculated and stored by outputting the corresponding drive control instructions and combining the algorithm, thereby improving the detection accuracy of the initial deflection angle of the resolver; at the same time, the detection process of the initial deflection angle of the resolver does not need to calibrate the initial deflection angle of the resolver to "0", thereby eliminating the complicated processing process of the resolver zero position calibration and improving the processing efficiency.

[0104] like Figure 7As shown, an embodiment of the present invention further provides a device 10 for detecting the initial deflection angle of a rotary transformer for a permanent magnet synchronous motor, comprising a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 communicate with each other through the communication bus 404; the memory 403 is used to store computer programs; in one embodiment of the present invention, the processor 401 is used to execute the program stored in the memory 403, thereby implementing the steps of the method for detecting the initial deflection angle of a rotary transformer for a permanent magnet synchronous motor provided in any of the aforementioned method embodiments.

[0105] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for detecting the initial deflection angle of the resolver of a permanent magnet synchronous motor provided in any of the aforementioned method embodiments are implemented.

[0106] It should be noted that, in this article, relational terms such as "first" and "second" 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.

[0107] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for detecting an initial deflection angle of a resolver of a permanent magnet synchronous motor, wherein the method is applied to a motor controller, wherein a resolver detector is installed in the motor controller, and a resolver encoder is installed on the motor, wherein the resolver detector is electrically connected to the motor controller and the resolver encoder respectively, and the motor controller is electrically connected to the permanent magnet synchronous motor to drive and control the permanent magnet synchronous motor, wherein: The method comprises: Sending a first control instruction to the motor controller to control the rotation of the permanent magnet synchronous motor and monitor the resolver feedback signal of the motor in real time; Determining whether the resolver feedback signal is abnormal; If the resolver feedback signal is normal, a three-phase current drive instruction corresponding to the first direction is generated and output to the motor controller, so as to drive the motor rotor to rotate and coincide with the first direction through the three-phase current corresponding to the three-phase current drive instruction; Acquire a resolver position angle obtained by measuring a feedback signal of the resolver encoder by the resolver detector; The initial deflection angle of the resolver is calculated based on the pre-stored motor rotor position angle calculation formula and the resolver position angle; The resolver initial deflection angle is output to the memory of the motor controller for storage.

2. The method for detecting the initial deflection angle of a resolver of a permanent magnet synchronous motor according to claim 1, characterized in that: The determining whether the resolver feedback signal is abnormal includes: Acquire a first envelope signal and a second envelope signal from the resolver feedback signal; Calculating resolver amplitude values ​​corresponding to the first envelope signal and the second envelope signal; It is determined whether the resolver amplitude value is not greater than an amplitude determination threshold, thereby determining whether the resolver feedback signal is abnormal.

3. The method for detecting the initial deflection angle of a resolver for a permanent magnet synchronous motor according to claim 1, characterized in that: The generating of the three-phase current driving instruction corresponding to the first direction includes: Constructing a synthetic current vector having an amplitude corresponding to a preset current value along the first direction in a three-phase coordinate system; The synthetic current vector is decomposed into three phases in the three-phase coordinate system to generate a corresponding three-phase current drive instruction.

4. The method for detecting the initial deflection angle of a resolver of a permanent magnet synchronous motor according to claim 1, characterized in that: After determining whether the resolver feedback signal is abnormal, the method further includes: If the resolver feedback signal is abnormal, a second control instruction is issued to shut down the motor controller.

5. The method for detecting the initial deflection angle of a resolver for a permanent magnet synchronous motor according to claim 1, characterized in that: After outputting the resolver initial deflection angle to the memory of the motor controller for storage, the method further includes: issuing a third control instruction to the motor controller to end the closed-loop vector control of the permanent magnet synchronous motor; The motor rotor position angle calculation formula is used to calculate the resolver initial deflection angle stored in the memory and the resolver position angle obtained by measurement to obtain the motor rotor real-time position angle.

6. A device for detecting the initial deflection angle of a resolver of a permanent magnet synchronous motor, wherein the device is configured in a motor controller, the motor controller is equipped with a resolver detector, the motor is equipped with a resolver encoder, the resolver detector is electrically connected to the motor controller and the resolver encoder respectively, the motor controller is electrically connected to the permanent magnet synchronous motor to drive and control the permanent magnet synchronous motor, and characterized in that: The device comprises: A resolver feedback signal acquisition unit, used for issuing a first control instruction to the motor controller to control the rotation of the permanent magnet synchronous motor and monitor the resolver feedback signal of the motor in real time; A judging unit, used for judging whether the resolver feedback signal is abnormal; A three-phase current drive instruction output unit, configured to generate a three-phase current drive instruction corresponding to a first direction and output the three-phase current drive instruction to the motor controller if the resolver feedback signal is normal, so as to drive the motor rotor to rotate and coincide with the first direction through the three-phase current corresponding to the three-phase current drive instruction; A resolver position angle acquisition unit, used to acquire a resolver position angle obtained by measuring the feedback signal of the resolver encoder by the resolver detector; A calculation unit, used to calculate the initial deflection angle of the resolver according to a pre-stored motor rotor position angle calculation formula and the resolver position angle; A storage unit is used to output the initial deflection angle of the resolver to the memory of the motor controller for storage.

7. The device for detecting the initial deflection angle of a resolver for a permanent magnet synchronous motor according to claim 6, characterized in that: The judging unit comprises: An envelope signal acquisition unit, used to acquire a first envelope signal and a second envelope signal from the resolver feedback signal; A resolver amplitude value calculation unit, used to calculate resolver amplitude values ​​corresponding to the first envelope signal and the second envelope signal; The resolver amplitude value judgment unit is used to judge whether the resolver amplitude value is not greater than an amplitude judgment threshold, thereby judging whether the resolver feedback signal is abnormal.

8. The device for detecting the initial deflection angle of a resolver for a permanent magnet synchronous motor according to claim 6, characterized in that: The three-phase current drive instruction output unit comprises: A synthetic current vector construction unit, configured to construct a synthetic current vector having an amplitude corresponding to a preset current value along the first direction in a three-phase coordinate system; The three-phase decomposition unit is used to perform three-phase decomposition on the synthetic current vector in the three-phase coordinate system to generate a corresponding three-phase current drive instruction.

9. A device for detecting the initial deflection angle of a resolver of a permanent magnet synchronous motor, characterized in that: The device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; The processor is used to implement the steps of the method for detecting the initial deflection angle of the resolver of a permanent magnet synchronous motor described in any one of claims 1 to 5 when executing the program stored in the memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for detecting the initial deflection angle of a resolver for a permanent magnet synchronous motor are implemented as described in any one of claims 1 to 5.

Citation Information

Cited By

  • Driving motor rotary transformer zero offset angle detection method and system and electronic equipment

    CN121308623A

  • Method and system for detecting zero offset angle of motor resolver and electronic equipment

    CN121308623B