A method for determining the initial position and wiring mode of a motor rotor
By calculating the initial potential angle phase difference and the initial potential angle difference, the initial position and wiring method of the motor rotor are determined, which solves the problem of the motor not being able to operate normally and improves debugging efficiency and safety.
Patent Information
- Application Number
- CN201911236594.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-05
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2039-12-05
AI Technical Summary
It is difficult to accurately determine the initial position and wiring method of the motor rotor with the existing technology, causing the motor to fail to operate normally and affecting debugging efficiency and safety.
Provide a method to determine the wiring method by calculating the initial potential angle phase difference value and the initial potential angle difference value, find or calculate the initial potential angle phase and initial potential angle based on the factory potential angle phase, and determine the wiring method, including multiple wrong wiring types. , try running the motor to record good operation and find the corresponding initial position and wiring.
Quickly and accurately determine the initial position and wiring method of the motor rotor, which improves the efficiency of the debugging site and helps troubleshoot wiring errors. It is suitable for situations where the established wiring harness cannot be changed or is difficult to disassemble.
Smart Images

Figure CN112924722B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motor debugging, and in particular to a method for determining an initial position and a wiring mode of a motor rotor. Background Art
[0002] Three-phase permanent magnet synchronous motors, three-phase brushless DC motors or three-phase asynchronous motors with rotary transformers (referred to as "revolving transformers") are widely used in many industries such as new energy vehicles, rail transit, home appliances, servos, etc. The rotary transformer outputs signals such as the relative position of the motor rotor to the controller. The controller calculates the absolute position of the rotor based on the relative position and the initial position of the rotor, and performs operations together with other control signals, and finally accurately controls the operation of the motor through the three-phase line. The rotor initial position signal contains two parts: the initial potential angle and the initial potential angle phase. Generally, it has been calibrated before the controller and the motor leave the factory (referred to as "factory position") and stored in the controller.
[0003] Due to many reasons, there may be wiring errors in the three-phase wiring harness or the resolver wiring harness, which will cause the controller to be unable to accurately calculate the absolute position of the rotor and cannot drive the motor normally. The wiring method is an important condition for the operation of the motor and the basis for recording and solving faults. The wiring method is of great significance to the safety of the motor.
[0004] Therefore, there is an urgent need for a method that can determine the initial position and wiring mode of the motor rotor. Summary of the invention
[0005] In view of this, an object of the present invention is to provide a method for determining the initial position and wiring mode of a motor rotor, so as to solve the problem that the motor cannot operate normally due to wiring faults.
[0006] Based on the above purpose, the present invention provides a method for determining the initial position and wiring mode of a motor rotor, which is applied to the debugging of a three-phase motor with a rotary transformer with incorrect wiring. The initial position includes an initial potential angle and an initial potential angle phase. The determination method includes:
[0007] Provides wiring methods for multiple incorrect wiring types, representing incorrect wiring of the resolver and / or three-phase harness;
[0008] Provide the initial potential angle phase difference and initial potential angle difference corresponding to different wiring modes when the factory potential angle phase is in phase and in reverse phase respectively;
[0009] When the initial position is known and the wiring method is unknown, calculate the initial potential angle phase difference and the initial potential angle difference, and find the corresponding wiring method based on the factory potential angle phase;
[0010] When the wiring method is known but the initial position is unknown, the corresponding initial potential angle phase difference and initial potential angle difference are found according to the factory potential angle phase, and the initial potential angle phase and initial potential angle are calculated;
[0011] When the wiring method and the initial position are unknown, calculate the initial potential angle phase and the initial potential angle according to the initial potential angle phase difference and the initial potential angle difference respectively, test run the motor, record the initial potential angle phase and the initial potential angle corresponding to when the motor runs well, and find the corresponding wiring method.
[0012] In one embodiment, the initial potential angle phase difference corresponding to the different wiring modes is expressed by ΔP=mod(ΔP RD +ΔP P , 2) Calculate, where ΔP is the initial potential angle phase difference, mod is the remainder function, ΔP RD is the initial potential angle phase difference when only the resolver is wired incorrectly, ΔP P is the initial potential angle phase difference when only the three-phase harness is connected incorrectly, and mod(, 2) is the modulo 2.
[0013] In one embodiment, ΔP RD pass Calculate, where Indicates the initial potential angle phase difference corresponding to the case where only one of the following situations occurs in the resolver connection: swapping the excitation positive terminal / excitation negative terminal, swapping the sine positive terminal / sine negative terminal, swapping the cosine positive terminal / sine negative terminal, or swapping the sine terminal / cosine terminal; Express Sum.
[0014] In one embodiment, ΔP P The value is 0 or 1. When ΔP P When the value is 0, it means that the U-phase terminal / V-phase terminal on the motor side is connected to the U-phase terminal / V-phase terminal on the controller side, or the V-phase terminal / W-phase terminal on the controller side, or the W-phase terminal / U-phase terminal on the controller side. P When the value is 1, it indicates that the U-phase terminal / V-phase terminal on the motor side is connected to the U-phase terminal / W-phase terminal on the controller side, or the V-phase terminal / U-phase terminal on the controller side, or the W-phase terminal / V-phase terminal on the controller side.
[0015] In one embodiment, the calculating of the initial potential angle phase difference and the calculating of the initial potential angle phase include calculating by the formula P1=mod(P0+ΔP, 2), wherein P1 is the initial potential angle phase, P0 is the factory initial potential angle phase, and ΔP is the initial potential angle phase difference.
[0016] In one embodiment, the initial potential angle difference corresponding to the different wiring modes is expressed by Δθ=mod(Δθ RD +Δθ PRD , 360) calculation, where Δθ is the initial potential angle difference, Δθ RD is the initial potential angle difference when only the resolver is wired incorrectly, Δθ PRD pass Calculate, where P 1RD It is the new initial potential angle phase when only the resolver wiring is wrong.
[0017] In one embodiment, Δθ RD pass Calculate, where Indicates the initial potential angle difference corresponding to the case where only one of the following occurs in the resolver wiring: swapping the excitation positive terminal / excitation negative terminal, swapping the sine positive terminal / sine negative terminal, swapping the cosine positive terminal / sine negative terminal, or swapping the sine terminal / cosine terminal; Express Sum.
[0018] In one embodiment, P 1RD By P 1RD =mod(P0+ΔP RD , 2) Calculate, where ΔP RD is the initial potential angle phase difference when only the resolver wiring is wrong. Calculate, where Indicates the initial potential angle phase difference corresponding to the case where only one of the following situations occurs in the resolver connection: swapping the excitation positive terminal / excitation negative terminal, swapping the sine positive terminal / sine negative terminal, swapping the cosine positive terminal / sine negative terminal, or swapping the sine terminal / cosine terminal; Express Sum.
[0019] In one embodiment, the calculated initial potential angle difference and the calculated initial potential angle include calculations by the formula θ1=mod(θ0+Δθ, 360), wherein θ1 is the initial potential angle, θ0 is the factory initial potential angle, and Δθ is the initial potential angle difference.
[0020] In one embodiment, the multiple types of incorrect wiring include three types of incorrect wiring: only the rotary transformer is incorrectly wired, and the three-phase wiring harness is correctly wired; only the three-phase wiring harness is incorrectly wired, and the rotary transformer is correctly wired; and both the rotary transformer and the three-phase wiring harness are incorrectly wired.
[0021] From the above, it can be seen that the method for determining the initial position and wiring mode of the motor rotor provided by the present invention provides the initial potential angle phase difference and the initial potential angle difference corresponding to the possible incorrect wiring mode when the factory potential angle phase is in phase or inverse phase, and according to the known situation of the wiring mode and the initial position, searches for the corresponding initial potential angle phase difference and the initial potential angle difference and calculates the initial potential angle phase and the initial potential angle; or calculates the initial potential angle phase difference and the initial potential angle difference, and searches for the wiring mode; or according to the provided initial potential angle phase difference and the initial potential angle difference, test runs the motor, calculates the corresponding initial potential angle phase and the initial potential angle according to the running condition of the motor, and obtains the corresponding wiring mode, which can quickly and accurately determine the wiring mode and the initial position, and greatly improves the debugging efficiency at the debugging site. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 A schematic diagram of the connection relationship between the controller, the rotary transformer, the three-phase line and the motor according to an embodiment of the present invention;
[0024] Figure 2 A schematic diagram of the correct wiring method of the three-phase wires and the wiring terminals on the controller side and the motor side according to an embodiment of the present invention;
[0025] Figure 3 A schematic diagram of the correct wiring method of the rotary transformer and the wiring terminals on the controller side and the motor side according to an embodiment of the present invention;
[0026] Figure 4 A flow chart of a method for determining an initial position and a wiring mode of a motor rotor according to an embodiment of the present invention;
[0027] Figure 5 A schematic diagram of a flow chart of a method for calculating an initial position according to a wiring method of an embodiment of the present invention;
[0028] Figure 6 The figure is a schematic diagram of a specific process of calculating an initial position according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.
[0030] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present invention should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0031] like Figure 1 As shown in the figure, it is a schematic diagram of the connection relationship between the controller, the rotary transformer, the three-phase line and the motor. There are three-phase terminals on the controller side and the motor side, namely, the U phase, the V phase and the W phase. Among them, when the three-phase line respectively connects the U phase on the controller side with the U phase on the motor side, the V phase on the controller side with the V phase on the motor side, and the W phase on the controller side with the W phase on the motor side, the correct wiring method of the three-phase line with the wiring terminals on the controller side and the motor side is as follows: Figure 2 shown.
[0032] The resolver has three windings, namely the excitation winding, the sine winding and the cosine winding. The three windings are connected to six terminals: exc+ (excitation positive), exc- (excitation negative), sin+ (sine positive), sin- (sine negative), cos+ (cosine positive), cos- (cosine negative). The correct wiring method is as follows: Figure 3 As shown, the excitation winding of the rotary transformer connects the excitation positive on the motor side with the excitation positive on the controller side, and the excitation negative on the motor side with the excitation negative on the controller side; the sine winding of the rotary transformer connects the sine positive on the motor side with the sine positive on the controller side, and the sine negative on the motor side with the sine negative on the controller side; the cosine winding of the rotary transformer connects the cosine positive on the motor side with the cosine positive on the controller side, and the cosine negative on the motor side with the cosine negative on the controller side.
[0033] When the motor leaves the factory, that is, before it is used after production, the motor rotor has a factory position, including two data: the factory electrical angle and the factory electrical angle phase. The factory electrical angle is the electrical angle difference between the motor rotor and the resolver. The counterclockwise rotation of the motor is called the motor forward rotation, and the clockwise rotation is called the motor reverse rotation. The relative position of the resolver increases when the motor rotates forward or decreases when the motor reverses, which is called resolver in-phase. The relative position of the resolver decreases when the motor rotates forward or increases when the motor reverses, which is called resolver reverse phase.
[0034] For example, the electrical angle of the motor rotor is 0°, and the electrical angle of the rotary transformer is 50°. When the motor rotor rotates to 1°, if the rotary transformer rotates to 51°, then the rotary transformer is in phase with the motor rotor; and if the rotary transformer rotates to 49°, then the rotary transformer is in reverse phase with respect to the motor rotor. In this application, the number 0 is used to represent the in-phase, and the number 1 is used to represent the reverse phase.
[0035] The inventor found in the long-term work of motor debugging that in the actual debugging site, the three-phase wiring harness and the winding of the rotary transformer may be wired incorrectly, so that the various wiring terminals on the motor side and the controller side cannot correspond correctly, and the same type of wiring error occurs. When this type of wiring error occurs, the controller can still detect the relative position of the rotary transformer normally, but due to the wiring error, the rotor of the motor often deviates from the factory position, resulting in the controller being unable to accurately calculate the absolute position of the motor rotor and unable to drive the motor normally. For situations where the wiring harness is inconvenient to reconnect, such as the wiring harness number is missing, the established wiring harness cannot be changed, and the wiring harness is difficult to disassemble, it is very difficult to determine the wiring method and the initial position, and it is also impossible to record the actual wiring method, which causes great inconvenience to the debugging and safe operation of the motor.
[0036] The inventor proposes a method for simultaneously determining the initial position and wiring mode of a motor rotor. The method searches for the initial potential angle and the initial potential angle phase according to the initial potential angle phase difference and the initial potential angle difference corresponding to the possible wrong wiring mode when the factory potential angle phase is in phase or inverse phase, or searches for the wiring mode according to the known initial potential angle and the initial potential angle phase, or directly searches for the possible initial potential angle and the initial potential angle phase.
[0037] And analyze the wiring mode and initial position, analyze whether the wiring mode and initial position are known, and according to the known situation of the wiring mode and initial position, find the corresponding initial potential angle phase difference value and initial potential angle difference value to determine the wiring mode and initial position.
[0038] See also Figure 4, a method for determining the initial position and wiring mode of a motor rotor provided by an embodiment of the present invention is applied to a three-phase motor with a rotary transformer and a wiring error, wherein the initial position includes an initial potential angle and an initial potential angle phase, and the determination method includes:
[0039] S100, provides wiring methods for multiple types of incorrect wiring, indicating incorrect wiring of the resolver and / or the three-phase harness;
[0040] S200, respectively provides the initial potential angle phase difference and initial potential angle difference corresponding to different wiring modes when the factory potential angle phase is in phase and inverse phase;
[0041] S300, when the initial position is known and the wiring method is unknown, the initial potential angle phase difference and the initial potential angle difference are calculated, and the corresponding wiring method is found according to the factory potential angle phase;
[0042] S400, when the wiring mode is known but the initial position is unknown, according to the factory potential angle phase, the corresponding initial potential angle phase difference and initial potential angle difference are searched, and the initial potential angle phase and initial potential angle are calculated;
[0043] S500, when the wiring method and the initial position are unknown, calculate the initial potential angle phase and the initial potential angle according to the initial potential angle phase difference and the initial potential angle difference in different wiring methods, test-run the motor, judge the operating condition of the motor, record the initial potential angle phase and the initial potential angle corresponding to when the motor is in good operating condition, and find the corresponding wiring method.
[0044] In step S100, the multiple types of incorrect wiring include a first incorrect wiring type, a second incorrect wiring type, and a third incorrect wiring type. The first incorrect wiring type is that only the rotary transformer is incorrectly wired, and the three-phase wiring harness is correctly wired. The second incorrect wiring type is that only the three-phase wiring harness is incorrectly wired, and the rotary transformer is correctly wired; the third incorrect wiring type is that both the rotary transformer and the three-phase wiring harness are incorrectly wired.
[0045] The first wrong wiring type stipulates that the excitation terminal on the motor side can only be connected to the excitation terminal on the controller side, the sine terminal on the motor side cannot be separately connected to the sine and cosine terminals on the controller side, and the cosine terminal on the motor side cannot be separately connected to the sine and cosine terminals on the controller side. According to the above rules, when the resolver is wired incorrectly, there are five subtypes and 15 wiring methods for the first wrong wiring type: the first subtype, only swap exc+ / -, as shown in No. 9 in Table 1; the second subtype, only swap sin+ / -, as shown in No. 2 in Table 1; the third subtype, only swap cos+ / -, as shown in No. 10 in Table 1; the fourth subtype, only swap sin / cos, as shown in No. 6 in Table 1; the fifth subtype, multiple swaps in the first subtype, the second subtype, the third subtype and the fourth subtype appear at the same time, as shown in No. 1, 3, 4, 5, 7, 8, 11, 12, 13, 14, 15 in Table 1. No. 0 in Table 1 shows the correct wiring method.
[0046] In the second incorrect wiring type, that is, when only the three-phase line is incorrectly wired, there are 5 specific wiring methods, as shown in Table 2. In Table 2, the wiring method corresponding to number a is the correct wiring method, and numbers b to f are 5 incorrect wiring methods.
[0047] In the third incorrect wiring type, that is, when the three-phase wiring harness and the rotary transformer are wired incorrectly at the same time, the three-phase wiring harness and the wiring terminals are quite different from the rotary transformer wiring harness and the wiring terminals. In practice, it is almost impossible for the three-phase wiring harness and the rotary transformer to be swapped. Therefore, the 6 three-phase wiring harness wiring methods in Table 1 and the 16 rotary transformer wiring methods in Table 2 are combined to obtain a total of 6*16=96 different three-phase and rotary transformer wiring methods, of which 1 is the correct wiring method and the remaining 95 are all incorrect wiring methods.
[0048] Table 1 Rotary transformer wiring method
[0049]
[0050] Table 2 Three-phase wiring harness wiring method
[0051]
[0052] In step S200, the factory electrical angle phase P0 includes the resolver in-phase and the resolver anti-phase, and the resolver in-phase is defined as 0, and the resolver in-phase is defined as 1. For different factory electrical angle phases, the initial electrical angle phase difference and the initial potential angle difference corresponding to the same wiring method may be the same or different, and need to be determined according to the specific wiring method.
[0053] Specifically, the initial potential angle phase difference corresponding to the different wiring modes is calculated by ΔP=mod(ΔP RD +ΔP P ,2) Calculate, where ΔP is the initial potential angle phase difference, mod is the remainder function, ΔP RD is the initial potential angle phase difference when only the resolver is wired incorrectly, ΔP P is the initial potential angle phase difference when only the three-phase wiring harness is connected incorrectly, and mod(,2) is the modulo 2.
[0054] Table 3 Different rotary transformer line swapping methods and
[0055]
[0056] Furthermore, ΔP RD pass Calculate, where Indicates the initial potential angle phase difference corresponding to the case where only one of the following situations occurs in the resolver connection: swapping the excitation positive terminal / excitation negative terminal, swapping the sine positive terminal / sine negative terminal, swapping the cosine positive terminal / sine negative terminal, or swapping the sine terminal / cosine terminal; Express Sum. The values and corresponding wiring methods are shown in Table 3. RD The values and corresponding wiring methods are shown in Table 4.
[0057] ΔP P The value is 0 or 1. When ΔP P When the value is 0, it means that the U-phase terminal / V-phase terminal on the motor side is connected to the U-phase terminal / V-phase terminal on the controller side, or the V-phase terminal / W-phase terminal on the controller side, or the W-phase terminal / U-phase terminal on the controller side. P When the value is 1, it indicates that the U-phase terminal / V-phase terminal on the motor side is connected to the U-phase terminal / W-phase terminal on the controller side, or the V-phase terminal / U-phase terminal on the controller side, or the W-phase terminal / V-phase terminal on the controller side.
[0058] Table 4 Initial potential angle phase difference and initial potential angle difference of different rotary transformer connections
[0059]
[0060] ΔP P Available through Calculation, ΔP P The values and corresponding wiring methods are shown in Table 5.
[0061] Specifically, the initial potential angle difference corresponding to the different wiring modes is calculated by Δθ=mod(Δθ RD +Δθ PRD ,360) calculation, where Δθ is the initial potential angle difference, Δθ RD is the initial potential angle difference when only the resolver is wired incorrectly, Δθ PRD pass Calculate, where P 1RD It is the new initial potential angle phase when only the resolver wiring is wrong.
[0062] Δθ PRD The meaning can be understood as follows: assuming that the three-phase wiring harness is correctly connected, the new initial potential angle phase P is obtained according to the calculation method when only the resolver wiring error occurs. 1RD , then P 1RD As the factory initial potential angle phase, according to the formula The calculated initial potential angle difference, where Δθ P is the initial potential angle difference when only the three-phase wiring harness is connected incorrectly, mod is the remainder function, P0 is the factory electrical angle phase, k is the coefficient, when the U terminal on the controller side is connected to the U, V, W terminals on the motor side, k is 0, 1, 2 respectively. Δθ P The values and corresponding wiring methods are shown in Table 5.
[0063] Table 5 Initial potential angle phase difference and initial potential angle difference of different three-phase wiring harnesses
[0064]
[0065] Furthermore, Δθ RD pass Calculate, where Indicates the initial potential angle difference corresponding to the case where only one of the following occurs in the resolver wiring: swapping the excitation positive terminal / excitation negative terminal, swapping the sine positive terminal / sine negative terminal, swapping the cosine positive terminal / sine negative terminal, or swapping the sine terminal / cosine terminal; Express Sum. The values and corresponding wiring methods are shown in Table 3. RD The values and corresponding wiring methods are shown in Table 4.
[0066] P 1RD By P 1RD =mod(P0+ΔP RD ,2) Calculate, where ΔP RD is the initial potential angle phase difference when only the resolver wiring is wrong. Calculate, where Indicates the initial potential angle phase difference corresponding to the case where only one of the following situations occurs in the resolver connection: swapping the excitation positive terminal / excitation negative terminal, swapping the sine positive terminal / sine negative terminal, swapping the cosine positive terminal / sine negative terminal, or swapping the sine terminal / cosine terminal; Express Sum. ΔP RD The values and corresponding wiring methods are shown in Table 4.
[0067] After calculation, the initial potential angle phase difference ΔP corresponding to the different wiring modes has only two values, 0 and 1, which are set as ΔP list There are only 12 values of the initial potential angle difference Δθ corresponding to the different wiring modes, {0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330}, set to Δθ list Therefore, there are only 2*12=24 combinations of ΔP and Δθ obtained from 96 wiring methods, which are set as ΔPΔθ list (ΔP, Δθ), ΔP∈ΔP list , Δθ∈Δθ list That is, ΔPΔθ list Each value of corresponds to 4 different three-phase and rotary transformer wiring methods, and these 4 methods are composed of 2 three-phase wiring harness wiring and 2 rotary transformer wiring. In other words, when ΔP and Δθ are determined, 4 possible wiring methods can be obtained. Furthermore, if the three-phase or rotary transformer wiring method can be determined at this time, 2 possible rotary transformers or 2 possible three-phase wiring harness wiring methods can be obtained respectively.
[0068] The initial potential angle phase difference and initial potential angle difference corresponding to the different wiring modes provided can be presented in the form of a table. When presented in a table, when the factory electrical angle phase P0 is 0, it corresponds to one table, such as Table 6; when the factory electrical angle phase P0 is 1, it corresponds to another table, such as Table 7. In Tables 6 and 7, the data before "-" is Δθ, and the data after "-" is ΔP.
[0069] Table 6 Initial potential angle difference and initial potential angle phase difference when the factory electrical angle phase is 0
[0070]
[0071] The table construction process can specifically include:
[0072] According to the calculation formula of the initial potential angle phase difference, the initial potential angle phase difference values corresponding to different wiring modes are calculated respectively, and a first corresponding relationship table and a second corresponding relationship table between the wiring mode and the potential angle phase difference values are obtained when the factory potential angle phases are in-phase and inverted respectively;
[0073] According to the initial potential angle difference calculation formula, the initial potential angle differences corresponding to different combined wiring modes are calculated respectively, and a third corresponding relationship table and a fourth corresponding relationship table between the wiring modes and the potential angle differences when the different factory potential angle phases are in phase and inverse phase, respectively;
[0074] Combining the first correspondence table with the third correspondence table can obtain Table 6; combining the second correspondence table with the fourth correspondence table can obtain Table 7.
[0075] In step S300, the initial position can be obtained by initial potential angle calibration or self-learning of a controller with an initial potential angle identification function.
[0076] Table 7 Initial potential angle difference and initial potential angle phase difference when the factory electrical angle phase is 1
[0077]
[0078] The calculation of the initial potential angle phase difference includes calculation by formula P1=mod(P0+ΔP,2)(1), wherein P1 is the initial potential angle phase, P0 is the factory initial potential angle phase, and ΔP is the initial potential angle phase difference.
[0079] The calculation of the initial potential angle difference includes calculation by formula θ1=mod(θ0+Δθ,360) (2), wherein θ1 is the initial potential angle, θ0 is the factory initial potential angle, and Δθ is the initial potential angle difference.
[0080] Furthermore, when the calculated initial potential angle difference value does not match the provided initial potential angle difference value, the calculated initial potential angle difference value is rounded off and Δθ is selected. list The closest value is found and the corresponding wiring method is searched according to the closest value.
[0081] In a specific embodiment, the factory initial potential angle θ0 is 231, the factory initial potential angle phase P0 is 0, and the initial potential angle θ1 in the case of wiring error is 82 and the initial potential angle phase P1 is 1 through recalibration or controller self-learning.
[0082] According to formula (1) and formula (2), ΔP = 1 and Δθ = 211 are calculated. Since the initial potential angle obtained by calibration or controller self-learning has a certain error (generally about ±2), it is necessary to round Δθ to the nearest Δθ. listHere, Δθ is 211, which is closest to 210, so the rounding process makes Δθ=210. The factory initial potential angle phase P0 is 0, so from Table 6, according to ΔP=1 and Δθ=210, it can be found that the possible wiring methods at this time are d4, d5, e6, and e7, a total of 4 methods.
[0083] In step S400, the calculation of the initial potential angle phase includes calculation by formula P1=mod(P0+ΔP,2)(1), wherein P1 is the initial potential angle phase, P0 is the factory initial potential angle phase, and ΔP is the initial potential angle phase difference.
[0084] The calculation of the initial potential angle includes calculation by formula θ1=mod(θ0+Δθ,360) (2), wherein θ1 is the initial potential angle, θ0 is the factory initial potential angle, and Δθ is the initial potential angle difference.
[0085] In a specific embodiment, when the wiring method is known, as shown in Table 8, the factory initial potential angle θ0 is 321, and the factory initial potential angle phase P0 is 1. Then, ΔP and Δθ are checked from Table 7, and it is found that the wiring method shown in Table 8 corresponds to the rotary transformer wiring method numbered 7 in Table 7, and the three-phase wiring harness wiring method numbered e. Therefore, by checking ΔP and Δθ at position e7, ΔP is 1 and Δθ is 210. Then, according to formula (1) and formula (2), the new initial potential angle phase P1=mod(1+1,2)=0 and the new initial potential angle θ1=mod(321+210,360)=171 are calculated.
[0086] Table 8 Examples of incorrect wiring of three-phase and resolver
[0087] Motor side exc+ exc- sin+ sin- cos+ cos- U V W Controller side exc- exc+ cos- cos+ sin- sin+ V W U
[0088] In step S500, the operation of the motor can be judged based on whether it can run, current parameters, command response, etc., such as feedback current fluctuation, speed torque command tracking, actual output torque of 0 torque command, etc. to determine whether it runs well. The specific operation of the motor is a well-known technology in the art and will not be described here.
[0089] In the extreme case where the initial position is unknown and cannot be calibrated or self-learned, the motor is allowed to run a trial. By trying some possible initial position values and adjusting the potential angle difference according to the actual operation of the motor, the final attempted initial position will be closer to the actual initial position. During the specific adjustment, if the operation of the motor deteriorates, it can be judged that the difference between the current attempted initial position and the actual initial position is larger. For example, if the initial potential angle difference is increased, the operation deteriorates further. In this case, the value is adjusted down until it runs well.
[0090] In a specific embodiment, assuming that the factory initial potential angle θ0 is 231 and the factory initial potential angle phase P0 is 0, there are 12 possible results for θ1, namely mod(231+Δθ list ,360), P1 has two results, 0 and 1. Therefore, P1 can be set to 0 and 1 respectively, and θ1 is mod(231+Δθ list ,360) take values one by one to test run the motor. For example, the motor is found to be running well in the 20th attempt. At this time, ΔP is 1 and Δθ is 210. Then it can be considered that the new initial potential angle phase is 1 and the new initial potential angle is 81. According to the known new initial position, the possible wiring methods can be obtained by looking up the wiring method in the table as d4, d5, e6, and e7.
[0091] If the motor still cannot operate normally after 24 initial position attempts, and it can be determined that the controller and motor functions are intact and the wiring harness is in good contact, then this can be used as a reference to determine that the resolver has mechanical position slippage or the wiring method does not belong to any of the 96 wiring methods.
[0092] The method for determining the initial position and wiring mode of the motor rotor provided by the embodiment of the present invention can obtain the initial position and wiring mode of the motor rotor, improve the debugging efficiency of the debugging site, and also check the wiring errors. In the case of a known wrong wiring mode in the debugging site where the wiring harness is inconvenient to reconnect due to reasons such as the inability to change the established wiring harness and the difficulty in disassembly, the method provided by the present invention can quickly find the initial potential angle phase difference and the initial potential angle difference, and quickly calculate the new position, so there is no need for on-site initial potential angle calibration or initial potential angle self-learning, which can improve the debugging efficiency; in the case where the wiring harness cannot be reconnected due to the lack of wiring harness number at the debugging site, according to the new position obtained by the initial potential angle calibration or initial potential angle self-learning, according to the method provided by the present invention, the possible wrong wiring mode can be quickly reversed, which is convenient for wiring error checking and recording; in the extreme case where the wiring harness number is missing at the debugging site, and the initial position is unknown and cannot be calibrated or self-learned, the method provided by the present application can be tried up to 24 times to obtain the new position and possible wrong wiring mode, which can improve the debugging efficiency and facilitate the wiring fault troubleshooting.
[0093] The embodiment of the present invention also provides another embodiment, which is used to determine the initial position corresponding to the wiring method by formula calculation when the wiring method is known but the initial position is unknown.
[0094] See also Figure 5 ,include:
[0095] S600, obtaining a wiring method, and analyzing an incorrect wiring type corresponding to the wiring method;
[0096] S700: Calculate the actual initial electrical angle and the actual initial electrical angle phase of the motor according to the incorrect wiring type.
[0097] In step S600, the wrong wiring type includes a first wrong wiring type, a second wrong wiring type and a third wrong wiring type. The first wrong wiring type is that only the rotary transformer is wrongly wired, and the three-phase wiring harness is correctly wired. The second wrong wiring type is that only the three-phase wiring harness is wrongly wired, and the rotary transformer is correctly wired; the third wrong wiring type is that both the rotary transformer and the three-phase wiring harness are wrongly wired.
[0098] Specifically, the rules and specific wiring methods for each type of incorrect wiring are the same as those in the above-mentioned embodiment and will not be described in detail here.
[0099] See also Figure 6 , step S700 includes:
[0100] S701, when the wrong wiring type is the first wrong wiring type, respectively calculating a first actual initial potential angle and a first actual initial potential angle phase by using a first actual initial potential angle calculation formula and a first actual initial potential angle phase calculation formula;
[0101] S702, when the wrong wiring type is the second wrong wiring type, calculating the second actual initial potential angle and the second actual initial potential angle phase by using a second actual initial potential angle calculation formula and a second actual initial potential angle phase calculation formula respectively;
[0102] S703: When the incorrect wiring type is the third incorrect wiring type, respectively calculating a third actual initial potential angle and a third actual initial potential angle phase by using a third actual initial potential angle calculation formula and a third actual initial potential angle phase calculation formula.
[0103] In step S701, the first actual initial potential angle phase calculation formula is as shown in formula (5), P 1RD =mod(P0+ΔP RD ,2)(5), where P 1RD is the actual initial electrical angle phase when only the resolver is wired incorrectly, mod is the remainder function, P0 is the factory electrical angle phase, ΔP RD It is the initial potential angle phase difference value when only the resolver wiring is wrong.
[0104] Furthermore, ΔP RD Calculate according to formula (3): in, Indicates that the resolver wiring only has one of the first, second, third and fourth subtypes, that is, the initial potential angle phase difference corresponding to only one of the following situations: swapping exc+ / -, swapping sin+ / -, swapping cos+ / -, and swapping sin / cos; Indicates the sum of the initial potential angle phase difference values when one or more of the first subtype, the second subtype, the third subtype and the fourth subtype occur.
[0105] The first subtype, the second subtype, the third subtype and the fourth subtype are represented by the numbers 1, 2, 3 and 4 respectively, and the value of the letter n in formula (3) is 1, 2, 3, 4. For example, the wiring method of the rotary transformer numbered 6 in Table 1, that is, the fourth subtype, only swaps the wiring method of sin / cos. The wiring method of the resolver numbered 3 in Table 1 is the fifth sub-type, and the exc+ / - and cos+ / - are swapped at the same time.
[0106] The calculation formula of the first actual initial potential angle is shown in formula (6), θ 1RD =mod(θ0+Δθ RD ,360)(6), where θ 1RD is the new initial potential angle when only the resolver is wired incorrectly, θ0 is the factory electrical angle, Δθ RD It is the initial potential angle difference when only the resolver wiring is wrong.
[0107] Furthermore, Δθ RD Calculate according to formula (4): in, Indicates that the resolver wiring only has one of the first, second, third and fourth subtypes, that is, the initial potential angle difference corresponding to only one of the following situations: swapping exc+ / -, swapping sin+ / -, swapping cos+ / -, and swapping sin / cos; Indicates the sum of the initial potential angle differences when one or more of the first subtype, the second subtype, the third subtype, and the fourth subtype occur.
[0108] The first subtype, the second subtype, the third subtype and the fourth subtype are represented by the numbers 1, 2, 3 and 4 respectively, and the value of the letter n in formula (4) is 1, 2, 3, 4. For example, the wiring method of the rotary transformer numbered 6 in Table 1, that is, the fourth subtype, only swaps the wiring method of sin / cos. The wiring method of the rotary transformer numbered 3 in Table 1 is the fifth sub-type. At the same time, exc+ / - and cos+ / - are swapped. sum(Δθ RD n)=sum(Δθ RD 1 +Δθ RD 3 )=180+180=360.
[0109] In step S702, the second actual initial potential angle phase calculation formula is as shown in formula (9), P 1P =mod(P0+ΔP P ,2)(9), where P 1P is the new initial potential angle phase when only the three-phase wiring harness is connected incorrectly, mod is the remainder function, P0 is the factory electrical angle phase, ΔP P It is the initial potential angle phase difference value when only the three-phase harness wiring is wrong.
[0110] Furthermore, ΔP P Calculate according to formula (7):
[0111]
[0112] The second actual initial potential angle calculation formula is shown in formula (10), θ 1P =mod(θ0+Δθ P ,360)
[0113] (10), where θ 1P is the actual initial potential angle when only the three-phase wiring harness is connected incorrectly, mod is the remainder function, θ0 is the factory electrical angle, Δθ P It is the initial potential angle difference when only the three-phase harness wiring is wrong.
[0114] Furthermore, Δθ P Calculate according to formula (8): Wherein, mod is the remainder function, P0 is the factory electrical angle phase, k is the coefficient, and when the U terminal on the controller side is connected to the U, V, and W terminals on the motor side, k is 0, 1, and 2 respectively.
[0115] In step S703, the third actual initial potential angle phase calculation formula is as shown in formula (14), P 1PRD =mod(P0+ΔP RD +ΔP P ,2)(14), where P 1PRD is the new initial potential angle phase when the resolver and the three-phase wiring harness are both wired incorrectly, mod is the remainder function, P0 is the factory electrical angle phase, ΔP RD is the initial potential angle phase difference when only the resolver is wired incorrectly, ΔP P It is the initial potential angle phase difference value when only the three-phase harness wiring is wrong.
[0116] The third actual initial potential angle calculation formula is shown in formula (15):
[0117] θ 1PRD =mod(θ0+Δθ RD +Δθ PRD ,360)(15), where θ 1PRD is the new initial potential angle when both the resolver and the three-phase harness are wired incorrectly, mod is the remainder function, θ0 is the factory electrical angle, Δθ RD is the initial potential angle difference when only the resolver is wired incorrectly, Δθ PRD Assuming that the three-phase wiring harness is correctly connected, the new initial potential angle phase P is obtained according to the calculation method that only the resolver wiring error occurs 1RD , then P 1RD As the factory initial potential angle phase, it is calculated according to formula (8).
[0118] Furthermore, Δθ PRD Calculate according to formula (13): Among them, mod is the remainder function, P 1RD is the actual initial electrical angle phase when only the resolver wiring is wrong, k is the coefficient, and when the U terminal on the controller side is connected to the U, V, and W terminals on the motor side, k is 0, 1, and 2 respectively.
[0119] It should be noted that formula (14) is also applicable to the calculation of the actual initial potential angle phase when only the resolver wiring is wrong and only the three-phase wiring harness wiring is wrong. For example, when only the resolver wiring is wrong, ΔP in the formula is P The default value is 0, which means it does not exist. For example, when only the three-phase wiring harness is incorrectly connected, ΔP in the formula RD Formula (15) is also applicable to the calculation of the actual initial potential angle when only the resolver wiring is wrong and only the three-phase wiring harness wiring is wrong. For example, when only the resolver wiring is wrong, Δθ in the formula is PRD The default value is 0, which means it does not exist. For example, when only the three-phase wiring harness is incorrectly wired, Δθ in the formula RD The default value is 0, which means it does not exist. PRD It is actually equal to Δθ P .
[0120] This embodiment analyzes the known wiring mode and the wrong wiring type corresponding to the wiring mode, selects the corresponding formula, first calculates the initial potential angle difference and the initial potential angle phase difference, and then calculates the initial potential angle and the initial potential angle phase according to the initial potential angle difference and the initial potential angle phase difference, so as to obtain the initial position. In the case of a known wrong wiring mode in the debugging site where the wiring harness is inconvenient to reconnect due to reasons such as the inability to change the established wiring harness and the difficulty in disassembly, the method provided by the present invention can directly calculate the initial potential angle phase difference and the initial potential angle difference, and quickly calculate the new position, so that there is no need for on-site initial potential angle calibration or initial potential angle self-learning, thereby improving the debugging efficiency.
[0121] It should be noted that the method of the embodiment of the present invention can be performed by a single device, such as a computer or a server. The method of this embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present invention, and the multiple devices will interact with each other to complete the described method.
[0122] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0123] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0124] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Within the scope of the present invention, the above embodiments or technical features in different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity.
[0125] In addition, to simplify the description and discussion, and in order not to obscure the present invention, known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the devices may be shown in the form of block diagrams to avoid obscuring the present invention, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the present invention will be implemented (i.e., these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present invention, it will be apparent to those skilled in the art that the present invention may be implemented without these specific details or with variations in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0126] Although the invention has been described in conjunction with specific embodiments of the invention, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0127] The embodiments of the present invention are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for determining the initial position and wiring mode of a motor rotor, which is applied to the debugging of a three-phase motor with a rotary transformer and a wiring error, wherein the initial position includes an initial potential angle and an initial potential angle phase. It is characterized in that The determination method comprises: Provides wiring methods for multiple incorrect wiring types, representing incorrect wiring of the resolver and / or three-phase harness; Provide the initial potential angle phase difference and initial potential angle difference corresponding to different wiring modes when the factory potential angle phase is in phase and in reverse phase respectively; When the initial position is known and the wiring method is unknown, calculate the initial potential angle phase difference and the initial potential angle difference, and find the corresponding wiring method based on the factory potential angle phase; When the wiring method is known but the initial position is unknown, the corresponding initial potential angle phase difference and initial potential angle difference are found according to the factory potential angle phase, and the initial potential angle phase and initial potential angle are calculated; When the wiring method and the initial position are unknown, calculate the initial potential angle phase and the initial potential angle according to the initial potential angle phase difference and the initial potential angle difference respectively, test run the motor, record the initial potential angle phase and the initial potential angle corresponding to when the motor runs well, and find the corresponding wiring method.
2. The method for determining the initial position and wiring mode of the motor rotor according to claim 1, It is characterized in that The initial potential angle phase difference corresponding to the different wiring modes is expressed by ΔP=mod(ΔP RD +ΔP P , 2) Calculate, where ΔP is the initial potential angle phase difference, mod is the remainder function, ΔP RD is the initial potential angle phase difference when only the resolver is wired incorrectly, ΔP P is the initial potential angle phase difference when only the three-phase wiring harness is connected incorrectly, and mod(,2) is the modulo 2.
3. The method for determining the initial position and connection mode of the motor rotor according to claim 2, It is characterized in that ΔP RD pass Calculate, where Indicates the initial potential angle phase difference corresponding to the case where only one of the following situations occurs in the resolver connection: swapping the excitation positive terminal / excitation negative terminal, swapping the sine positive terminal / sine negative terminal, swapping the cosine positive terminal / sine negative terminal, or swapping the sine terminal / cosine terminal; Express Sum.
4. The method for determining the initial position and connection mode of the motor rotor according to claim 3, It is characterized in that ΔP P The value is 0 or 1. When ΔP P When the value is 0, it means that the U-phase terminal / V-phase terminal on the motor side is connected to the U-phase terminal / V-phase terminal on the controller side, or the V-phase terminal / W-phase terminal on the controller side, or the W-phase terminal / U-phase terminal on the controller side. P When the value is 1, it indicates that the U-phase terminal / V-phase terminal on the motor side is connected to the U-phase terminal / W-phase terminal on the controller side, or the V-phase terminal / U-phase terminal on the controller side, or the W-phase terminal / V-phase terminal on the controller side.
5. The method for determining the initial position and connection mode of the motor rotor according to claim 4, It is characterized in that The calculating of the initial potential angle phase difference and the calculating of the initial potential angle phase include: 1 =mod(P 0 +ΔP, 2) calculation, where P 1 is the initial potential angle phase, P 0 is the factory initial potential angle phase, and ΔP is the initial potential angle phase difference.
6. The method for determining the initial position and connection mode of the motor rotor according to claim 1, It is characterized in that The initial potential angle difference corresponding to the different wiring modes is calculated by Δθ=mod(Δθ RD +Δθ PRD , 360) calculation, where Δθ is the initial potential angle difference, Δθ RD is the initial potential angle difference when only the resolver is wired incorrectly, Δθ PRD pass Calculate, where P 1RD is the new initial potential angle phase when only the resolver wiring is wrong; k is a coefficient. When the U terminal on the controller side is connected to the U, V, and W terminals on the motor side, k is 0, 1, and 2 respectively.
7. The method for determining the initial position and connection mode of the motor rotor according to claim 6, It is characterized in that Δθ RD pass Calculate, where Indicates the initial potential angle difference corresponding to the case where only one of the following occurs in the resolver wiring: swapping the excitation positive terminal / excitation negative terminal, swapping the sine positive terminal / sine negative terminal, swapping the cosine positive terminal / sine negative terminal, or swapping the sine terminal / cosine terminal; Express Sum.
8. The method for determining the initial position and connection mode of the motor rotor according to claim 7, It is characterized in that P 1RD By P 1RD =mod(P 0 +ΔP RD , 2) Calculate, where ΔP RD is the initial potential angle phase difference when only the resolver wiring is wrong. Calculate, where Indicates the initial potential angle phase difference corresponding to the case where only one of the following situations occurs in the resolver connection: swapping the excitation positive terminal / excitation negative terminal, swapping the sine positive terminal / sine negative terminal, swapping the cosine positive terminal / sine negative terminal, or swapping the sine terminal / cosine terminal; Express Sum.
9. The method for determining the initial position and connection mode of the motor rotor according to claim 8, It is characterized in that The calculating of the initial potential angle difference and the calculating of the initial potential angle include the formula θ 1 =mod(θ 0 +Δθ, 360) calculation, where θ 1 is the initial potential angle, θ 0 is the factory initial potential angle, and Δθ is the initial potential angle difference.
10. The method for determining the initial position and connection mode of the motor rotor according to claim 1, It is characterized in that The multiple incorrect wiring types include 3 incorrect wiring types: only the resolver wiring is incorrect and the three-phase wiring harness wiring is correct; only the three-phase wiring harness wiring is incorrect and the converter wiring is correct; both the resolver and the three-phase wiring harness wiring are incorrect.
