Motor control method and device, vehicle, processor and storage medium
By using voltage closed-loop field weakening control, voltage control commands are generated by converting motor phase current and DC power supply, which solves the problem of low adjustment efficiency of permanent magnet synchronous motors when running at high speed. It achieves the effect of adaptive bus voltage fluctuation and motor parameter drift, and widens the speed regulation range.
Patent Information
- Application Number
- CN202611567404.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-10
- Publication Date
- 2026-11-20
AI Technical Summary
When a permanent magnet synchronous motor is running at high speed, it is constrained by the DC bus voltage. Existing field weakening control schemes rely on offline calibration experiments, which have poor adaptability and require a large amount of work for mass production debugging. Furthermore, traditional PID controllers cannot dynamically adapt to motor parameters, resulting in low adjustment efficiency.
The voltage closed-loop field weakening control method is adopted. The voltage vector amplitude is determined by collecting the motor phase current, and the voltage deviation is obtained by converting DC power supply. Voltage control commands are generated to realize closed-loop control of motor phase voltage and adapt to bus voltage fluctuations and motor parameter drift.
It improves the adjustment efficiency of permanent magnet synchronous motors, solves the speed regulation stability problem caused by motor parameter drift and bus voltage fluctuation, and expands the speed regulation range.
Smart Images

