A method and apparatus for field-oriented control of an electric machine
By decoupling the frequency base values of the speed channel and flux linkage channel in a permanent magnet synchronous motor and calculating the gain parameters using a constant flux linkage per unit value, the stability and accuracy issues of the flux linkage observer are resolved, thereby improving the motor's operational stability and replacement efficiency.
Patent Information
- Application Number
- CN202611667206.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-27
AI Technical Summary
In sensorless field orientation control of permanent magnet synchronous motors, the frequency base value of the flux channel and the frequency base value of the speed channel share the same value, which makes the per-unit value of flux uncontrollable and affects the operational stability and accuracy of the flux observer.
By decoupling the frequency base values of the velocity channel and the flux linkage channel, making them independent of each other, and using a constant per-unit flux linkage value and an independent frequency base value to calculate the gain parameter, the deviation of the gain parameter is reduced, thereby improving the stability and accuracy of the flux linkage observer.
This improved the stability and accuracy of the flux linkage observer, reduced the debugging work during motor replacement, and improved the maintenance efficiency and start-up smoothness of the motor.
Smart Images

Figure CN123184547A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of motor control technology, specifically to a method and device for motor field orientation control. Background Technology
[0002] Sensorless field-oriented control (FOC) of permanent magnet synchronous motors has been widely applied in industrial drives, power tools, drones, and home appliances. In traditional motor control schemes, the frequency base value and voltage base value of the speed channel are independent variables, while the frequency base value of the flux linkage channel shares the same value. Therefore, when the frequency base value and voltage base value of the speed channel are determined, the frequency base value of the flux linkage channel is also determined. The flux linkage of permanent magnets varies greatly due to differences in motor model, size, and magnetic material. Consequently, the per-unit flux linkage value of different motors deviates significantly. Motors with small flux linkages waste precision, while motors with large flux linkages overflow, affecting the operational stability of the flux linkage observer. Summary of the Invention
[0003] This application provides a method and apparatus for motor field orientation control, aiming to solve the problem that the per-unit value of flux linkage calculated by sharing the same frequency base value between the flux linkage channel and the speed channel is uncontrollable, which affects the operational stability of the flux linkage observer.
[0004] In a first aspect, embodiments of this application provide a method for oriented control of a motor field, comprising the following steps: In response to speed commands, the target speed and motor parameters are obtained; The control parameters are obtained based on the target speed, motor parameters, and preset gain parameters. The control parameters are used to adjust the motor speed to the target speed. The gain parameters are compiled based on the frequency base values of the independent speed channels and the frequency base values of the flux linkage channels.
[0005] In some embodiments, the method further includes: Determine the base frequency values of the speed channel and the flux linkage channel based on the parameters on the motor nameplate. The gain parameters are compiled based on the frequency base values of the velocity channel and the flux linkage channel.
[0006] In some embodiments, the motor nameplate parameters include the maximum angular velocity and the permanent magnet flux linkage; Determine the base frequency values for the speed channel and the flux linkage channel based on the parameters on the motor nameplate, including: The frequency base value of the speed channel is obtained based on the highest angular velocity and the preset rotational speed calibration value; The flux linkage base value is obtained based on the permanent magnet flux linkage and the flux linkage per unit value. The frequency base value of the flux linkage channel is obtained based on the voltage base value and the flux linkage base value. The flux linkage per unit value is always the preset flux linkage calibration value.
[0007] In some embodiments, the gain parameters are compiled based on the frequency base values of the velocity channel and the flux linkage channel, including: Calculate the per-unit speed value based on the frequency base value of the speed channel; The gain parameter is obtained based on the per-unit values of velocity and flux linkage.
[0008] In some embodiments, control parameters are obtained based on the target speed, motor parameters, and preset gain parameters, including: The control parameters are obtained based on the target speed, motor parameters, and gain parameters through the main control link. The collected motor parameters are input into the observation and tracking link to obtain estimated parameters; The main control link is adjusted based on the estimated parameters.
[0009] In some embodiments, the collected motor parameters are input into the observation and tracking link to obtain estimated parameters, including: The motor parameters are input into the flux linkage observer to obtain the permanent magnet flux linkage component, wherein the flux linkage observer performs bidirectional error observation based on the per-unit value of flux linkage. The estimated parameters are obtained based on the permanent magnet flux linkage components using a phase-locked loop phase detector.
[0010] In some embodiments, after inputting motor parameters into a flux linkage observer to obtain permanent magnet flux linkage components, wherein the flux linkage observer performs bidirectional error observation based on the per-unit value of flux linkage, the method further includes: Determine the adaptive correction state of flux linkage based on the current motor speed; With the adaptive flux correction state enabled, the flux component of the permanent magnet is adaptively corrected to obtain the reference value of the permanent magnet flux. The permanent magnet flux reference value is fed back to the flux observer to correct the permanent magnet flux component.
[0011] In some embodiments, determining the adaptive flux linkage correction state based on the current motor speed includes: When the absolute value of the current motor speed is less than the first speed threshold, the flux linkage adaptive correction state is turned off. When the absolute value of the current motor speed is greater than the second speed threshold, the flux adaptive correction state is enabled, and the second speed threshold is greater than the first speed threshold. If the absolute value of the current motor speed is greater than or equal to the first speed threshold and less than or equal to the second speed threshold, the flux linkage adaptive correction state remains unchanged.
[0012] In some embodiments, the permanent magnet flux linkage component undergoes adaptive flux linkage correction to obtain a permanent magnet flux linkage reference value, including: The flux linkage amplitude is calculated based on the flux linkage components of the permanent magnet. The magnetic flux amplitude is low-pass filtered to obtain the reference value of the permanent magnet magnetic flux, wherein a preset time constant is used in the low-pass filtering.
[0013] In some embodiments, when the motor is in the starting condition, the main control link uses the prepositioning angle to perform Parker transformation and inverse Parker transformation to obtain control parameters, and the observation and tracking link uses the estimated angle output by the phase-locked loop to perform observation and tracking to obtain estimated parameters. If the time for which the prepositioning angle is used in the main control link reaches a preset time threshold, the prepositioning angle will be switched to the estimated angle.
[0014] In some embodiments, when the motor speed changes from one direction to another, the collected motor parameters are continuously input into the observation and tracking link to obtain estimated parameters.
[0015] Secondly, embodiments of this application provide a motor field orientation control device, the device comprising: The data acquisition module is used to obtain the target speed and motor parameters in response to speed commands; The control module is used to obtain control parameters based on the target speed, motor parameters, and preset gain parameters. The control parameters are used to adjust the motor speed to the target speed, and the gain parameters are compiled based on the frequency base values of the independent speed channel and the frequency base values of the flux linkage channel.
[0016] This application calculates control parameters using gain parameters compiled from mutually independent frequency base values of the velocity channel and the flux linkage channel. The frequency base values of the flux linkage channel and the velocity channel are independent of each other and do not depend on the frequency base value of the velocity channel. This reduces the deviation of the gain parameters calculated from the frequency base values of the flux linkage channel and the velocity channel, thereby improving the operational stability and accuracy of the flux linkage observer. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a schematic flowchart of an exemplary embodiment of a motor field orientation control method provided in this disclosure; Figure 2 This is a comparison diagram between a motor field orientation control method provided by an exemplary embodiment of this disclosure and a conventional solution; Figure 3This is a schematic diagram of the per-unit position of the magnetic flux linkage in a motor field orientation control method provided by an exemplary embodiment of this disclosure, compared with a conventional solution. Figure 4 This is a flowchart illustrating the compilation of gain output parameters for a motor field-oriented control method provided in an exemplary embodiment of this disclosure. Figure 5 This is a graph of motor speed versus time for a conventional solution provided in the exemplary embodiments of this disclosure; Figure 6 This is a graph of motor speed versus time for a motor field-oriented control method provided by an exemplary embodiment of this disclosure; Figure 7 This is a graph showing the motor speed, estimated angle, and flux linkage amplitude versus time for a motor field-oriented control method provided by an exemplary embodiment of this disclosure. Figure 8 The rotational speed and estimated angle curves are obtained by testing three motors with different flux linkage values in an exemplary embodiment of the motor field orientation control method provided in this disclosure. Figure 9 This is a schematic diagram of the structure of a motor field orientation control device provided in an exemplary embodiment of this disclosure; Figure 10 This is an architecture diagram of the control module of a motor field orientation control method provided in an exemplary embodiment of this disclosure.
[0019] Explanation of icon numbers: 100. Data Acquisition Module; 200. Control Module; 201. Speed Loop Integral Controller; 202. q-Axis Current Loop Integral Controller; 203. Current Hysteresis Controller; 204. d-Axis Current Loop Integral Controller; 205. Inverse Park Transform Module; 206. Space Vector Pulse Width Modulation Module; 207. Inverter; 208. Clark Transform Module; 209. Park Transform Module; 210. Flux Observer; 211. Flux Adaptive Module; 212. Phase-Locked Loop Controller; 300. Motor. Detailed Implementation
[0020] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0021] In the description of this application, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0022] "A and / or B" includes the following three combinations: A only, B only, and a combination of A and B.
[0023] The use of "applies to" or "configured to" in this application implies open and inclusive language, which does not exclude the applicability to or configuration to devices performing additional tasks or steps. Additionally, the use of "based on" implies openness and inclusivity, because processes, steps, calculations, or other actions "based on" one or more of the stated conditions or values may in practice be based on additional conditions or values beyond those stated.
[0024] In this application, the term "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0025] Firstly, this embodiment provides a method for directional control of a motor's magnetic field, such as... Figure 1 As shown, it includes the following steps: S101: In response to the speed command, obtain the target speed and motor parameters.
[0026] Specifically, the speed command is the received control command used to indicate the desired speed that the motor will reach. The target speed is the desired speed that the motor will reach, and the motor parameters are relevant parameters collected from the motor, such as current and voltage, as well as the motor's inherent parameters, such as permanent magnet flux linkage, stator resistance, and inductance. The target speed and motor parameters provide the data basis for subsequent steps.
[0027] S102. Obtain control parameters based on the target speed, motor parameters, and preset gain parameters.
[0028] Specifically, the gain parameters are compiled based on the frequency base values of the independent speed channels and flux linkage channels. The gain parameters are arrays in a standard format that are pre-calculated based on the parameters on the motor nameplate, such as current loop gain, speed loop gain, and phase-locked loop (PLL) gain. The standard format of the gain parameters can be a Q15 format constant.
[0029] Control parameters are used to adjust the motor speed to the target speed. Control parameters may include voltage, rotor angle, excitation current, etc.
[0030] In traditional control methods, the frequency base value of the flux linkage channel is bound to the frequency base value and voltage base value of the speed channel. When the frequency base value and voltage base value of the speed channel are determined, the frequency base value of the flux linkage channel is also determined. The flux linkage of permanent magnets varies greatly due to different motor models, sizes, and magnetic materials. Therefore, the gain parameters calculated by different motors based on the frequency base value of the flux linkage channel have large deviations. Small flux linkage motors waste precision, while large flux linkage motors overflow, affecting the operational stability of the flux linkage observer.
[0031] This embodiment calculates control parameters using gain parameters compiled from the independent frequency base values of the velocity channel and the flux linkage channel. The frequency base values of the flux linkage channel and the velocity channel are independent of each other and do not depend on the frequency base value of the velocity channel. This reduces the deviation of the gain parameters calculated from the frequency base values of the flux linkage channel and the velocity channel, thereby improving the operational stability of the flux linkage observer.
[0032] In some embodiments, the method further includes: determining the frequency base value of the speed channel and the frequency base value of the flux linkage channel based on the parameters on the motor nameplate; and compiling a gain parameter based on the frequency base values of the speed channel and the frequency base value of the flux linkage channel.
[0033] Specifically, the parameters on the motor nameplate are the inherent parameters of the motor at the time of manufacture, such as the maximum angular velocity and the permanent magnet flux linkage.
[0034] like Figure 2 As shown, in traditional control methods, the gain parameter includes the velocity base value. Voltage base value and magnetic flux base value Velocity base value and voltage base value Determined independently, flux linkage base value Based on the velocity base value and voltage base value The calculation is as follows: .
[0035] Based on the flux linkage base value Calculated per-unit value of magnetic flux for: ; in This is the per-unit value of the magnetic flux linkage. It is a permanent magnet flux linkage.
[0036] Table 1 shows the per-unit flux linkage and gain parameters calculated for different motors: Table 1. Comparison of per-unit flux linkage and gain parameters of different motors
[0037] The table above shows the per-unit values of different motor flux linkages in the 16-bit fixed-point Q15 format. Significant differences lead to wasted precision in small flux linkage motors and direct overflow in large flux linkage motors, causing the flux linkage observer to malfunction. Even on a 32-bit fixed-point platform, the per-unit value of the flux linkage... Uncontrollable factors can also lead to gain mismatch after motor replacement, requiring manual parameter readjustment and affecting motor efficiency.
[0038] To address the aforementioned issues, this embodiment decouples the frequency base value of the velocity channel and the frequency base value of the flux linkage channel, making them independent of each other. The per-unit value of the flux linkage calculated based on the frequency base value of the flux linkage channel is a constant value.
[0039] The flux linkage base value is defined as the flux linkage of a permanent magnet. With magnetic flux calibration value The ratio is: The per-unit value of the magnetic flux linkage can be derived. Regardless of how the permanent magnet flux linkage of the motor changes, the per-unit value of the flux linkage Equal to the flux linkage calibration value At this point, the frequency base value of the flux linkage channel is completely decoupled from the motor parameters.
[0040] Magnetic flux calibration value The physical meaning of the per-unit value of magnetic flux linkage can be determined by any positive value, for example... The rated flux linkage is 0.5 pu. The rated flux linkage is 1.0 pu, and the flux linkage calibration value is decoupled from the motor parameters after selection.
[0041] The standard format for the gain parameter can be Q format, which determines the bit width and dynamic range of the fixed-point representation. For example, the upper limit of Q15 is 1.0 pu, the upper limit of Q14 is 2.0 pu, the upper limit of Q24 is 128 pu, and so on. It can be any Qm.
[0042] Table 2 shows the magnetic flux calibration values. Example with Q format.
[0043] Table 2. Magnetic flux linkage calibration values Example with Q format
[0044] It is worth noting that the fact that the fixed-point value of the two examples in Table 2 is exactly 16384 is merely a coincidence of the values of (k,Q) and does not represent the magnetic flux linkage calibration value. A fixed pairing with the Q format. Arbitrary flux linkage calibration value. The system works normally with any Q format. In the Q15 format, the flux linkage calibration value... It can be replaced with other constants in the range of 0.4 to 0.6. The corresponding per-unit value of magnetic flux will always be this constant value. The discrete value of Q15 is this constant × 32768, which is still located near the center region of the fixed-point format, and a similar effect can be achieved.
[0045] like Figure 3 The diagram shows the position of the per-unit flux linkage value in the traditional scheme and this embodiment. It can be seen that in the traditional scheme, the per-unit flux linkage value is different for different motors; too small a value will result in a loss of accuracy, while too large a value will overflow and become unusable. In this embodiment, the per-unit flux linkage value is kept constant, ensuring it is in the center position, with margin reserved for both positive and negative values.
[0046] In some embodiments, determining the frequency base value of the speed channel and the frequency base value of the flux linkage channel based on the parameters on the motor nameplate includes: obtaining the frequency base value of the speed channel based on the maximum angular velocity and a preset rotational speed calibration value; obtaining the flux linkage base value based on the permanent magnet flux linkage and the flux linkage per unit value; obtaining the frequency base value of the flux linkage channel based on the voltage base value and the flux linkage base value, wherein the flux linkage per unit value is always a preset flux linkage calibration value.
[0047] Specifically, the base voltage value, the base frequency value of the speed channel, and the base frequency value of the flux linkage channel can be determined based on the parameters on the motor nameplate. The base frequency value of the flux linkage channel can be determined based on the base voltage value and the base flux linkage value. The specific calculation method is shown in Table 3.
[0048] Table 3. Base value calculation method
[0049] Table 3 shows the frequency base values for the velocity channel. Based on the highest mechanical angular velocity It is selected independently and is independent of the flux linkage parameters. When replacing the motor, only the permanent magnet flux linkage needs to be modified. magnetic flux base value and magnetic flux frequency base value It will change accordingly, but the frequency base value of the speed channel will remain the same. With the per-unit references of the speed loop and phase-locked loop remaining unchanged, the gain parameters do not need to be readjusted.
[0050] Due to the magnetic flux calibration value Constantizing the frequency will cause the base value of the flux linkage frequency to drift with the motor. Therefore, in this embodiment, the base value of the frequency of the speed channel is separated from the base value of the frequency of the flux linkage channel. Even if the motor is replaced, there is no need to recalibrate and adjust, which improves the maintenance efficiency of the motor.
[0051] In some embodiments, the gain parameter is compiled based on the frequency base value of the velocity channel and the frequency base value of the flux linkage channel, including: calculating the velocity per unit value based on the frequency base value of the velocity channel; and obtaining the gain parameter based on the velocity per unit value and the flux linkage per unit value.
[0052] Specifically, per-unit value is the ratio of a physical quantity to the same reference value. For example, the per-unit value of velocity is the ratio of velocity to the frequency base value of the velocity channel, and the per-unit value of flux linkage is the ratio of the flux linkage of a permanent magnet to the flux linkage base value.
[0053] Since the flux linkage base value is defined as the flux linkage of a permanent magnet... With magnetic flux calibration value The ratio is: The per-unit value of the magnetic flux linkage can be derived. .
[0054] The gain parameters include current loop gain parameters, velocity loop gain parameters, phase-locked loop gain parameters, and observer gain parameters.
[0055] Table 4 shows the explanation of the gain parameters.
[0056] Table 4. Gain Parameter Description
[0057] The motor nameplate parameters include permanent magnet flux linkage. Stator resistance d-axis inductance q-axis inductance Control cycle Moment of inertia Damping coefficient B, number of pole pairs, observer bandwidth, etc.
[0058] Taking the observer gain parameter as an example, the linearization convergence rate of the observer is determined by the desired observer bandwidth. Decision, expected observer bandwidth The calculation formula is: ; Given the desired observer bandwidth Per-unit value of the flux linkage observer gain parameter for: ; by For example, in Q15 format: ; by Taking the Q15 format of the normalized speed channel frequency base value as an example: ; When replacing the motor, the per-unit value of the flux linkage is Hengwei The Q15 format remains unchanged. If the per-unit value of the magnetic linkage or the Q format needs to be changed, it only needs to be modified through macro definitions. The gain is automatically recalculated.
[0059] like Figure 4 As shown, after obtaining the motor nameplate parameters, a floating-point macro is automatically calculated to obtain the current loop gain parameters, speed loop gain parameters, and phase-locked loop gain parameters. The gain parameters are embedded as constants in Q15 format in the code, which can be directly called each time the code runs.
[0060] In some embodiments, obtaining control parameters based on the target speed, motor parameters, and preset gain parameters includes: obtaining control parameters based on the main control link according to the target speed, motor parameters, and gain parameters; inputting the collected motor parameters into the observation and tracking link to obtain estimated parameters; and adjusting the main control link based on the estimated parameters.
[0061] Specifically, in the main control link, the speed loop gain is calculated based on the motor parameters and speed loop gain parameters to obtain the reference current. Then, the current loop gain is calculated using the reference current and the current loop gain parameters to obtain the reference voltages for the d-axis and q-axis. The reference voltages for the d-axis and q-axis are then subjected to inverse Park transformation to obtain the reference voltages for the α-axis and β-axis in the stationary two-phase coordinate system. Finally, the control parameters for the motor are output through space vector pulse width modulation.
[0062] In the observation and tracking link, the three-phase current of the motor is acquired and transformed into α-axis and β-axis reference currents in a stationary two-phase coordinate system using Clarke transform. These are then transformed using Parker transform to obtain d-axis and q-axis reference currents, which are used to calculate the current loop gain of the main control link. The α-axis and β-axis reference currents, along with the α-axis and β-axis reference voltages after inverse Parker transform, are used by a flux linkage observer and a phase-locked loop to calculate estimated parameters. These estimated parameters include estimated angles and estimated speeds. The estimated angles are used for inverse Parker transform in the main control link, and the estimated speeds are used for speed loop gain calculation. The flux linkage observer also corrects the estimated parameters through flux linkage adaptation.
[0063] In some embodiments, the collected motor parameters are input into the observation and tracking link to obtain estimated parameters, including: inputting the motor parameters into the flux linkage observer to obtain the permanent magnet flux linkage component; and obtaining the estimated parameters based on the permanent magnet flux linkage component using a phase-locked loop phase detector.
[0064] Specifically, the flux linkage observer performs bidirectional error observation based on the per-unit value of the flux linkage, and the calculation formula is as follows: ; in, The amplitude of the permanent magnet flux linkage output by the observer. The reference value of magnetic flux tracked by the Exponential Moving Average (EMA) filter.
[0065] Per-unit value of magnetic flux in traditional schemes The value varies depending on the motor, for example, from 0.01 pu to 1.3 pu, with an error reference value. Possibly as small as The quantization noise is so great that it overflows by more than 1.0, causing the bidirectional error to fail to function effectively.
[0066] Per-unit value of magnetic flux linkage in this embodiment Constant to the magnetic flux calibration value Error reference value In a fixed-point format, it remains symmetrical and predictable, without distortion or overflow due to differences in motor parameters. For example, in In Q15 format, The Q15 format is 8192, and both positive and negative errors are located in the central region of Q15; for example, in In Q14 format, The Q14 format is 16384, and both positive and negative errors are located in the central region of Q14. The error signal does not lose resolution due to squaring operations, and both positive and negative errors can drive the observer to converge.
[0067] Due to the per-unit value of magnetic flux in traditional schemes It's not a constant; the normalization coefficient of the phase-locked loop varies with the motor, requiring division or table lookup calculations during operation. On a 16-bit controller, a single division consumes dozens of instruction cycles, while table lookups consume even more storage space.
[0068] In this embodiment, due to the per-unit value of the magnetic flux linkage Constant as The calculation formula for the output of the phase-locked loop phase detector is as follows: ; in The permanent magnet flux component output by the flux observer. It is the back potential vector.
[0069] When the magnetic flux amplitude Approximately equal to the per-unit value of magnetic flux linkage At that time, the permanent magnet flux component The amplitude of the phase-locked loop phase detector output is reduced proportionally. Reduce proportionally, that is .
[0070] To ensure the dynamic characteristics of the phase-locked loop (PLL) are consistent with those at standard unit flux, meaning the PLL gain parameters do not need to be modified due to flux changes, the phase detector output needs to be normalized with a coefficient of [value missing]. The formula for calculating the output of the phase-locked loop phase detector is as follows: .
[0071] For example in In this case, When normalizing the phase detector output, the coefficient is... In the Q15 format, multiplying by 2 is equivalent to arithmetic left shift by one bit, which does not consume a multiplier, requires no division, and saves instruction cycles.
[0072] In some embodiments, after inputting motor parameters into the flux linkage observer to obtain the permanent magnet flux linkage component, wherein the flux linkage observer performs bidirectional error observation based on the per-unit value of flux linkage, the method further includes: determining the flux linkage adaptive correction state according to the current motor speed; when the flux linkage adaptive correction state is in the on state, performing flux linkage adaptive correction on the permanent magnet flux linkage component to obtain a permanent magnet flux linkage reference value; and feeding back the permanent magnet flux linkage reference value to the flux linkage observer to correct the permanent magnet flux linkage component.
[0073] Specifically, the flux adaptive correction state is used to determine whether to enable flux adaptive correction. The permanent magnet flux reference value is a filtered scalar benchmark used to represent the current permanent magnet flux amplitude as determined by the flux observer. It does not participate in transient angle calculation and is only used as a reference for the error calculation of the next cycle.
[0074] Because the back electromotive force is weak when operating at low speeds, even with a constant flux per unit value... The estimates from the flux linkage observer cannot be trusted without limit. Therefore, a permanent magnet flux linkage reference value is maintained within the flux linkage observer. When the flux linkage observer is running, it first calculates the current amplitude of the permanent magnet flux linkage. The permanent magnet flux linkage reference value is updated after EMA filtering. This is then fed back into the error calculation for the next cycle, i.e. This forms a closed-loop self-correction mechanism.
[0075] In some embodiments, determining the adaptive flux correction state based on the current motor speed includes: when the absolute value of the current motor speed is less than a first speed threshold, the adaptive flux correction state is in the off state; when the absolute value of the current motor speed is greater than a second speed threshold, the adaptive flux correction state is in the on state, where the second speed threshold is greater than the first speed threshold; and when the absolute value of the current motor speed is greater than or equal to the first speed threshold and less than or equal to the second speed threshold, the adaptive flux correction state remains unchanged.
[0076] Specifically, due to the small amplitude and low signal-to-noise ratio of the loop back EMF in the flux adaptive correction, the EMA is prone to misinterpreting noise as flux variation, thus making it unreliable under low-speed conditions. To solve this problem, a first speed threshold and a second speed threshold are set as speed hysteresis switches.
[0077] When the absolute value of the current motor speed is less than the first speed threshold, the adaptive correction is unreliable because the motor speed is low. Therefore, the flux adaptive correction is turned off and not enabled.
[0078] When the absolute value of the current motor speed is greater than the second speed threshold, the adaptive correction is reliable because the motor speed is high. Therefore, the flux adaptive correction is enabled.
[0079] When the absolute value of the current motor speed is greater than or equal to the first speed threshold and less than or equal to the second speed threshold, the motor speed is in the hysteresis region between the first and second speed thresholds. To avoid repeated switching near the thresholds and causing adaptive state jitter, the adaptive correction state remains unchanged. That is, when the motor speed increases from below the first speed threshold to between the first and second speed thresholds, the flux linkage adaptive correction state remains in the off state until it exceeds the second speed threshold, at which point the flux linkage adaptive correction state becomes on. When the motor speed decreases from above the second speed threshold to between the first and second speed thresholds, the flux linkage adaptive correction state remains on state until it falls below the first speed threshold, at which point the flux linkage adaptive correction state becomes off.
[0080] In one example, Table 5 shows the flux linkage adaptive correction state based on changes in motor speed.
[0081] Table 5. Adaptive Flux Modulation Correction State Based on Motor Speed Changes
[0082] It is worth noting that the first speed threshold Second speed threshold This is just one example. The specific values of the first and second speed thresholds can be adjusted according to the number of motor pole pairs and the noise level. This embodiment does not impose any specific limitations.
[0083] In some embodiments, the permanent magnet flux linkage component undergoes adaptive flux linkage correction to obtain a permanent magnet flux linkage reference value, including: calculating the flux linkage amplitude based on the permanent magnet flux linkage component; and obtaining the permanent magnet flux linkage reference value after low-pass filtering the flux linkage amplitude.
[0084] Specifically, a preset time constant is used in the low-pass filter, and the time constant can be an extremely slow time constant. An EMA filter can be selected for the low-pass filter.
[0085] Long-term flux drift caused by factors such as temperature demagnetization and magnet aging is a process that occurs on a minute-by-minute basis and should not be coupled with transient conditions that occur on a millisecond-by-millisecond basis. Therefore, the reference value for permanent magnet flux should be updated. The time-varying EMA filter uses an extremely slow time constant, and the smoothing coefficient α is selected in coordination with the Q scheme.
[0086] Table 6 shows an example of how to select the smoothing coefficient α.
[0087] Table 6. Examples of selecting the smoothing coefficient α
[0088] Reference value of permanent magnet flux based on time constant The updated calculation formula is as follows: ; in, For the current control cycle, For the previous control cycle, This is the reference value for the permanent magnet flux linkage updated in the current control cycle. This is the reference value for the permanent magnet flux linkage from the previous control cycle. This refers to the permanent magnet flux amplitude calculated in real time by the flux linkage observer. This is the smoothing coefficient.
[0089] The mechanical time constant of an electric motor is typically 10-100 ms. As shown in Table 6, the time constant is much larger than the mechanical time constant of the electric motor, ensuring the reference value of the permanent magnet flux linkage. Tracks only minute-level real-time flux linkage changes. Permanent magnet flux linkage reference value. Protected by upper and lower limit clamping, such as nominal value To prevent deviation from the physically reasonable range under abnormal operating conditions.
[0090] In some embodiments, when the motor is in the starting condition, the main control link uses a prepositioning angle to perform Parker transformation and inverse Parker transformation to obtain control parameters, and the observation and tracking link uses the estimated angle output by the phase-locked loop to perform observation and tracking to obtain estimated parameters; when the time the main control link uses the prepositioning angle reaches a preset time threshold, the prepositioning angle is switched to the estimated angle.
[0091] Specifically, the d-axis current reference value at low speeds The rotor is generated as a piecewise linear curve based on the rotational speed amplitude, which assists in rotor locking and observer convergence.
[0092] At speed amplitude When the d-axis current reference value is less than or equal to the first speed amplitude threshold, This is the preset maximum current value.
[0093] At speed amplitude When the d-axis current reference value is greater than or equal to the second speed amplitude threshold, It is 0.
[0094] At speed amplitude When the d-axis current reference value is greater than or equal to the first speed amplitude threshold and less than or equal to the second speed amplitude threshold, The current decreases linearly from the preset maximum value to 0.
[0095] The first speed amplitude threshold, the second speed amplitude threshold, and the maximum current value can be adjusted according to the motor inertia and load characteristics. After the speed increases to a level where the back EMF is sufficient to support independent operation of the observer, the d-axis current reference value... Automatically reset to zero.
[0096] Traditional sensorless motor starting involves three steps: pre-positioning, open-loop forced traction, and closing-loop engagement. This results in torque surges, long starting times, and the inability to start under no-load conditions. Furthermore, the traditional solution suffers from issues related to the per-unit flux linkage. Uncontrollable, in the per-unit value of magnetic flux When the value is extremely low (0.01-0.1 pu), the prepositioned observer signal is overwhelmed by quantization noise.
[0097] In this embodiment, the main control link and the observation-tracking link are decoupled and run in parallel. During the pre-positioning phase, the angle source used for the Parker transform and inverse Parker transform in the main control link is the pre-positioning angle. At this time, the flux linkage observer and phase-locked loop in the observation-tracking link run independently in the background. Continuous tracking is performed in the coordinate system. After the main control link reaches the preset time threshold for the prepositioning angle, it enters the closed-loop stage and switches the prepositioning angle to the estimated angle output by the phase-locked loop. At this time, the calculation of the phase-locked loop has converged and the angle is continuous.
[0098] The pre-positioning angle is a fixed constant value. In such cases, non-axisymmetric angles such as 45°, 135°, 225°, or 315° can be used, avoiding integer multiples of 90° to ensure... and Each axis has a non-zero flux linkage component to prevent polarity ambiguity caused by a single-axis flux linkage being zero, when both axes rely on information simultaneously. In such cases, the dual-axis signal strength is naturally sufficient, and it can be used even at 0°.
[0099] The estimated angle is the real-time rotor position calculated from the phase-locked loop in the observation and tracking link. The preset time threshold is the duration of the prepositioning angle, used to ensure that the prepositioning current injection has enough time for the rotor to mechanically align, and that the background observer has sufficient periods to complete the initial iteration convergence.
[0100] like Figure 5 The diagram shown is the current waveform during the startup process of a traditional scheme. Figure 6 The diagram shown is a current waveform diagram of the startup process in this embodiment.
[0101] Traditional startup processes involve pre-positioning, open-loop forced drag, and closed-loop switching. The open-loop forced drag stage involves forcibly applying a pre-set rotating voltage vector to the motor when the flux observer fails to converge at zero or low speed. This drags the rotor to a certain speed, generating a sufficiently large back EMF for the flux observer to recognize. However, a phase difference exists between the open-loop forced drag and closed-loop switching. When the angle source suddenly switches from a manually given angle to an estimate output by the flux observer, the two angles are discontinuous at the moment of switching, easily leading to large torque and instantaneous overcurrent, resulting in long startup times and slow response.
[0102] In this embodiment, a constant per-unit flux linkage value is used. This allows the Q-format to achieve full accuracy. With the observer in a pre-positioned, quasi-stationary state, sufficient signal resolution is available for the initial iteration. When the rotor generates back EMF through micro-motion driven by the speed loop, the flux linkage observer can quickly lock on. Compared to traditional schemes, this eliminates the need for an open-loop forced-drive phase, resulting in smoother current changes during startup.
[0103] In some embodiments, when the motor speed changes from one direction to another, the collected motor parameters are continuously input into the observation and tracking link to obtain estimated parameters.
[0104] Specifically, when the motor speed is switched from one direction to another, it can be switched from positive to negative or from negative to positive, and the zero point must be passed during the switch.
[0105] In traditional schemes, due to the per-unit value of magnetic flux Uncontrollable, Q-format overflow or insufficient precision, back EMF disappears when the rotation speed is 0, requiring repositioning.
[0106] In this embodiment, the per-unit value of the magnetic flux linkage The frequency base values of the speed channel and flux linkage channel are decoupled, and the per-unit flux linkage value is matched with the Q-format to ensure accuracy. Simultaneously, the angle of the flux linkage observer is derived from the permanent magnet flux linkage component; this direction is the rotor angle and is independent of the rotational speed. The motor can directly accelerate in reverse without stopping or repositioning, achieving seamless switching between forward and reverse rotation without interruption.
[0107] like Figure 7 The diagram shows the continuous transition process of motor speed, angle estimation, and current when the motor switches from 1000 RPM in forward rotation to -1000 RPM in reverse rotation.
[0108] from Figure 7 It can be seen that the motor's speed change is relatively smooth when switching the rotational direction and passing through zero, and the angle estimation fluctuation is small, within the error limit. The flux linkage amplitude also fluctuates little, within the limits of the Q15 format.
[0109] The per-unit value of magnetic flux linkage will be specifically explained below using Comparative Example 1 and Example 1.
[0110] It consists of two motors, namely the first motor and the second motor, and the permanent magnet flux linkage of the first motor. The flux linkage of the permanent magnet in the first motor is 12.5 mWb, and the flux linkage of the permanent magnet in the second motor is 2.5 mWb.
[0111] In Comparative Example 1, the traditional scheme is used, and the base frequency value of the flux linkage channel of the first motor is: The calculated per-unit value of the magnetic flux linkage is: It overflows in Q15 format and cannot run.
[0112] Replacing with a second motor requires recalibration and adjustment, and the per-unit value of the second motor is... In the Q15 format, pu has only 8520 discrete values, resulting in a 74% loss of precision.
[0113] In Example 1, the frequency base value of the flux linkage channel is independent, and the per-unit value of the flux linkage is constant at 0.5 pu. That is: ; In the Q15 format, it is constant at 16384. Both positive and negative transient margins are 50%.
[0114] When replacing with a second motor, the per-unit flux linkage remains 0.5 pu, which is constant at 16384 in the Q15 format, so there is no need to readjust the motor.
[0115] In Example 2, the first motor can also be selected with a flux linkage per unit value of 1.0 pu and adopt the Q14 format.
[0116] At this time, the frequency base value of the magnetic flux channel The value remains the same as the rated value. The per-unit flux linkage is 1.0 pu, which is 16384 in the Q14 format. The upper limit for the Q14 format is 2.0 pu, and both positive and negative transient margins are 100%.
[0117] Experimental verification: like Figure 8 The figure shows the angle estimation error and speed response curves for three different motors under the same control parameters. The flux linkages of the three motors are 45mWb, 12.5mWb, and 2.5mWb, respectively. It can be seen that the speed increase of the three motors over time is smooth, without the strong drag stage found in traditional solutions. The target angle estimation error is within ±3°, and it can be seen that all three motors can converge to within ±3°, meeting the angle estimation error requirement.
[0118] Secondly, embodiments of this application provide a motor field orientation control device, such as... Figure 9 As shown, the device includes a data acquisition module 100 and a control module 200.
[0119] The data acquisition module 100 is used to obtain the target speed and motor parameters in response to the speed command.
[0120] Specifically, the speed command is the received control command used to indicate the desired speed that the motor will reach. The target speed is the desired speed that the motor will reach, and the motor parameters are relevant parameters collected from the motor, such as current and voltage, as well as the motor's inherent parameters, such as permanent magnet flux linkage, stator resistance, and inductance. The target speed and motor parameters provide the data basis for subsequent steps.
[0121] The control module 200 is used to obtain control parameters based on the target speed, motor parameters and preset gain parameters; the control parameters are used to adjust the motor speed to the target speed, and the gain parameters are compiled based on the frequency base values of the independent speed channels and the frequency base values of the flux linkage channels.
[0122] Specifically, the gain parameters are compiled based on the frequency base values of the independent speed channels and flux linkage channels. The gain parameters are arrays in a standard format that are pre-calculated based on the parameters on the motor nameplate, such as current loop gain, speed loop gain, and phase-locked loop (PLL) gain. The standard format of the gain parameters can be a Q15 format constant.
[0123] Control parameters are used to adjust the motor speed to the target speed. Control parameters may include voltage, rotor angle, excitation current, etc.
[0124] In traditional control methods, the frequency base value of the flux linkage channel is bound to the frequency base value and voltage base value of the speed channel. When the frequency base value and voltage base value of the speed channel are determined, the frequency base value of the flux linkage channel is also determined. The flux linkage of permanent magnets varies greatly due to different motor models, sizes, and magnetic materials. Therefore, the gain parameters calculated by different motors based on the frequency base value of the flux linkage channel have large deviations. Small flux linkage motors waste precision, while large flux linkage motors overflow, affecting the operational stability of the flux linkage observer.
[0125] This embodiment calculates control parameters using gain parameters compiled from the independent frequency base values of the velocity channel and the flux linkage channel. The frequency base values of the flux linkage channel and the velocity channel are independent of each other and do not depend on the frequency base value of the velocity channel. This reduces the deviation of the gain parameters calculated from the frequency base values of the flux linkage channel and the velocity channel, thereby improving the operational stability of the flux linkage observer.
[0126] like Figure 10 The diagram shows the specific architecture of the control module 200 in this embodiment, including the main control link and the observation and tracking link.
[0127] The main control link includes a speed loop integral controller 201, a q-axis current loop integral controller 202, a current hysteresis controller 203, a d-axis current loop integral controller 204, an inverse Parker converter module 205, a space vector pulse width modulation module 206, and an inverter 207.
[0128] The observation and tracking link includes a Clarke transform module 208, a Parker transform module 209, a flux linkage observer 210, a flux linkage adaptive module 211, and a phase-locked loop controller 212.
[0129] In the main control link, the reference current is obtained by speed loop gain calculation in speed loop integral controller 201 and current hysteresis controller 203 based on the parameters of motor 300 and speed loop gain parameters. Then, the reference current and current loop gain parameters are used to calculate current loop gain in d-axis current loop integral controller 204 and q-axis current loop integral controller 202 to obtain reference voltages for the d-axis and q-axis. The reference voltages for the d-axis and q-axis are then subjected to inverse Parker transformation in inverse Parker transformation module 205 to obtain α-axis reference voltage and β-axis reference voltage in stationary two-phase coordinate system. After space vector pulse width modulation by space vector pulse width modulation module 206, the control parameters of motor 300 are output.
[0130] In the observation and tracking link, the three-phase current of motor 300 is acquired. After Clarke transformation by module 208, it is transformed into α-axis and β-axis reference currents in a stationary two-phase coordinate system. Then, Park transformation by module 209 yields d-axis and q-axis reference currents, which are used to calculate the current loop gain of the main control link. The α-axis and β-axis reference currents, along with the α-axis and β-axis reference voltages after inverse Park transformation, are used by flux observer 210 and a phase-locked loop to calculate estimated parameters. These estimated parameters include estimated angle and estimated speed. The estimated angle is used for inverse Park transformation in the main control link, and the estimated speed is used for speed loop gain calculation. Flux observer 210 also corrects the estimated parameters through flux adaptive module 211.
[0131] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0132] The foregoing has provided a detailed description of a motor field orientation control method and apparatus according to the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for oriented control of a motor field, characterized in that, The method includes the following steps: In response to speed commands, the target speed and motor parameters are obtained; The control parameters are obtained based on the target speed, the motor parameters, and the preset gain parameters; the control parameters are used to adjust the motor speed to the target speed, and the gain parameters are compiled based on the frequency base values of the independent speed channels and the frequency base values of the flux linkage channels.
2. The motor field-oriented control method according to claim 1, characterized in that, The method further includes: The frequency base value of the speed channel and the frequency base value of the flux linkage channel are determined according to the parameters on the motor nameplate. The gain parameter is compiled based on the frequency base value of the velocity channel and the frequency base value of the flux linkage channel.
3. The motor field-oriented control method according to claim 2, characterized in that, The motor nameplate parameters include the maximum angular velocity and the permanent magnet flux linkage; Determine the frequency base value of the speed channel and the frequency base value of the flux linkage channel based on the parameters on the motor nameplate, including: The frequency base value of the velocity channel is obtained based on the highest angular velocity and the preset rotational speed calibration value; The flux linkage base value is obtained based on the permanent magnet flux linkage and the flux linkage per unit value. The frequency base value of the flux linkage channel is obtained based on the voltage base value and the flux linkage base value. The flux linkage per unit value is always a preset flux linkage calibration value.
4. The motor field-oriented control method according to claim 3, characterized in that, The gain parameters are compiled based on the frequency base values of the velocity channel and the flux linkage channel, including: Calculate the per-unit speed value based on the frequency base value of the speed channel; The gain parameter is obtained based on the per-unit value of the velocity and the per-unit value of the flux linkage.
5. The motor field-oriented control method according to claim 1, characterized in that, The control parameters are obtained based on the target speed, the motor parameters, and the preset gain parameters, including: The control parameters are obtained based on the target speed, the motor parameters, and the gain parameters using the main control link. The collected motor parameters are input into the observation and tracking link to obtain estimated parameters; The main control link is adjusted based on the estimated parameters.
6. The motor field-oriented control method according to claim 5, characterized in that, The collected motor parameters are input into the observation and tracking link to obtain estimated parameters, including: The motor parameters are input into the flux linkage observer to obtain the permanent magnet flux linkage component, wherein the flux linkage observer performs bidirectional error observation based on the per-unit value of flux linkage. The estimated parameters are obtained based on the permanent magnet flux linkage components using a phase-locked loop phase detector.
7. The motor field-oriented control method according to claim 6, characterized in that, After inputting the motor parameters into the flux linkage observer to obtain the permanent magnet flux linkage component, wherein the flux linkage observer performs bidirectional error observation based on the flux linkage per unit value, the method further includes: Determine the adaptive correction state of flux linkage based on the current motor speed; When the adaptive flux correction state is enabled, the permanent magnet flux component is adaptively corrected to obtain a permanent magnet flux reference value. The reference value of the permanent magnet flux linkage is fed back to the flux linkage observer to correct the permanent magnet flux linkage component.
8. The motor field-oriented control method according to claim 7, characterized in that, The adaptive flux linkage correction state is determined based on the current motor speed, including: When the absolute value of the current motor speed is less than the first speed threshold, the magnetic flux adaptive correction state is turned off. When the absolute value of the current motor speed is greater than the second speed threshold, the magnetic flux adaptive correction state is enabled, and the second speed threshold is greater than the first speed threshold. If the absolute value of the current motor speed is greater than or equal to the first speed threshold and less than or equal to the second speed threshold, the magnetic flux adaptive correction state remains unchanged.
9. The motor field-oriented control method according to claim 7, characterized in that, The permanent magnet flux linkage component undergoes adaptive flux linkage correction to obtain a permanent magnet flux linkage reference value, including: The flux linkage amplitude is calculated based on the flux linkage components of the permanent magnet. The reference value of the permanent magnet flux is obtained by low-pass filtering the flux amplitude, wherein a preset time constant is used in the low-pass filtering.
10. The motor field-oriented control method according to claim 5, characterized in that, When the motor is in the starting condition, the main control link uses a prepositioning angle to perform Parker transformation and inverse Parker transformation to obtain the control parameters, and the observation and tracking link uses the estimated angle output by the phase-locked loop to perform observation and tracking to obtain the estimated parameters. If the time for which the main control link uses the pre-positioning angle reaches a preset time threshold, the pre-positioning angle will be switched to the estimated angle.
11. The motor field-oriented control method according to claim 5, characterized in that, When the motor speed changes from one direction to another, the collected motor parameters are continuously input into the observation and tracking link to obtain estimated parameters.
12. A motor field orientation control device, characterized in that, The device includes: The data acquisition module is used to obtain the target speed and motor parameters in response to speed commands; The control module is used to obtain control parameters based on the target speed, the motor parameters, and preset gain parameters; the control parameters are used to adjust the motor speed to the target speed, and the gain parameters are compiled based on the frequency base values of the independent speed channels and the frequency base values of the flux linkage channels.