Figure CN123144653A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of motor control, and more specifically, to a method, apparatus, vehicle, processor, and storage medium for controlling a motor. Background Technology
[0002] Currently, permanent magnet synchronous motors (PMSMs) have advantages such as high efficiency, high power density, and fast dynamic response, and are widely used in new energy vehicles, industrial servo systems, and rail transportation. However, PMSMs are constrained by the DC bus voltage during high-speed operation, necessitating the use of field-weakening control to broaden their speed range.
[0003] In related technologies, the mainstream field weakening schemes are mostly table lookup methods and single current loop feedforward field weakening methods. These methods rely on a large number of offline calibration experiments, and their adaptability is poor after different motor parameters and bus voltage fluctuations. The workload of mass production debugging is extremely large. Therefore, there is a technical problem of low adjustment efficiency of permanent magnet synchronous motors.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This invention provides a method, apparatus, vehicle, processor, and storage medium for controlling an electric motor, to at least solve the technical problem of low adjustment efficiency in permanent magnet synchronous motors.
[0006] According to one aspect of the present invention, a method for controlling a motor is provided. The method may include: acquiring the phase current of the motor; determining the voltage vector amplitude of the motor based on the phase current, wherein the voltage vector amplitude is used to characterize the voltage saturation degree of the motor; converting the voltage vector amplitude using the voltage of a DC power supply to obtain a voltage deviation, wherein the DC power supply is used to provide electrical energy to the motor; determining a voltage control command corresponding to the voltage deviation, wherein the voltage control command is used to reduce the voltage deviation; and controlling the phase voltage of the motor according to the voltage control command.
[0007] Optionally, determining the voltage vector amplitude of the motor based on the phase current includes: performing coordinate transformation on the phase current to obtain the actual direct-axis current and the actual quadrature-axis current of the motor in the rotating coordinate system; generating the direct-axis voltage component and the quadrature-axis voltage component of the motor in the rotating coordinate system based on the actual direct-axis current and the actual quadrature-axis current; and determining the voltage vector amplitude of the motor based on the direct-axis voltage component and the quadrature-axis voltage component.
[0008] Optionally, the voltage vector amplitude of the motor is determined based on the direct-axis voltage component and the quadrature-axis voltage component, including: summing the squares of the direct-axis voltage component and the quadrature-axis voltage component to obtain the voltage sum of squares; and taking the square root of the voltage sum of squares to obtain the voltage vector amplitude.
[0009] Optionally, the voltage vector amplitude is converted using the voltage of the DC power supply to obtain the voltage deviation, including: determining the modulation strategy of the inverter, wherein the inverter is used to convert the DC voltage generated by the DC power supply into AC voltage, and the AC voltage is used to drive the motor; converting the voltage according to the modulation strategy to obtain a voltage reference value; and determining the difference between the voltage reference value and the voltage vector amplitude as the voltage deviation.
[0010] Optionally, determining the voltage control command corresponding to the voltage deviation includes: determining the target direct-axis current of the motor in the rotating coordinate system based on the voltage deviation; determining the difference between the target direct-axis current and the actual direct-axis current of the motor to obtain the direct-axis current error; inputting the direct-axis current error into the current loop regulator to obtain the target direct-axis voltage component; and converting the target direct-axis voltage component into a voltage control command.
[0011] Optionally, determining the target direct-axis current of the motor in the rotating coordinate system based on the voltage deviation includes: in response to a decrease in voltage deviation or a negative voltage deviation, determining the proportional gain and integral gain based on the electrical parameters of the motor; using the proportional gain to perform a proportional operation on the voltage deviation to obtain a proportional component, and using the integral gain to perform an integral operation on the voltage deviation to obtain an integral component; and adding the proportional component and the integral component to obtain the target direct-axis current.
[0012] According to another aspect of the present invention, a motor control device is also provided, which may include: a data acquisition unit for acquiring the phase current of the motor; a first determination unit for determining the voltage vector amplitude of the motor based on the phase current, wherein the voltage vector amplitude is used to characterize the voltage saturation degree of the motor; a conversion unit for converting the voltage vector amplitude using the voltage of a DC power supply to obtain a voltage deviation, wherein the DC power supply is used to provide electrical energy to the motor; a second determination unit for determining a voltage control command corresponding to the voltage deviation, wherein the voltage control command is used to reduce the voltage deviation; and a control unit for controlling the phase voltage of the motor according to the voltage control command.
[0013] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to execute the motor control method of the present invention.
[0014] According to another aspect of the present invention, a processor is also provided for running a program, wherein the program is executed by the processor to perform the motor control method of the present invention.
[0015] According to another aspect of the present invention, a program product is also provided, the program product including computer instructions, wherein the computer instructions, when executed by a processor, implement the motor control method of the present invention.
[0016] According to another aspect of the present invention, a vehicle is also provided that can be used to execute the motor control method of the present invention.
[0017] In this embodiment of the invention, the phase current of the motor is acquired; based on the phase current, the voltage vector amplitude of the motor is determined, wherein the voltage vector amplitude is used to characterize the voltage saturation degree of the motor; the voltage vector amplitude is converted using the voltage of the DC power supply to obtain the voltage deviation, wherein the DC power supply is used to provide power to the motor; a voltage control command corresponding to the voltage deviation is determined, wherein the voltage control command is used to reduce the voltage deviation; and the phase voltage of the motor is controlled according to the voltage control command. In other words, in this embodiment of the invention, a voltage closed-loop field weakening control method is adopted. By using the voltage vector amplitude as the controlled variable to track the DC power supply voltage, the voltage deviation is obtained. Based on the voltage deviation, a voltage control command is generated to reduce the voltage deviation, thereby controlling the phase voltage of the motor. This achieves the purpose of adaptively adapting to bus voltage fluctuations and motor parameter drift, thus realizing the technical effect of improving the adjustment efficiency of the permanent magnet synchronous motor and solving the technical problem of low adjustment efficiency of permanent magnet synchronous motors. Attached Figure Description
[0018] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings:
[0019] Figure 1 This is a flowchart of a motor control method according to an embodiment of the present invention;
[0020] Figure 2 This is a flowchart of a field weakening control according to an embodiment of the present invention;
[0021] Figure 3 This is a schematic diagram of a motor control principle according to an embodiment of the present invention;
[0022] Figure 4 This is a schematic diagram of a field weakening control principle according to an embodiment of the present invention;
[0023] Figure 5This is a schematic diagram of a motor control device according to an embodiment of the present invention;
[0024] Figure 6 This is a structural block diagram of a computer terminal according to an embodiment of the present invention;
[0025] Figure 7 This is a block diagram of an electronic device for a motor control method according to an embodiment of the present invention. Detailed Implementation
[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0028] According to an embodiment of the present invention, an embodiment of a motor control method is provided. The steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0029] Currently, permanent magnet synchronous motors are constrained by DC bus voltage when running at high speeds, and field weakening control must be used to broaden the speed regulation range.
[0030] Existing mainstream field weakening schemes are mostly based on lookup table methods and single current loop feedforward field weakening, which have the following drawbacks: Lookup table methods rely on a large number of offline calibration experiments, resulting in poor adaptability to different motor parameters and bus voltage fluctuations, and a huge workload for mass production debugging; Single current loop feedforward field weakening relies solely on current loop feedforward to achieve field weakening, and cannot directly close the loop to constrain the dq axis synthesized voltage amplitude, which can easily lead to voltage saturation, current oscillation, and decreased speed regulation stability when bus voltage fluctuates or inductance parameters drift.
[0031] In addition, traditional field weakening control's proportional-integral-differential (PID) regulators mostly have fixed constant parameters, which cannot be dynamically adapted to the motor's electrical parameters, resulting in poor control gain matching under high and low speed conditions. Traditional field weakening control is designed independently from the d-axis current loop, and the voltage limiting and current closed-loop coupling are low, which easily leads to overmodulation and increased torque ripple.
[0032] In related technologies, a permanent magnet synchronous motor control method combining a lookup table and a regulator has been disclosed. However, the field weakening table in this method requires prior calibration, which is a significant workload for different motors. Furthermore, it suffers from low torque control and field weakening control accuracy due to motor parameter drift caused by environmental factors. Additionally, a permanent magnet synchronous motor drive method and system have been disclosed. This method optimizes a PID controller using relevant algorithms, and the optimized PID controller outputs a control signal to drive the motor driver. The effectiveness of this algorithm depends on an accurate motor mathematical model, and the generated PID controller requires optimized PID parameter settings for different environments. The acquisition of the motor mathematical model and the adaptive adjustment of the PID parameters are costly.
[0033] In summary, this invention addresses the problems in related technologies, such as reliance on offline calibration for field weakening control, inability to directly constrain the synthesized voltage amplitude in a closed loop, inability of PID gain to dynamically adapt to motor electrical parameters, and low coupling between voltage limiting and current closed loop. This invention proposes a motor control method. This method acquires the phase current of the motor to determine the voltage vector amplitude, which characterizes the motor's voltage saturation level. The voltage vector amplitude is then converted using the DC power supply voltage to obtain the voltage deviation. This voltage vector amplitude is then used as the controlled variable to directly track the voltage reference value corresponding to the DC power supply voltage. Furthermore, a voltage control command corresponding to the voltage deviation is determined to reduce the voltage deviation. The motor's phase voltage is controlled according to the voltage control command, achieving field weakening speed regulation through a dual closed-loop approach of voltage closed-loop field weakening and current inner-loop tracking.
[0034] In this embodiment of the invention, the motor can be a permanent magnet synchronous motor, and the DC power supply can be a power battery or a DC bus power supply. The DC power supply is connected to the motor through an inverter (e.g., a voltage source inverter). The inverter converts the DC voltage generated by the DC power supply into an AC voltage, which is used to drive the motor. The motor, inverter, and DC power supply together constitute the motor drive system. The motor control method of this embodiment can be executed by a motor controller. The motor controller may include a processor and a memory. The memory stores a computer program, and the processor executes the control method of this embodiment when running the computer program.
[0035] This embodiment proposes a motor control method that employs voltage closed-loop field weakening control. By using the voltage vector amplitude as the controlled variable to track the DC power supply voltage, the voltage deviation is obtained. Based on the voltage deviation, a voltage control command is generated to reduce the voltage deviation, thereby controlling the phase voltage of the motor. This achieves the goal of adaptively adapting to bus voltage fluctuations and motor parameter drift, thus improving the adjustment efficiency of the permanent magnet synchronous motor and solving the technical problem of low adjustment efficiency of the permanent magnet synchronous motor.
[0036] Figure 1 This is a flowchart of a motor control method according to an embodiment of the present invention. Figure 1 As shown, the method may include the following steps:
[0037] Step S102: Collect the phase current of the motor.
[0038] In the technical solution provided in step S102 of the present invention, the aforementioned phase current can be the three-phase phase current collected by a current sensor, which may include Ia, Ib, and Ic, and can be the current value sampled in real time, that is, the real-time phase current. It should be noted that this is only an example and there are no specific limitations on the method of collecting the phase current.
[0039] Optionally, the phase current can be used to reflect the current operating state of the motor, and is the real-time phase current obtained by real-time sampling.
[0040] Step S104: Determine the voltage vector amplitude of the motor based on the phase current.
[0041] In the technical solution provided by step S104 of the present invention, the voltage vector amplitude (Um) can be the amplitude of the dq axis composite voltage of the motor in the current operating state, and can be used to characterize the voltage saturation degree of the motor.
[0042] Optionally, the closer the voltage vector amplitude Um is to the voltage reference value corresponding to the DC power supply voltage (i.e., the maximum phase voltage amplitude limit that the inverter can output), the higher the voltage saturation of the motor; when the voltage vector amplitude Um is far from the voltage reference value, the lower the voltage saturation of the motor and the larger the voltage margin.
[0043] Optionally, the phase current can be obtained by converting it using a voltage magnitude calculation unit to obtain the voltage vector amplitude. This conversion process may include: using the real-time phase current of the motor to calculate the real-time d-axis voltage Ud and q-axis voltage Uq in the rotating coordinate system, squaring them respectively, summing them, and then taking the square root to obtain the real-time composite voltage amplitude.
[0044] Step S106: Using the voltage of the DC power supply, the voltage vector amplitude is converted to obtain the voltage deviation.
[0045] In the technical solution provided in step S106 of the present invention, the voltage deviation can be represented by ΔU, which is the difference between the voltage reference value and the voltage vector amplitude. It can be used to characterize the margin of the current voltage vector amplitude of the motor relative to the voltage reference value corresponding to the DC power supply voltage. The voltage reference value can be the maximum phase voltage amplitude that the inverter can output under the modulation strategy.
[0046] Optionally, when the voltage deviation is positive, it indicates that the voltage vector amplitude of the motor is lower than the voltage reference value, the motor voltage is not saturated, and the voltage margin is sufficient. When the voltage deviation decreases or even becomes negative, it indicates that the voltage vector amplitude of the motor is approaching or exceeding the voltage reference value, the motor voltage is saturated, and field weakening regulation is required. The aforementioned voltage deviation can be the controlled error in the voltage closed-loop control, serving as the input to the field weakening outer loop regulator.
[0047] Optionally, the voltage deviation mentioned above is output when the field weakening mode is enabled to trigger field weakening regulation; in non-field weakening operating conditions below the base speed, the voltage deviation is set to zero and the field weakening regulation action is not triggered.
[0048] In this embodiment, by using the difference between the voltage reference value and the voltage vector amplitude as the voltage deviation, the voltage deviation directly quantifies the margin of the motor voltage relative to the bus voltage limit, thus achieving the effect of tracking the upper limit of the bus voltage with the voltage vector amplitude as the controlled variable.
[0049] Step S108: Determine the voltage control command corresponding to the voltage deviation.
[0050] In the technical solution provided by step S108 of the present invention, the voltage control command can be a command for controlling the phase voltage of the motor, a phase voltage command obtained by inverse coordinate transformation of the target direct-axis voltage component and the quadrature-axis voltage component, or a voltage command containing the target direct-axis voltage component and the quadrature-axis voltage component. This voltage control command can be used to reduce the voltage deviation, that is, by controlling the phase voltage of the motor, the voltage vector amplitude tracks the voltage reference value, thereby converging the voltage deviation.
[0051] Optionally, the voltage control command can be generated collaboratively by the magnetic weakening outer loop and the current inner loop: the magnetic weakening outer loop generates a target direct-axis current based on the voltage deviation, and the current inner loop generates a target direct-axis voltage component based on the difference between the target direct-axis current and the actual direct-axis current, and then converts the target direct-axis voltage component into a voltage control command.
[0052] Optionally, the voltage control command can be a modulation command for driving the inverter, such as an inverter switching control signal obtained by inverse coordinate transformation and pulse width modulation; or it can be a voltage command in a rotating coordinate system, which is applied to the inverter after inverse coordinate transformation by a subsequent module.
[0053] In this embodiment of the invention, by determining a voltage control command corresponding to the voltage deviation for reducing the voltage deviation, a control link of "voltage deviation, target direct-axis current, direct-axis voltage component, and voltage control command" is established, thereby achieving the effect of voltage closed-loop feedback control.
[0054] For example, the voltage deviation ΔU is input to the discrete proportional-integral (PI) controller of the field weakening outer loop, and the output of this discrete PI controller is directly used as the d-axis field weakening current command id. That is, the target direct-axis current. Next, the target direct-axis current id... The difference between the actual direct-axis current Id and the real-time sampled feedback is used to obtain the direct-axis current error. This error is then connected to the existing mature dq-axis current inner-loop regulator to obtain the target direct-axis voltage component. The motor's q-axis maintains an independent torque current iq. Control channel, quadrature axis current command iq The difference between the actual quadrature-axis current Iq and the feedback current is used to obtain the quadrature-axis voltage component via the inner current loop regulator. Then, the target direct-axis voltage component and the quadrature-axis voltage component are converted into voltage control commands for controlling the motor phase voltages through inverse coordinate transformation (Park inverse transformation). The voltage control commands are used to reduce the voltage deviation, that is, by controlling the phase voltages of the motor, the voltage vector amplitude tracks the voltage reference value, thereby converging the voltage deviation.
[0055] Step S110: Control the phase voltage of the motor according to the voltage control command.
[0056] In the technical solution provided by step S110 of the present invention, controlling the phase voltage of the motor according to the voltage control command can be achieved by generating a switching control signal by pulse width modulation, such as space vector pulse width modulation (SVPWM), to control the on and off of the power switching devices in the inverter, thereby applying the phase voltage corresponding to the voltage control command to each phase winding of the motor.
[0057] Alternatively, the voltage control command can be converted into a duty cycle command for the inverter, which then outputs the corresponding phase voltage. By controlling the phase voltage of the motor, the voltage vector amplitude of the motor can be adjusted to track the voltage reference value, thereby reducing the voltage deviation and achieving field weakening speed regulation.
[0058] Optionally, when controlling the phase voltage of the motor according to the voltage control command, the phase voltage can be adjusted in combination with the current motor operating status to maintain voltage deviation convergence.
[0059] In this embodiment of the invention, the voltage control command is modulated by SVPWM to generate a switching control signal, which controls the on and off of the power switching devices in the inverter, thereby controlling the phase voltage applied to the motor and driving the motor to operate as desired. By controlling the phase voltage of the motor according to the voltage control command, the decision result of the voltage closed loop is implemented into the actual drive of the motor, achieving the effects of voltage deviation convergence and field weakening speed regulation.
[0060] It should be noted that steps S102 to S110 constitute a processing flow of one control cycle. In step S108, the d-axis magnetic weakening current command id generated by the magnetic weakening outer ring... Returning to the current command input terminal of the inner current loop in step S102, it participates in the current loop calculation of the next control cycle, forming an iterative closed-loop circuit of the outer voltage loop and the inner current loop. Overall, a dual closed-loop architecture is formed, consisting of a voltage outer loop with field-weakening adaptive PI regulation and a current inner loop with precise tracking.
[0061] In this embodiment of the invention, a dual closed-loop architecture is used to generate the target direct-axis current through the outer voltage loop and track the target direct-axis current through the inner current loop. This achieves decoupling and synergy between the voltage closed loop and the current closed loop, thereby improving the stability of high-speed magnetic weakening and widening the speed regulation range.
[0062] Through steps S102 and S110 of the present invention, the phase current of the motor is acquired; based on the phase current, the voltage vector amplitude of the motor is determined, wherein the voltage vector amplitude is used to characterize the voltage saturation degree of the motor; the voltage vector amplitude is converted using the voltage of the DC power supply to obtain the voltage deviation, wherein the DC power supply is used to provide power to the motor; a voltage control command corresponding to the voltage deviation is determined, wherein the voltage control command is used to reduce the voltage deviation; and the phase voltage of the motor is controlled according to the voltage control command. In other words, in this embodiment of the invention, a voltage closed-loop field weakening control method is adopted. By using the voltage vector amplitude as the controlled variable to track the DC power supply voltage, the voltage deviation is obtained. Based on the voltage deviation, a voltage control command is generated to reduce the voltage deviation, thereby controlling the phase voltage of the motor. This achieves the purpose of adaptive bus voltage fluctuation and motor parameter drift, thus realizing the technical effect of improving the adjustment efficiency of the permanent magnet synchronous motor and solving the technical problem of low adjustment efficiency of the permanent magnet synchronous motor.
[0063] The method described in this embodiment will be further described below.
[0064] As an optional implementation, step S104, determining the voltage vector amplitude of the motor based on the phase current, includes: performing coordinate transformation on the phase current to obtain the actual direct-axis current and the actual quadrature-axis current of the motor in the rotating coordinate system; generating the direct-axis voltage component and the quadrature-axis voltage component of the motor in the rotating coordinate system based on the actual direct-axis current and the actual quadrature-axis current; and determining the voltage vector amplitude of the motor based on the direct-axis voltage component and the quadrature-axis voltage component.
[0065] In this embodiment, the coordinate transformation described above can be a process of performing Clarke and Park transformations on the three-phase currents: The three-phase currents Ia, Ib, and Ic are transformed using Clarke to obtain the current components Iα and Iβ in the stationary coordinate system; then, they are transformed using Park to obtain the actual direct-axis current Id and the actual quadrature-axis current Iq in the rotating coordinate system. The aforementioned direct-axis and quadrature-axis voltage components can be obtained by adjusting the current error using a current loop regulator.
[0066] Furthermore, the actual direct-axis current Id can be compared with the direct-axis current command Id. The difference between the actual quadrature-axis current Iq and the quadrature-axis current command Iq The difference is input to the current loop regulator to obtain the direct-axis voltage component Ud and the quadrature-axis voltage component Uq. The voltage vector amplitude mentioned above can be obtained by vector synthesis of the direct-axis voltage component and the quadrature-axis voltage component. It should be noted that this is only an example, and there are no specific restrictions on the specific method of coordinate transformation.
[0067] Optionally, the coordinate transformation can be any coordinate transformation method that converts the three-phase phase current to a rotating coordinate system; the direct-axis current command can be the target direct-axis current output by the field weakening outer loop, or it can be the d-axis current command determined by other field weakening strategies or the maximum torque-current ratio strategy; the quadrature-axis current command can be the q-axis current command given independently according to the torque requirement.
[0068] In this embodiment of the invention, the actual direct-axis current and the actual quadrature-axis current are obtained through coordinate transformation. Based on the actual direct-axis current, the actual quadrature-axis current, and the current command, the direct-axis voltage component and the quadrature-axis voltage component are generated, and then the voltage vector amplitude is determined, thereby achieving the effect of accurate characterization of the motor voltage state.
[0069] As an optional implementation, the voltage vector amplitude of the motor is determined based on the direct-axis voltage component and the quadrature-axis voltage component, including: squaring the direct-axis voltage component and the quadrature-axis voltage component respectively and summing them to obtain the voltage sum of squares; and taking the square root of the voltage sum of squares to obtain the voltage vector amplitude.
[0070] In this embodiment, the aforementioned sum of squares of the voltages can be the sum of the squares of the direct-axis voltage component and the quadrature-axis voltage component, i.e., Um² = Ud² + Uq². The aforementioned voltage vector magnitude can be the voltage vector magnitude obtained by taking the square root of the sum of squares of the voltages, i.e. .
[0071] Alternatively, the voltage vector magnitude can also be obtained using an equivalent vector magnitude calculation method. This invention does not limit the specific calculation method for the voltage vector magnitude.
[0072] For example, coordinate transformation of phase currents can include: performing a Clarke transformation on the acquired three-phase currents Ia, Ib, and Ic to obtain the current components Iα and Iβ in the stationary coordinate system; then performing a Park transformation to obtain the actual direct-axis current Id and the actual quadrature-axis current Iq in the rotating coordinate system (i.e., the dq-axis coordinate system). Finally, the actual direct-axis current Id is compared with the direct-axis current command Id. The difference between the actual quadrature-axis current Iq and the quadrature-axis current command Iq The difference is calculated by a comparator and then input into the current loop PID controller to obtain the direct-axis voltage component Ud and the quadrature-axis voltage component Uq in the rotating coordinate system. Finally, the direct-axis voltage component and the quadrature-axis voltage component are squared, summed, and then the square root is taken to obtain the voltage vector amplitude Um of the motor.
[0073] In this embodiment of the invention, the voltage vector amplitude is obtained by summing the squares of the direct-axis voltage component and the quadrature-axis voltage component and then taking the square root, thus achieving the effect of accurately calculating the composite voltage amplitude of the dq axis.
[0074] As an optional implementation, step S106, using the voltage of the DC power supply, converts the voltage vector amplitude to obtain the voltage deviation, including: determining the modulation strategy of the inverter, wherein the inverter is used to convert the DC voltage generated by the DC power supply into AC voltage, and the AC voltage is used to drive the motor; converting the voltage according to the modulation strategy to obtain a voltage reference value; and determining the difference between the voltage reference value and the voltage vector amplitude as the voltage deviation.
[0075] In this embodiment, the modulation strategy can be the inverter's pulse width modulation strategy, such as Space Vector Pulse Width Modulation (SVPWM) or Sinusoidal Pulse Width Modulation (SPWM). The voltage reference value can be the maximum output phase voltage amplitude of the inverter under the modulation strategy. Within the linear modulation region, the maximum output phase voltage amplitude under the SVPWM strategy is [value missing]. Under the SPWM strategy, the maximum output phase voltage amplitude is Udc / 2. The voltage deviation mentioned above can be obtained by subtracting the voltage vector amplitude from the voltage reference value, and is used to characterize the margin of the motor voltage relative to the bus voltage limit.
[0076] Optionally, when the field weakening mode is enabled, the output voltage deviation will be set to zero in non-field weakening operating conditions below the base speed, and the field weakening regulation action will not be triggered.
[0077] For example, different modulation strategies correspond to different conversion methods. Therefore, the modulation strategy of the inverter can be determined, such as SVPWM or SPWM. Based on the modulation strategy, the DC power supply voltage is converted into a voltage reference value. In one embodiment, the modulation strategy is SVPWM. Within the linear modulation region, the maximum phase voltage amplitude that the inverter can output is the DC power supply voltage Udc divided by the square root of three, i.e., the voltage reference value equals... Then, the voltage reference value is subtracted from the voltage vector amplitude Um, and the difference between the two is the voltage deviation ΔU.
[0078] In this embodiment, a voltage error comparison unit is constructed, which is based on the DC power supply voltage limit. The voltage reference value is used, and the voltage deviation ΔU is obtained by subtracting the real-time synthesized voltage amplitude Um from the reference value. When the field weakening mode is enabled, the deviation is output. In non-field weakening conditions below the base speed, the deviation is set to zero and the field weakening adjustment action is not triggered.
[0079] In this embodiment of the invention, by determining the voltage reference value according to the modulation strategy and using the difference between the voltage reference value and the voltage vector amplitude as the voltage deviation, the quantitative characterization of the motor voltage relative to the bus voltage limit margin is realized, and the upper limit of the bus voltage is directly tracked by the voltage vector amplitude as the controlled variable.
[0080] As an optional implementation, step S108, determining the voltage control command corresponding to the voltage deviation, includes: determining the target direct-axis current of the motor in the rotating coordinate system based on the voltage deviation; determining the difference between the target direct-axis current and the actual direct-axis current of the motor to obtain the direct-axis current error; inputting the direct-axis current error into the current loop regulator to obtain the target direct-axis voltage component; and converting the target direct-axis voltage component into a voltage control command.
[0081] In this embodiment, the target direct-axis current can be the d-axis current command generated by the magnetic weakening outer loop based on the voltage deviation, or it can be the current value obtained by performing proportional-integral calculation on the voltage deviation using a discrete proportional-integral controller. It can be a negative value used to generate a demagnetizing effect. The direct-axis current error can be the difference between the target direct-axis current and the actual direct-axis current, used to characterize the degree of deviation between the actual and target direct-axis currents. The current loop regulator can be the original dq-axis current inner loop regulator, or it can be a proportional-integral controller, used to convert the direct-axis current error into a direct-axis voltage component.
[0082] Optionally, the q-axis of the motor maintains an independent torque current path. The difference between the quadrature axis current command and the actual quadrature axis current fed back is used by the current loop regulator to obtain the quadrature axis voltage component. The voltage control command is generated based on the target direct axis voltage component and the quadrature axis voltage component.
[0083] Optionally, the voltage control command is used to reduce the voltage deviation: by controlling the phase voltage of the motor, the voltage vector amplitude tracks the voltage reference value, thereby converging the voltage deviation.
[0084] Optionally, when the motor voltage is not saturated (i.e., the voltage deviation is positive), the target direct-axis current approaches zero, and the motor operates in the maximum torque-to-current ratio mode; when the motor voltage is saturated (i.e., the voltage deviation decreases or even becomes negative), the target direct-axis current is negative, which is used to generate a demagnetizing effect, reduce the voltage vector amplitude of the motor, and thus perform field weakening speed regulation.
[0085] Optionally, when the direct-axis current error is zero, it indicates that the actual direct-axis current has tracked the target direct-axis current. The aforementioned actual direct-axis current can be the d-axis current component in a rotating coordinate system obtained by transforming the phase current, or it can be the current value sampled and fed back in real time.
[0086] In this embodiment, the current loop regulator performs proportional-integral calculations on the direct-axis current error and outputs the target direct-axis voltage component. The proportional term provides an immediate response to the current error and determines the tracking speed; the integral term accumulates historical errors and eliminates steady-state errors, thereby enabling the actual direct-axis current to track the target direct-axis current without steady-state error.
[0087] Optionally, the q-axis of the motor maintains an independent torque current path: the difference between the quadrature axis current command and the actual quadrature axis current of the motor is used to obtain the quadrature axis voltage component through the current loop regulator. The quadrature axis current command is given independently according to the torque requirement and does not participate in field weakening regulation.
[0088] In this embodiment, the target direct-axis voltage component can be the d-axis voltage command output by the current loop regulator, used to generate a voltage control command. This voltage control command can be a command for controlling the motor phase voltage, a phase voltage command obtained by inverse coordinate transformation (Park inverse transformation) of the target direct-axis and quadrature-axis voltage components, or a voltage command containing both the target direct-axis and quadrature-axis voltage components. This voltage control command is used to reduce the voltage deviation, that is, by controlling the motor phase voltage, the voltage vector amplitude tracks the voltage reference value, thereby converging the voltage deviation.
[0089] Optionally, the voltage control command can be a modulation command for driving the inverter, such as an inverter switching control signal obtained by inverse coordinate transformation and pulse width modulation.
[0090] In this embodiment, the target direct-axis current is determined based on the voltage deviation, and the target direct-axis voltage component is generated based on the difference between the target direct-axis current and the actual direct-axis current and converted into a voltage control command, forming a control link of "voltage outer loop decision plus current inner loop execution", which achieves the effects of voltage deviation convergence and field weakening speed regulation.
[0091] As an optional implementation, determining the target direct-axis current of the motor in the rotating coordinate system based on the voltage deviation includes: in response to a decrease in voltage deviation or a negative voltage deviation, determining a proportional gain and an integral gain based on the electrical parameters of the motor; using the proportional gain to perform a proportional operation on the voltage deviation to obtain a proportional component, and using the integral gain to perform an integral operation on the voltage deviation to obtain an integral component; and adding the proportional component and the integral component to obtain the target direct-axis current.
[0092] In this embodiment, the aforementioned electrical parameters can be inherent electrical parameters of the motor, including but not limited to: d-axis inductance, q-axis inductance, stator phase resistance, and current loop design cutoff angular frequency. The aforementioned proportional gain and integral gain can be calculated online based on the aforementioned electrical parameters; for example, the proportional gain... Integral gain .in, The cutoff angular frequency is designed for the current loop, Ld is the d-axis inductance, Lq is the q-axis inductance, and Rs is the stator phase resistance of the motor.
[0093] Optionally, the above proportional operation can be a calculation of multiplying the voltage deviation by the proportional gain, the above integral operation can be a calculation of accumulating the voltage deviation, and the above target direct-axis current can be the sum of the proportional component and the integral component. It should be noted that this is only an illustrative example, and there are no specific restrictions on the specific calculation formulas for the proportional gain and the integral gain.
[0094] Optionally, in response to a positive voltage deviation (i.e., the motor voltage is not saturated), the proportional-integral operation corresponding to the proportional gain and integral gain outputs a target direct-axis current approaching zero, and the motor operates in the maximum torque per ampere (MTPA) mode; in response to a decrease in voltage deviation or a negative value (i.e., the motor voltage is saturated), a negative target direct-axis current is output, and the motor enters the field weakening speed regulation state, realizing seamless switching between low-speed MTPA and high-speed field weakening conditions without mode switching shock.
[0095] Optionally, the proportional gain and integral gain are calculated and updated online based on the real-time electrical parameters of the motor to adapt to parameter drift caused by changes in motor temperature.
[0096] Optionally, the voltage deviation ΔU is used to calculate the d-axis current reference value Id using a field-weakening PID controller. .
[0097] In this embodiment, the outer magnetic weakening loop employs a discrete PID controller with filtered differentiation.
[0098] Optionally, the z-domain transfer function of the discrete PID controller is:
[0099]
[0100] Where Ts is the sampling period of the control system, and N is the differential filter coefficient.
[0101] Optionally, the transfer function described above may include a proportional branch, an integral branch, and a differential branch with filtered differentiation. The proportional branch performs a proportional operation on the input error, the integral branch performs a cumulative operation on the input error to eliminate steady-state error, and the differential branch performs a calculation on the rate of change of the input error, filtering the differentiation operation through differential filter coefficients N to suppress high-frequency noise.
[0102] Optionally, the parameters of the discrete PID controller are adaptively selected. The derivative coefficient is fixed at D=0, meaning the discrete PID controller actually operates as a parameter-adaptive PI controller, and the micro-branch does not participate in regulation; the derivative filter coefficient is fixed at N=100. The proportional gain is determined according to the adaptive formula. The integral gain is determined according to the adaptive formula. Confirmed. All the above parameters are inherent electrical parameters of the motor. The controller can calculate the proportional gain and integral gain online in real time based on the motor parameters, eliminating the need for manual batch calibration of multiple gain tables.
[0103] In this embodiment, the control configuration logic of the discrete PID controller may include: enabling the differential filtering function, enabling zero-crossing detection, and selecting the regulation method as the PID tuning mode based on the transfer function of the controlled object.
[0104] Optionally, the output logic of the discrete PID controller is as follows: after the voltage deviation ΔU is input into the discrete PID controller, the output is directly used as the d-axis field weakening current command id, i.e., the target direct-axis current. When the voltage is not saturated below the base speed, the voltage deviation ΔU > 0, the output of the discrete PID controller approaches id = 0, and the system automatically operates in the maximum torque-to-current ratio mode. When the high-speed voltage approaches the bus limit, the voltage deviation ΔU decreases or even becomes negative, the discrete PID controller outputs a negative d-axis current command, and automatically enters the field weakening speed regulation state.
[0105] In other words, when the voltage deviation is positive, the target direct-axis current approaches zero, and the motor operates at its maximum torque-to-current ratio. When the voltage deviation decreases or becomes negative, the target direct-axis current becomes negative, and the motor enters the field weakening speed regulation state, achieving seamless switching between low-speed MTPA and high-speed field weakening conditions without mode switching shock.
[0106] In this embodiment, a d-axis current closed-loop tracking unit is also included. The d-axis current closed-loop tracking unit will process the current command id generated by the magnetic weakening outer loop. The difference between the current and the d-axis current in real-time sampling feedback is used to obtain the direct-axis current error. The direct-axis current error is then connected to the existing mature dq-axis current inner loop regulator to complete current tracking.
[0107] Optionally, the q-axis of the motor maintains an independent torque current path, and the quadrature-axis current command is given independently according to the torque requirement and does not participate in field weakening regulation.
[0108] Through the above structure, a dual closed-loop architecture is formed, consisting of an outer voltage loop for adaptive PI regulation of the field weakening field and an inner current loop for precise tracking. The outer voltage loop uses the voltage vector amplitude as the controlled variable and generates a target direct-axis current based on the voltage deviation to determine the field weakening depth. The inner current loop uses the current as the controlled variable and generates a voltage command based on the direct-axis current error to perform current tracking. The outer voltage loop and the inner current loop are connected through the target direct-axis current to form an iterative closed loop.
[0109] In this embodiment of the invention, by calculating the proportional gain and integral gain online based on the motor electrical parameters, and using the proportional gain and integral gain to perform proportional-integral calculation on the voltage deviation to generate the target direct-axis current, the adaptive effect of the PID gain parameter is achieved, thus getting rid of the problem of poor adaptability of fixed PID parameters to different motors and different temperatures.
[0110] In this embodiment, a field weakening control system with closed-loop voltage magnitude adjustment of dq axis and adaptive discrete PI regulation of motor parameters is proposed. The system directly tracks the upper limit of the bus voltage with the synthesized voltage amplitude as the controlled variable, automatically generates d-axis field weakening current command, and calculates the PID gain in real time based on the electrical parameters of the motor body without manual point-by-point calibration. It adapts to bus voltage fluctuations and motor parameter drift, and improves high-speed field weakening stability and speed regulation range.
[0111] Figure 2 This is a flowchart of a field weakening control according to an embodiment of the present invention, such as... Figure 2 As shown, field weakening control may include the following steps:
[0112] Step S202: Collect real-time phase current.
[0113] In this embodiment, real-time phase currents Ia, Ib, and Ic are acquired, and after Clark transformation, Iα and Iβ are obtained. After Park transformation, Id and Iq are obtained. The results are then calculated by a comparator. , Iq The difference is then used to obtain the d-axis voltage Ud and the q-axis voltage Uq through a PID controller.
[0114] Step S204: Determine the real-time synthesized voltage amplitude.
[0115] In this embodiment, the d-axis voltage Ud and the q-axis voltage Uq are squared, summed, and then the square root is taken to obtain the real-time synthesized voltage amplitude Um.
[0116] Step S206: Determine the voltage deviation based on the real-time synthesized voltage amplitude.
[0117] In this embodiment, the DC power supply voltage limit is used. As an electrical reference value, the voltage deviation ΔU is obtained by subtracting the real-time synthesized voltage amplitude Um from the reference value.
[0118] Step S208: Calculate the current reference value based on the voltage deviation.
[0119] In this embodiment, the voltage deviation ΔU is used to calculate the d-axis current reference value Id by a field-weakening PID controller. Returning to step S202, an iterative loop is formed.
[0120] Figure 3 This is a schematic diagram of a motor control principle according to an embodiment of the present invention, as shown below. Figure 3 As shown, based on field-oriented control and SVPWM, a dual closed-loop control structure is adopted, including an outer speed loop, an inner current loop (d-axis current loop and q-axis current loop), a coordinate transformation stage, and a modulation drive stage.
[0121] like Figure 3 As shown, the field weakening control module 301 generates the d-axis current setpoint id based on the voltage deviation. The target direct-axis current is determined by the speed loop PID controller 302, which generates the q-axis current setpoint iq based on the difference between the speed setpoint and the speed feedback. The d-axis current loop sets the d-axis current setpoint id. The difference between the d-axis current feedback value (id) and the d-axis current loop PID controller 303 is input to obtain the d-axis voltage (Ud). The q-axis current loop is used to input the q-axis current setpoint (iq). The difference between the current feedback iq and the current feedback iq is input to the q-axis current loop PID controller 304 to obtain the q-axis voltage Uq.
[0122] The inverse Park transformation unit 305 performs inverse coordinate transformation on the d-axis voltage Ud and the q-axis voltage Uq to obtain the voltage components Uα and Uβ in the two-phase stationary coordinate system. The SVPWM modulation unit 306 performs space vector pulse width modulation on the voltage components Uα and Uβ to generate a switching control signal. The inverter 307 converts the DC voltage of the DC power supply into a three-phase AC voltage according to the switching control signal to drive the permanent magnet synchronous motor.
[0123] Furthermore, such as Figure 3 As shown, the three-phase currents ia, ib, and ic of the permanent magnet synchronous motor are sampled and transformed using Clark transformation to obtain the current components iα and iβ in the two-phase stationary coordinate system. Then, the d-axis current id and q-axis current iq in the rotating coordinate system are obtained using Park transformation. The d-axis current id and q-axis current iq are fed back to the input terminals of the d-axis current loop and q-axis current loop, respectively, forming a current closed loop. The speed of the permanent magnet synchronous motor 308 is fed back to the input terminal of the speed loop PID controller, forming a speed closed loop.
[0124] Combination Figure 3 When the motor voltage is not saturated below the base speed, the field weakening control module outputs ID. =0, the motor operates at the maximum torque-to-current ratio; when the motor voltage is saturated above the base speed, the field weakening control module outputs a negative id. This enables field weakening speed regulation and expands the speed range of the motor.
[0125] Figure 4 This is a schematic diagram of a field weakening control principle according to an embodiment of the present invention, as shown below. Figure 4As shown, this field weakening control principle uses the voltage vector amplitude as the controlled variable, and generates the d-axis field weakening current command id through a voltage closed loop. .
[0126] Optionally, the d-axis voltage component Ud and the q-axis voltage component Uq are respectively delayed by the z-stage. - ¹After processing, perform squaring operations to obtain Ud² and Uq²; sum Ud² and Uq² to obtain the sum of squares of the voltages; take the square root of the sum of squares of the voltages to obtain the voltage vector magnitude. , which is the voltage vector amplitude Um of the motor in its current operating state.
[0127] Further, divide the DC power supply voltage Udc by √3 to obtain the voltage reference value. This voltage reference value is the maximum phase voltage amplitude that the inverter can output within the linear modulation region. The voltage reference value... With voltage vector magnitude The difference is defined as the voltage deviation ΔU. The voltage deviation is used to characterize the margin of the motor voltage relative to the bus voltage limit.
[0128] Furthermore, the voltage deviation ΔU is input to a filtered discrete PID controller PID(z)f, i.e., a field weakening PID regulator. The field weakening PID regulator performs proportional-integral calculations on the voltage deviation and outputs the d-axis field weakening current command id. This refers to the target direct-axis current. When the voltage deviation is positive, the motor voltage is not saturated, and the field-weakening PID controller outputs a target direct-axis current close to zero, allowing the motor to operate at its maximum torque-to-current ratio. When the voltage deviation decreases or becomes negative, the motor voltage saturates, and the field-weakening PID controller outputs a negative target direct-axis current for field-weakening speed regulation.
[0129] Optionally, the delay element z - ¹It is used to perform one-beat sampling delay processing on the d-axis voltage component and the q-axis voltage component to match the sampling period Ts of the control system and eliminate the impact of the calculation delay on the voltage closed loop.
[0130] In this embodiment of the invention, the control method described above can achieve the following technical effects: direct closed-loop voltage magnitude, abandoning the speed lookup table approach for field weakening, directly tracking the upper limit of the bus voltage with the voltage vector amplitude, and adaptively adjusting the field weakening depth in real time when the bus voltage fluctuates; adaptive PI gain motor parameters, with P and I directly calculated online by the stator resistance, dq-axis inductance, and current loop bandwidth formulas, overcoming the problem of poor adaptability of fixed PID parameters to different motors and temperatures; micro-branch zeroing plus filtering differential architecture, retaining the filtering differential structure but with differential coefficient D=0, avoiding the risk of high-frequency sampling noise from differential amplification, while reserving interfaces for subsequent differential expansion; seamless switching of operating conditions, with automatic MTPA at low speed and automatic field weakening at high speed, without mode switching impact; high architecture compatibility, with the field weakening outer loop superimposed on the outside of the traditional current loop, eliminating the need to refactor the original current loop code and reducing engineering modification costs.
[0131] In this embodiment of the invention, a voltage closed-loop field weakening control method is adopted. By using the voltage vector amplitude as the controlled variable to track the DC power supply voltage, the voltage deviation is obtained. Based on the voltage deviation, a voltage control command is generated to reduce the voltage deviation, thereby controlling the phase voltage of the motor. This achieves the purpose of adaptive bus voltage fluctuation and motor parameter drift, thus realizing the technical effect of improving the adjustment efficiency of the permanent magnet synchronous motor and solving the technical problem of low adjustment efficiency of the permanent magnet synchronous motor.
[0132] According to an embodiment of the present invention, a motor control device is also provided. It should be noted that the motor control device of this embodiment can be used to execute the motor control method of Embodiment 1 of the present invention.
[0133] Figure 5 This is a schematic diagram of a motor control device according to an embodiment of the present invention. Figure 5 As shown, the control device for the motor may include: a data acquisition unit 502, a first determination unit 504, a conversion unit 506, a second determination unit 508, and a control unit 510.
[0134] The acquisition unit 502 is used to acquire the phase current of the motor.
[0135] The first determining unit 504 is used to determine the voltage vector amplitude of the motor based on the phase current, wherein the voltage vector amplitude is used to characterize the voltage saturation degree of the motor.
[0136] The conversion unit 506 is used to convert the voltage vector amplitude using the voltage of the DC power supply to obtain the voltage deviation, wherein the DC power supply is used to provide electrical energy to the motor.
[0137] The second determining unit 508 is used to determine the voltage control command corresponding to the voltage deviation, wherein the voltage control command is used to reduce the voltage deviation.
[0138] The control unit 510 is used to control the phase voltage of the motor according to the voltage control command.
[0139] The motor control device of this embodiment acquires the phase current of the motor through an acquisition unit; determines the voltage vector amplitude of the motor based on the phase current through a first determination unit, wherein the voltage vector amplitude is used to characterize the voltage saturation degree of the motor; converts the voltage vector amplitude using the voltage of a DC power supply to obtain a voltage deviation through a conversion unit, wherein the DC power supply is used to provide power to the motor; determines a voltage control command corresponding to the voltage deviation through a second determination unit, wherein the voltage control command is used to reduce the voltage deviation; and controls the phase voltage of the motor according to the voltage control command through a control unit, thereby solving the technical problem of low adjustment efficiency of permanent magnet synchronous motors and achieving the technical effect of improving the adjustment efficiency of permanent magnet synchronous motors.
[0140] Embodiments of the present invention can provide a computer terminal, which can be any computer terminal device in a group of computer terminals. Optionally, in this embodiment, the computer terminal can also be replaced by a mobile terminal or other terminal device.
[0141] Optionally, in this embodiment, the computer terminal may be located in at least one of a plurality of network devices in a computer network.
[0142] In this embodiment, the computer terminal described above can execute the program code for the following steps in the motor control method: acquiring the phase current of the motor; determining the voltage vector amplitude of the motor based on the phase current, wherein the voltage vector amplitude is used to characterize the voltage saturation degree of the motor; converting the voltage vector amplitude using the voltage of the DC power supply to obtain the voltage deviation, wherein the DC power supply is used to provide electrical energy to the motor; determining the voltage control command corresponding to the voltage deviation, wherein the voltage control command is used to reduce the voltage deviation; and controlling the phase voltage of the motor according to the voltage control command.
[0143] Optionally, Figure 6 This is a structural block diagram of a computer terminal according to an embodiment of the present invention, such as... Figure 6 As shown, the computer terminal 608 may include one or more (only one is shown in the figure) processors 602, memory 604, and transmission devices 606.
[0144] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the motor control method and device in this embodiment of the invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby realizing the aforementioned motor control method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the computer terminal 608 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0145] The processor can access information and application programs stored in memory via a transmission device to perform the following steps: acquiring the phase current of the motor; determining the voltage vector amplitude of the motor based on the phase current, wherein the voltage vector amplitude is used to characterize the voltage saturation level of the motor; converting the voltage vector amplitude using the voltage of the DC power supply to obtain the voltage deviation, wherein the DC power supply is used to provide power to the motor; determining the voltage control command corresponding to the voltage deviation, wherein the voltage control command is used to reduce the voltage deviation; and controlling the phase voltage of the motor according to the voltage control command.
[0146] Those skilled in the art will understand that Figure 6 The structure shown is for illustrative purposes only. The computer terminal 608 can also be a smartphone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, a mobile internet device (MID), a PAD, and other terminal devices. Figure 6 This does not limit the structure of the computer terminal 608 described above. For example, the computer terminal 608 may also include components that are more advanced than those described above. Figure 6 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 6 The different configurations shown.
[0147] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0148] According to an embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein the program executes the motor control method of Embodiment 1.
[0149] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.
[0150] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: acquiring the phase current of the motor; determining the voltage vector amplitude of the motor based on the phase current, wherein the voltage vector amplitude is used to characterize the voltage saturation degree of the motor; converting the voltage vector amplitude using the voltage of the DC power supply to obtain a voltage deviation, wherein the DC power supply is used to provide electrical energy to the motor; determining a voltage control command corresponding to the voltage deviation, wherein the voltage control command is used to reduce the voltage deviation; and controlling the phase voltage of the motor according to the voltage control command.
[0151] Optionally, the computer-readable storage medium may also execute program code that performs the following steps: performing coordinate transformation on the phase current to obtain the actual direct-axis current and actual quadrature-axis current of the motor in the rotating coordinate system; generating the direct-axis voltage component and quadrature-axis voltage component of the motor in the rotating coordinate system based on the actual direct-axis current and actual quadrature-axis current; and determining the voltage vector amplitude of the motor according to the direct-axis voltage component and quadrature-axis voltage component.
[0152] Optionally, the computer-readable storage medium may also execute program code that performs the following steps: squaring the direct-axis voltage component and the quadrature-axis voltage component respectively and then summing them to obtain the voltage sum of squares; taking the square root of the voltage sum of squares to obtain the voltage vector magnitude.
[0153] Optionally, the computer-readable storage medium may also execute program code that performs the following steps: determining the modulation strategy of the inverter, wherein the inverter is used to convert the DC voltage generated by the DC power supply into an AC voltage, and the AC voltage is used to drive the motor; converting the voltage according to the modulation strategy to obtain a voltage reference value; and determining the difference between the voltage reference value and the voltage vector amplitude as the voltage deviation.
[0154] Optionally, the computer-readable storage medium may also execute program code that performs the following steps: determining the target direct-axis current of the motor in the rotating coordinate system based on the voltage deviation; determining the difference between the target direct-axis current and the actual direct-axis current of the motor to obtain the direct-axis current error; inputting the direct-axis current error into the current loop regulator to obtain the target direct-axis voltage component; and converting the target direct-axis voltage component into a voltage control command.
[0155] Optionally, the computer-readable storage medium may also execute program code that performs the following steps: in response to a decrease in voltage deviation or a negative voltage deviation, determining a proportional gain and an integral gain based on the electrical parameters of the motor; using the proportional gain to perform a proportional operation on the voltage deviation to obtain a proportional component, and using the integral gain to perform an integral operation on the voltage deviation to obtain an integral component; and adding the proportional component and the integral component to obtain the target direct-axis current.
[0156] In this embodiment, a voltage closed-loop field weakening control method is adopted. By using the voltage vector amplitude as the controlled variable to track the DC power supply voltage, the voltage deviation is obtained. Based on the voltage deviation, a voltage control command is generated to reduce the voltage deviation, thereby controlling the phase voltage of the motor. This achieves the purpose of adaptive bus voltage fluctuation and motor parameter drift, thus realizing the technical effect of improving the adjustment efficiency of the permanent magnet synchronous motor and solving the technical problem of low adjustment efficiency of permanent magnet synchronous motor.
[0157] According to an embodiment of the present invention, a processor is also provided for running a program, wherein the motor control method of the embodiment is executed when the program is run by the processor.
[0158] Optionally, in this embodiment, the computer terminal may be located in at least one of a plurality of network devices in a computer network.
[0159] In this embodiment, the computer terminal described above can execute the program code for the following steps in the motor control method: acquiring the phase current of the motor; determining the voltage vector amplitude of the motor based on the phase current, wherein the voltage vector amplitude is used to characterize the voltage saturation degree of the motor; converting the voltage vector amplitude using the voltage of the DC power supply to obtain the voltage deviation, wherein the DC power supply is used to provide electrical energy to the motor; determining the voltage control command corresponding to the voltage deviation, wherein the voltage control command is used to reduce the voltage deviation; and controlling the phase voltage of the motor according to the voltage control command.
[0160] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the motor control method and device in this embodiment of the invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby realizing the aforementioned motor control method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to a computer terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0161] The processor can access information and application programs stored in memory via a transmission device to perform the following steps: acquiring the phase current of the motor; determining the voltage vector amplitude of the motor based on the phase current, wherein the voltage vector amplitude is used to characterize the voltage saturation level of the motor; converting the voltage vector amplitude using the voltage of the DC power supply to obtain the voltage deviation, wherein the DC power supply is used to provide power to the motor; determining the voltage control command corresponding to the voltage deviation, wherein the voltage control command is used to reduce the voltage deviation; and controlling the phase voltage of the motor according to the voltage control command.
[0162] Optionally, the processor may also execute program code that performs the following steps: performing coordinate transformation on the phase current to obtain the actual direct-axis current and actual quadrature-axis current of the motor in the rotating coordinate system; generating the direct-axis voltage component and quadrature-axis voltage component of the motor in the rotating coordinate system based on the actual direct-axis current and actual quadrature-axis current; and determining the voltage vector amplitude of the motor based on the direct-axis voltage component and quadrature-axis voltage component.
[0163] Optionally, the processor may also execute program code that performs the following steps: squares the direct-axis voltage component and the quadrature-axis voltage component respectively and sums them to obtain the voltage sum of squares; and takes the square root of the voltage sum of squares to obtain the voltage vector magnitude.
[0164] Optionally, the processor may also execute program code that performs the following steps: determining the modulation strategy of the inverter, wherein the inverter is used to convert the DC voltage generated by the DC power supply into AC voltage, and the AC voltage is used to drive the motor; converting the voltage according to the modulation strategy to obtain a voltage reference value; and determining the difference between the voltage reference value and the voltage vector amplitude as the voltage deviation.
[0165] Optionally, the processor may also execute program code that performs the following steps: determining the target direct-axis current of the motor in the rotating coordinate system based on the voltage deviation; determining the difference between the target direct-axis current and the actual direct-axis current of the motor to obtain the direct-axis current error; inputting the direct-axis current error into the current loop regulator to obtain the target direct-axis voltage component; and converting the target direct-axis voltage component into a voltage control command.
[0166] Optionally, the processor may also execute program code that performs the following steps: in response to a decrease in voltage deviation or a negative voltage deviation, determine the proportional gain and integral gain based on the electrical parameters of the motor; use the proportional gain to perform a proportional operation on the voltage deviation to obtain a proportional component, and use the integral gain to perform an integral operation on the voltage deviation to obtain an integral component; add the proportional component and the integral component to obtain the target direct-axis current.
[0167] In this embodiment of the invention, a voltage closed-loop field weakening control method is adopted. By using the voltage vector amplitude as the controlled variable to track the DC power supply voltage, the voltage deviation is obtained. Based on the voltage deviation, a voltage control command is generated to reduce the voltage deviation, thereby controlling the phase voltage of the motor. This achieves the purpose of adaptively adapting to bus voltage fluctuations and motor parameter drift, thus realizing the technical effect of improving the adjustment efficiency of permanent magnet synchronous motor and solving the technical problem of low adjustment efficiency of permanent magnet synchronous motor.
[0168] According to an embodiment of the present invention, a computer program product is also provided, the computer program product including computer instructions, wherein when the computer instructions are executed by a processor, the motor control method in embodiment 1 is implemented.
[0169] Embodiments of the present invention may provide an electronic device, which may include a memory and a processor.
[0170] Figure 7 This is a block diagram of an electronic device for controlling a motor according to an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0171] like Figure 7 As shown, device 700 includes a computing unit 701, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 702 or a computer program loaded from storage unit 708 into random access memory (RAM) 703. RAM 703 can also store various programs and data required for the operation of device 700. The computing unit 701, ROM 702, and RAM 703 are interconnected via bus 704. Input / output (I / O) interface 705 is also connected to bus 704.
[0172] Multiple components in device 700 are connected to I / O interface 705, including: input unit 706, such as keyboard, mouse, etc.; output unit 704, such as various types of monitors, speakers, etc.; storage unit 708, such as disk, optical disk, etc.; and communication unit 709, such as network card, modem, wireless transceiver, etc. Communication unit 709 allows device 700 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0173] The computing unit 701 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the various methods and processes described above, such as the motor control method. For example, in some embodiments, the motor control method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the motor control method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform motor control methods by any other suitable means (e.g., by means of firmware).
[0174] According to an embodiment of the present invention, a method for controlling a motor is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0175] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0176] The program code used to implement the methods of the present invention can be written in any combination of one or more programming languages. This program code can be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code can be executed entirely on the machine, partially on the machine, as a standalone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0177] In the context of this invention, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0178] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display, monitor); and a keyboard and pointing device (e.g., a mouse or pathball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0179] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0180] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0181] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0182] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0183] In the several embodiments provided by this invention, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection can be through some interfaces; the indirect coupling or communication connection of units or modules can be electrical or other forms.
[0184] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0185] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0186] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0187] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for controlling an electric motor, characterized in that, include: Collect the phase current of the motor; The voltage vector amplitude of the motor is determined based on the phase current, wherein the voltage vector amplitude is used to characterize the voltage saturation degree of the motor; The voltage vector amplitude is converted using the voltage of a DC power supply to obtain the voltage deviation, wherein the DC power supply is used to provide electrical energy to the motor; Determine a voltage control command corresponding to the voltage deviation, wherein the voltage control command is used to reduce the voltage deviation; The phase voltage of the motor is controlled according to the voltage control command.
2. The method according to claim 1, characterized in that, Determining the voltage vector amplitude of the motor based on the phase current includes: By performing coordinate transformation on the phase current, the actual direct-axis current and the actual quadrature-axis current of the motor in the rotating coordinate system are obtained. Based on the actual direct-axis current and the actual quadrature-axis current, the direct-axis voltage component and quadrature-axis voltage component of the motor in the rotating coordinate system are generated. The voltage vector amplitude of the motor is determined based on the direct-axis voltage component and the quadrature-axis voltage component.
3. The method according to claim 2, characterized in that, Determining the voltage vector amplitude of the motor based on the direct-axis voltage component and the quadrature-axis voltage component includes: The voltage summation is obtained by squared the direct-axis voltage component and the quadrature-axis voltage component respectively. The voltage vector magnitude is obtained by taking the square root of the square and the sum of the voltages.
4. The method according to claim 1, characterized in that, The process of converting the voltage vector amplitude using the voltage of a DC power supply to obtain the voltage deviation includes: Determine the modulation strategy of the inverter, wherein the inverter is used to convert the DC voltage generated by the DC power supply into AC voltage, and the AC voltage is used to drive the motor to work; The voltage is converted according to the modulation strategy to obtain a voltage reference value; The difference between the voltage reference value and the voltage vector amplitude is determined as the voltage deviation.
5. The method according to claim 1, characterized in that, The determination of the voltage control command corresponding to the voltage deviation includes: Based on the voltage deviation, determine the target direct-axis current of the motor in the rotating coordinate system; The difference between the target direct-axis current and the actual direct-axis current of the motor is determined to obtain the direct-axis current error. The direct-axis current error is input into the current loop regulator to obtain the target direct-axis voltage component; The target direct-axis voltage component is converted into the voltage control command.
6. The method according to claim 5, characterized in that, The step of determining the target direct-axis current of the motor in the rotating coordinate system based on the voltage deviation includes: In response to a decrease in voltage deviation, or a negative voltage deviation, the proportional gain and integral gain are determined based on the electrical parameters of the motor. Using the proportional gain, the voltage deviation is proportionally calculated to obtain a proportional component, and using the integral gain, the voltage deviation is integrally calculated to obtain an integral component. The target direct-axis current is obtained by adding the proportional component and the integral component.
7. A control device for an electric motor, characterized in that, include: The acquisition unit is used to acquire the phase current of the motor; The first determining unit is configured to determine the voltage vector amplitude of the motor based on the phase current, wherein the voltage vector amplitude is used to characterize the voltage saturation degree of the motor; A conversion unit is used to convert the voltage vector amplitude using the voltage of a DC power supply to obtain a voltage deviation, wherein the DC power supply is used to provide electrical energy to the motor; The second determining unit is used to determine a voltage control command corresponding to the voltage deviation, wherein the voltage control command is used to reduce the voltage deviation; The control unit is used to control the phase voltage of the motor according to the voltage control command.
8. A vehicle, characterized in that, Used to perform the method according to any one of claims 1 to 6.
9. A processor, characterized in that, The processor is used to run a program, wherein the program is executed by the processor to perform the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that, Includes computer instructions that, when executed by a processor, implement the method described in any one of claims 1 to 6.
