Motor control method and device, equipment and storage medium
By calculating the duty cycle and converting the speed, directly checking the table to obtain the feedforward voltage compensation value, solving the problem of inaccurate calculation of fixed motor parameters in permanent magnet synchronous motors, improving the current loop response speed and torque response capabilities, saving resources And accelerated development progress.
Patent Information
- Application Number
- CN202411114375.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-08-14
AI Technical Summary
In the prior art, in the permanent magnet synchronous motor control, the fixed motor parameters calculate the feedforward voltage is inaccurate, which causes the ammeter to be recalibrated when the motor's operating state changes, occupying manpower and equipment resources, and the PI adjustment response speed is slow.
By obtaining ammeter data and voltmeter data, calculating duty cycle and converting speed based on calibration data, directly checking the table to obtain the feedforward voltage compensation value, adjusting the motor operating status, using the bus voltage utilization rate and overmodulation coefficient to convert the speed to reduce recalibration The demand for ammeters improves the current loop response speed.
It realizes accurate control of feedforward voltage compensation under any working conditions, improves the response speed and torque response capabilities of the current loop, saves manpower and equipment resources, and speeds up project development progress.
Smart Images

Figure CN118971697A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of electromagnetic technology, and in particular to a motor control method, device, equipment and storage medium. Background Art
[0002] Permanent magnet synchronous motor is a type of motor with high efficiency and high power density, which is widely used in electric vehicles, industrial automation and home appliances.
[0003] In the related art, the feedforward voltage is calculated by using fixed motor parameters or table lookup without considering the motor internal resistance and differential terms in the stator voltage equation, and the feedforward voltage is used to control the permanent magnet synchronous motor. In the above method, since the motor parameters will change with the running state of the motor, using fixed motor parameters to calculate the feedforward voltage will lead to the problem of inaccurate feedforward voltage.
[0004] In the related art, the permanent magnet synchronous motor is calibrated to obtain the current meter under the premise of determining the bus voltage utilization rate and the overmodulation coefficient. When the bus voltage utilization rate or the overmodulation coefficient changes, the permanent magnet synchronous motor needs to be recalibrated to obtain a new current meter. The above method results in a lot of workload when calibrating the motor, occupies manpower and equipment resources, and delays the progress of project development.
[0005] In the related art, when performing current loop control, the phase voltage and the current bus voltage are used to perform PI operation, and the command current is obtained by looking up the current table according to the operation result. In the above method, the parameters of the PI operation need to be adjusted during the PI (Proportional-Integral) regulation process, and the response speed of PI regulation is slow. Summary of the invention
[0006] The embodiments of the present application provide a motor control method, device, equipment and storage medium. The technical solutions provided by the embodiments of the present application are as follows:
[0007] According to one aspect of an embodiment of the present application, a motor control method is provided, wherein:
[0008] Acquire ammeter data and voltmeter data, wherein the ammeter data includes at least one reference current, and the voltmeter data includes at least one feedforward compensation voltage, wherein the ammeter data and the voltmeter data are generated based on calibration data, and the calibration data is recorded during the process of calibrating the motor;
[0009] According to the ammeter data, the voltmeter data, the torque command and the converted speed, a duty cycle is obtained, wherein the duty cycle is used to adjust the running state of the motor, the torque command is used to control the output torque of the motor, the converted speed is obtained by converting the speed of the motor at the first moment according to the phase voltage, the bus voltage and the converted bus voltage of the motor at the first moment, the bus voltage is used to provide a DC voltage, the converted bus voltage is obtained according to the bus voltage, the bus voltage utilization rate and the overmodulation coefficient, the bus voltage utilization rate is used to indicate the degree of use of the bus voltage, and the phase voltage refers to the amplitude of the three-phase AC voltage input to the motor;
[0010] Based on the duty cycle, the operating state of the motor is adjusted.
[0011] In some embodiments, according to the torque command and the converted speed, a table lookup current is obtained from the current table data, and the table lookup current refers to a reference current under the converted speed and the torque command;
[0012] According to the torque command and the converted speed, a table lookup voltage is obtained from the voltage table data, wherein the table lookup voltage refers to a feedforward compensation voltage under the converted speed and the torque command;
[0013] Calculating a target voltage based on a feedback current and the table lookup current, wherein the feedback current refers to an actual current in the motor at the first moment;
[0014] Based on the table lookup voltage, adjusting the target voltage to obtain an adjusted target voltage;
[0015] The duty cycle is calculated based on the adjusted target voltage.
[0016] In some embodiments, the calibration data includes at least one set of operating point data, and the operating point data includes speed, torque, command current and command voltage; the ammeter data is obtained by interpolating the speed, torque and command current in at least one set of operating point data in the calibration data; the voltmeter data is obtained by interpolating the speed, torque and command voltage in at least one set of operating point data in the calibration data.
[0017] In some embodiments, the overmodulation coefficient includes a first modulation coefficient and a second modulation coefficient, the first overmodulation coefficient is an overmodulation coefficient used in a calibration process, and the second overmodulation coefficient is an overmodulation coefficient used by the motor during overmodulation operation;
[0018] Acquire the bus voltage of the motor at the first moment;
[0019] Obtaining the converted bus voltage based on the bus voltage, the bus voltage utilization rate, the first overmodulation coefficient, and the second overmodulation coefficient;
[0020] Acquire the phase voltage of the motor at the first moment;
[0021] Obtaining an error voltage based on the phase voltage and the converted bus voltage;
[0022] A value obtained by adding the converted bus voltage and the error voltage is determined as a converted voltage;
[0023] The converted rotation speed is obtained based on the converted voltage.
[0024] In some embodiments, the target voltage includes a first axis voltage and a second axis voltage, wherein the first axis voltage and the second axis voltage are components of the target voltage in different directions; the phase voltage is determined based on the first axis voltage and the second axis voltage at a second moment; wherein the second moment is earlier than the first moment.
[0025] In some embodiments, obtaining the rotation speed of the motor at the first moment;
[0026] The converted speed is calculated according to the bus calibration voltage, the converted voltage and the speed, wherein the bus calibration voltage refers to a reference DC voltage used in the calibration process.
[0027] According to one aspect of an embodiment of the present application, a motor control device is provided, characterized in that the device comprises:
[0028] a meter data acquisition module, used to acquire ammeter data and voltmeter data, wherein the ammeter data includes at least one reference current, and the voltmeter data includes at least one feedforward compensation voltage, wherein the ammeter data and the voltmeter data are generated based on calibration data, and the calibration data is recorded in the process of calibrating the motor;
[0029] a duty cycle calculation module, used for obtaining a duty cycle according to the ammeter data, the voltmeter data, a torque command and a converted speed, wherein the duty cycle is used to adjust the running state of the motor, the torque command is used to control the output torque of the motor, the converted speed is obtained by converting the speed of the motor at the first moment according to the phase voltage, the bus voltage and the converted bus voltage of the motor at the first moment, the bus voltage is used to provide a DC voltage, the converted bus voltage is obtained according to the bus voltage, the bus voltage utilization rate and the overmodulation coefficient, the bus voltage utilization rate is used to indicate the degree of use of the bus voltage, and the phase voltage refers to the amplitude of the three-phase AC voltage input to the motor;
[0030] A motor control module is used to adjust the operating state of the motor based on the duty cycle.
[0031] In some embodiments, the duty cycle calculation module is further used to query the table lookup current from the current meter data according to the torque command and the converted speed, and the table lookup current refers to the reference current under the converted speed and the torque command;
[0032] According to the torque command and the converted speed, a table lookup voltage is obtained from the voltage table data, wherein the table lookup voltage refers to a feedforward compensation voltage under the converted speed and the torque command;
[0033] Performing PI operation on the feedback current and the table lookup current to obtain a target voltage, wherein the feedback current refers to an actual current in the motor at the first moment;
[0034] Based on the table lookup voltage, adjusting the target voltage to obtain an adjusted target voltage;
[0035] The duty cycle is calculated based on the adjusted target voltage.
[0036] In some embodiments, the calibration data includes at least one set of operating point data, and the operating point data includes speed, torque, command current and command voltage; the ammeter data is obtained by interpolating the speed, torque and command current in at least one set of operating point data in the calibration data; the voltmeter data is obtained by interpolating the speed, torque and command voltage in at least one set of operating point data in the calibration data.
[0037] In some embodiments, the overmodulation coefficient includes a first modulation coefficient and a second modulation coefficient, the first overmodulation coefficient is an overmodulation coefficient used in a calibration process, and the second overmodulation coefficient is an overmodulation coefficient used by the motor when it is running in overmodulation; the device also includes a converted speed calculation module for obtaining the bus voltage of the motor at the first moment;
[0038] Obtaining the converted bus voltage based on the bus voltage, the bus voltage utilization rate, the first overmodulation coefficient, and the second overmodulation coefficient;
[0039] Acquire the phase voltage of the motor at the first moment;
[0040] Obtaining an error voltage based on the phase voltage and the converted bus voltage;
[0041] A value obtained by adding the converted bus voltage and the error voltage is determined as a converted voltage;
[0042] The converted rotation speed is obtained based on the converted voltage.
[0043] In some embodiments, the target voltage includes a first axis voltage and a second axis voltage, and the first axis voltage and the second axis voltage are component voltages of the target voltage in different directions; the converted voltage calculation module is also used to determine the phase voltage based on the first axis voltage and the second axis voltage at a second moment; wherein the second moment is earlier than the first moment.
[0044] In some embodiments, the converted speed calculation module is used to obtain a first speed of the motor at the first moment;
[0045] The converted speed is calculated according to the bus calibration voltage, the converted voltage and the first speed, wherein the bus calibration voltage refers to a reference DC voltage used in the calibration process.
[0046] According to one aspect of an embodiment of the present application, a control device is provided, which includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above-mentioned motor control method.
[0047] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned motor control method.
[0048] According to one aspect of an embodiment of the present application, a computer program product is provided. The computer program product includes a computer program. The computer program is loaded and executed by a processor to implement the above-mentioned motor control method.
[0049] The technical solution provided by the embodiments of the present application includes at least the following beneficial effects:
[0050] By directly looking up the table, the feedforward voltage compensation value under any working condition can be accurately obtained, and then the duty cycle used to control the operating state of the motor can be obtained, thereby achieving more precise control of the control current, improving the efficiency of controlling the motor, and at the same time increasing the response speed of the current loop, thereby improving the torque response capability.
[0051] Secondly, by using the bus voltage utilization rate and overmodulation coefficient to convert the speed, the ammeter data of the motor is obtained according to the converted speed. There is no need to recalibrate the motor ammeter, which saves manpower and equipment resources and speeds up the progress of project development.
[0052] In addition, by directly calculating the error voltage, when the current loop control point is not on the voltage limit circle, the control current command value can be automatically adjusted quickly and accurately so that the current loop current control point falls on the voltage limit circle, while ensuring that the output torque remains unchanged. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;
[0054] Figure 2 is a flow chart of a motor control method provided by an embodiment of the present application;
[0055] Figure 3 It is a schematic diagram of an ammeter lookup provided by an embodiment of the present application;
[0056] Figure 4 It is a schematic diagram of a voltage meter lookup provided by an embodiment of the present application;
[0057] Figure 5 is a flow chart of voltage command generation provided by an embodiment of the present application;
[0058] Figure 6 is a block diagram of a motor control device provided by an embodiment of the present application;
[0059] Figure 7 It is a structural diagram of a control device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0061] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application. The implementation environment may include: a control device 10 and a motor 20. The control device 10 is electrically connected to the motor 20.
[0062] The control device 10 is used to accurately control the operation of the motor 20. In some embodiments, the control device 10 controls the start, stop, acceleration, deceleration and reversal of the motor 20 by adjusting the speed and torque of the motor 20. In some embodiments, the control device 10 can be any one of the following: a motor controller (Motor Controller), a power control unit (Powertrain Control Unit, PCU for short), a powertrain control module (Powertrain Control Module, PCM for short), a vehicle control unit (VCU for short), etc., and can also be other devices for controlling the operation of the motor 20, which is not limited in this application.
[0063] The motor 20 is used to convert electrical energy into mechanical energy to provide driving force for machines and systems. Among them, the machine and system can be any of the following: electric vehicles, automation systems, home appliances, etc. In the embodiment of the present application, the motor 20 is a permanent magnet synchronous motor (PMSM). The permanent magnet synchronous motor generates a constant magnetic field through permanent magnets, which interacts with the magnetic field generated by the current in the stator winding, thereby generating torque.
[0064] Electrical connection refers to the electrical contact and current transmission path established between electrical devices or components through cables, wires or other conductive materials. The electrical connection can be a circuit connection or a wireless connection, which is not specifically limited. If the electrical connection is a circuit connection, the connection method can be a cable connection. If the electrical connection is a wireless connection, the connection method can be an infrared connection, a wireless local area network, and a WiFi (Wireless Fidelity) network connection. In the embodiments of the present application, this is not specifically limited.
[0065] Please refer to Figure 2 , which shows a flow chart of a motor control method provided by an embodiment of the present application, the method may include at least one of the following steps 210 to 230:
[0066] Step 210, obtaining ammeter data and voltmeter data, the ammeter data including at least one reference current, the voltmeter data including at least one feedforward compensation voltage, the ammeter data and the voltmeter data are generated based on calibration data, and the calibration data is recorded during the process of calibrating the motor.
[0067] The ammeter data, which may also be referred to as an ammeter, is a table including reference currents of the motor under different operating conditions. The reference current refers to the current at which the motor is expected to run, which is used to ensure that the motor runs according to the expected performance and response requirements. The reference current includes a D-axis reference current and a Q-axis reference current. In some embodiments, the ammeter is an ammeter with equal speed intervals and equal torque intervals. The voltmeter data, which may also be referred to as a voltmeter, illustrates a table including the feedforward compensation voltage of the motor under different operating conditions. The feedforward compensation voltage is used for feedforward control to compensate for known disturbances or nonlinear factors in the system in advance in the voltage control link. The feedforward compensation voltage includes a D-axis feedforward compensation voltage and a Q-axis feedforward compensation voltage. In some embodiments, the voltmeter is a voltmeter with equal speed intervals and equal torque intervals. Operating conditions refer to the working state and parameters of a machine or device under different operating environments, which may include but are not limited to: speed, torque, current, voltage, etc., which are not limited to the embodiments of the present application.
[0068] The D-axis and Q-axis are coordinate systems used for motor control vector control. The D-axis is perpendicular to the magnetic field, and the Q-axis is perpendicular to the rotor flux. It can be understood that the current / voltage on the D-axis is the DC current / DC voltage component, and the current / voltage on the Q-axis is the AC current / DC voltage component.
[0069] In some embodiments, the calibration data includes at least one set of operating point data, the operating point data including speed, torque, command current and command voltage; the ammeter data is obtained by interpolating the speed, torque and command current in at least one set of operating point data in the calibration data; the voltmeter data is obtained by interpolating the speed, torque and command voltage in at least one set of operating point data in the calibration data.
[0070] The operating point data refers to the operating parameters of the motor under specified operating conditions. The speed refers to the rotation speed of the motor rotor, which can be expressed in revolutions per minute (RPM). For example, 1000RPM means that the motor rotor rotates 1000 times per minute. Torque refers to the torque output by the motor, which can be expressed in Newton meters (Nm). For example, 5Nm means a force of 5 Newtons acting on a 1-meter lever arm. The command current refers to the current theoretically generated by the motor at the corresponding speed and torque during the motor calibration process. The command current includes the D-axis command current and the Q-axis command current. The command voltage refers to the voltage theoretically generated by the motor at the corresponding speed and torque during the motor calibration process. The command voltage includes the D-axis command voltage and the Q-axis command voltage.
[0071] Motor calibration refers to the process of accurately setting and calibrating the motor parameters to ensure that the motor can work accurately and reliably.
[0072] In some embodiments, based on a preset bus calibration voltage, the MTPA (Maximum Torque Per Ampere) and MTPV (Maximum Torque Per Voltage) curves of the motor at different speeds are calibrated to obtain at least one operating point data.
[0073] The MTPA curve describes the maximum torque that the motor can output at a given current. Its purpose is to achieve maximum torque output by minimizing current at different speeds. The MTPV curve describes the maximum torque that the motor can achieve at a given voltage. Its purpose is to achieve maximum torque output by optimizing voltage at different speeds.
[0074] Interpolation is a method for estimating unknown data between known data. Optionally, any of the following methods may be used for interpolation: linear interpolation, polynomial interpolation, spline interpolation, etc. Other methods may also be used, which are not limited in the embodiments of the present application.
[0075] The above method records the calibration data during the voltage calibration process and generates an ammeter and a voltmeter based on the calibration data. This does not increase the workload of motor calibration, and the obtained feedforward voltage is more accurate, which can significantly improve the control performance of the current loop.
[0076] Step 220, obtain the duty cycle according to the ammeter data, the voltmeter data, the torque command and the converted speed, the duty cycle is used to adjust the operating state of the motor, the torque command is used to control the output torque of the motor, the converted speed is obtained by converting the speed of the motor at the first moment according to the phase voltage, the bus voltage and the converted bus voltage of the motor at the first moment, the bus voltage is used to provide DC voltage, the converted bus voltage is obtained according to the bus voltage, the bus voltage utilization rate and the overmodulation coefficient, the bus voltage utilization rate is used to indicate the degree of use of the bus voltage, and the phase voltage refers to the amplitude of the three-phase AC voltage input to the motor.
[0077] The torque command is an instruction for indicating the desired torque output by the motor. In some embodiments, the corresponding torque command is generated based on the input information and the motor feedback information. The input information refers to the indication information of the external input. For example, in an electric vehicle, the corresponding torque command is generated based on the driver's input (such as the position of the accelerator pedal). For example, the corresponding torque command is generated based on the operator's input to industrial equipment (such as handling, assembly, etc.). The motor feedback information refers to the actual output torque or speed of the motor.
[0078] The first moment refers to the moment corresponding to the torque command, and the first moment may refer to the moment when the motion state of the motor needs to be changed most recently.
[0079] The converted speed is obtained by converting and standardizing the speed of the motor at the first moment.
[0080] Duty Cycle is a pulse width modulation (PWM) signal, which is used to adjust the speed and torque of the motor.
[0081] In some embodiments, step 220 also includes steps 221 - 225 .
[0082] Step 221, according to the torque command and the converted speed, the table lookup current is obtained from the ammeter data, where the table lookup current refers to the reference current under the converted speed and torque command.
[0083] The table lookup current includes the D-axis table lookup current and the Q-axis table lookup current.
[0084] For example, please refer to Figure 3 , which shows a schematic diagram of an ammeter lookup table provided by an embodiment of the present application, according to the converted speed Spd at the first moment c , torque command Tq Ref , obtain the first moment's table current I by querying the ammeter dRef ,I qRef .
[0085] Step 222, according to the torque command and the converted speed, the table lookup voltage is obtained from the voltmeter data, and the table lookup voltage refers to the feedforward compensation voltage under the converted speed and torque command.
[0086] The table lookup voltage includes a D-axis table lookup voltage and a Q-axis table lookup voltage.
[0087] For example, please refer to Figure 4 , which shows a schematic diagram of a voltage meter lookup table provided by an embodiment of the present application, according to the converted speed Spd at the first moment c , torque command Tq Ref , obtain the first moment's table voltage U by querying the voltmeter dFw , U qdFw .
[0088] Step 223, after performing PI operation on the feedback current and the table lookup current, the target voltage is obtained, and the feedback current refers to the actual current in the motor at the first moment.
[0089] Feedback current refers to the actual current of the motor measured at the first moment, including D-axis feedback current and Q-axis feedback current. Optionally, the control device 10 also includes a current measurement component, which is used to measure the current of the motor. Optionally, the current measurement component can be a current sensor or other electronic component for measuring current, which is not limited in the embodiment of the present application.
[0090] In some embodiments, the D-axis feedback current and the Q-axis feedback current included in the feedback current are respectively subtracted from the D-axis table lookup current and the Q-axis table lookup current included in the table lookup current and then a PI (Proportional-Integral) operation is performed to obtain the target voltage.
[0091] In the above method, the output of the current loop accounts for a smaller proportion through the feedforward compensation voltage lookup table, which reduces the PI adjustment burden of the current loop, makes the PI control more stable, reduces the control current fluctuation, and controls the output torque pulsation to be smaller; the sensitivity of the current loop to the PI parameters is reduced, the PI parameters of each control condition are easier to adjust, and the control system is more robust;
[0092] Step 224, adjusting the target voltage based on the table lookup voltage to obtain an adjusted target voltage.
[0093] Adjusting the target voltage means performing voltage compensation, and using the table lookup voltage to compensate the target voltage to obtain the final target voltage.
[0094] For example, the voltage U dFw , U qFw Respectively with the target voltage U dPI , U qPI Add together to get the adjusted target voltage U dRef , U qRef ,Right now:
[0095] U dRef =U aFw +U aPI
[0096] U qRef =U qFw +U qPI
[0097] Step 225 , calculating the duty cycle based on the adjusted target voltage.
[0098] In some embodiments, the control device 10 also includes a SVPWM (Space Vector Pulse Width Modulation) component; the target voltage is inversely transformed to obtain a transformed target voltage; the transformed target voltage is input into the SVPWM component to obtain a duty cycle.
[0099] In some embodiments, under the phase voltage limit value, the target voltage is optimized to obtain an optimized target voltage. The phase voltage limit value is the maximum value of the voltage of the motor.
[0100] Step 230, adjusting the operating state of the motor based on the duty cycle.
[0101] In some embodiments, the control device 10 further includes a PWM wave generating component; based on the duty cycle, the PWM wave generating component controls the power device of the motor, thereby controlling the power output, speed and torque of the motor by adjusting the power device of the motor.
[0102] To sum up, the method provided in the embodiment of the present application accurately obtains the feedforward voltage compensation value under any working condition by directly looking up the table, and then obtains the duty cycle for controlling the operating state of the motor, thereby achieving more precise control of the control current and improving the efficiency of controlling the motor. At the same time, it also improves the response speed of the current loop, thereby improving the torque response capability.
[0103] Secondly, by using the bus voltage utilization rate and overmodulation coefficient to convert the speed, the ammeter data of the motor is obtained according to the converted speed. There is no need to recalibrate the motor ammeter, which saves manpower and equipment resources and speeds up the progress of project development.
[0104] In addition, by directly calculating the error voltage, when the current loop control point is not on the voltage limit circle, the control current command value can be automatically adjusted quickly and accurately so that the current loop current control point falls on the voltage limit circle, while ensuring that the output torque remains unchanged.
[0105] The following is how to calculate the converted speed.
[0106] Please refer to Figure 5 , which shows a flowchart of voltage command generation provided by an embodiment of the present application, in Figure 5 The process of voltage command generation and closed-loop control is shown in Figure 2.
[0107] In some embodiments, the overmodulation coefficient includes a first modulation coefficient and a second modulation coefficient, the first overmodulation coefficient is the overmodulation coefficient used in the calibration process, and the second overmodulation coefficient is the overmodulation coefficient used by the motor when it is in overmodulation operation; the bus voltage of the motor at the first moment is obtained; based on the bus voltage, the bus voltage utilization rate, the first overmodulation coefficient and the second overmodulation coefficient, the converted bus voltage is obtained; the phase voltage of the voltage at the first moment is obtained; based on the phase voltage and the converted bus voltage, an error voltage is obtained; the value obtained by adding the converted bus voltage and the error voltage is determined as the converted voltage; based on the converted voltage, the converted speed is obtained.
[0108] The bus voltage is used to provide a DC voltage for the control device 10 to drive the control device 10 to operate. In some embodiments, the control device 10 also includes a voltage measurement component, which is used to measure the bus voltage of the control device 10. Optionally, the voltage measurement component can be a voltage sensor or a voltmeter, or it can be other electronic components for measuring the bus voltage, which is not exemplified in the embodiments of the present application. The bus voltage utilization is a preset expected bus voltage utilization to ensure that the actual bus voltage meets the expected conditions. In some embodiments, the bus voltage utilization satisfies the utilization value range. For example, the utilization value range of the bus voltage utilization is 0.95 to 1.
[0109] The first overmodulation coefficient is an overmodulation coefficient set by relevant technicians when the motor ammeter is calibrated. The second overmodulation coefficient is an overmodulation coefficient set by relevant technicians when the motor needs to be operated in overmodulation.
[0110] In some embodiments, based on the bus voltage utilization rate, the bus voltage is converted for the first time to obtain the initially converted bus voltage; based on the first overmodulation coefficient and the second overmodulation coefficient, the initially converted bus voltage is converted for the second time to obtain the final converted bus voltage.
[0111] For example, the bus voltage utilization rate is K, and the value range of K is 0.95-1. Using the bus voltage utilization rate K, the current bus voltage U is calculated using the following formula: n The conversion of the bus voltage U after the initial conversion is obtained c1 :
[0112] U c1 =U n *K
[0113] Then, the first overmodulation coefficient is C1 and the second overmodulation coefficient is C2, and the following formula is used to calculate the bus voltage U after the initial conversion: c1 Convert and get the final converted bus voltage U c2 :
[0114]
[0115] In the above method, the bus voltage is converted using the bus voltage utilization rate and the overmodulation coefficient to obtain the converted bus voltage. The converted speed is calculated based on the converted bus voltage, and then the ammeter data of the motor is obtained. There is no need to recalibrate the motor ammeter, which not only saves manpower and equipment resources, but also speeds up the progress of project development.
[0116] In some embodiments, the target voltage includes a first axis voltage and a second axis voltage, the first axis voltage and the second axis voltage are component voltages of the target voltage in different directions; based on the first axis voltage and the second axis voltage at a second moment, the phase voltage is determined; wherein the second moment is earlier than the first moment.
[0117] The first axis voltage and the second axis voltage refer to the D axis feedforward compensation voltage and the Q axis feedforward compensation voltage, respectively. It can be understood that the first axis voltage can be the D axis feedforward compensation voltage or the Q axis feedforward compensation voltage; the corresponding second axis voltage can be the Q axis feedforward compensation voltage or the D axis feedforward compensation voltage.
[0118] The second moment refers to the moment when the motor operation state was last adjusted. That is, the phase voltage is determined based on the first shaft voltage and the second shaft voltage of the motor last adjusted. The phase voltage refers to the voltage between a single phase line and the neutral point.
[0119] For example, the phase voltage U s It can be calculated using the following formula:
[0120]
[0121] Among them, U′ dRef Represents the first axis voltage at the second moment, U′ qRef Represents the second axis voltage at the second moment.
[0122] After the converted bus voltage and phase voltage are calculated, the error voltage at the first moment is determined based on the converted bus voltage and phase voltage.
[0123] For example, the error voltage U at the first moment e The calculation method is as follows:
[0124]
[0125] Among them, U c2 is the converted bus voltage, U s is the phase voltage.
[0126] When the temperature of the motor changes, there are consistency differences in the motor, or the permanent magnet of the motor is demagnetized, the current loop current control point will fall inside or outside the voltage limit circle. When the current loop current control point falls inside the voltage limit circle, the control efficiency becomes low and the bus voltage utilization rate decreases. When the current loop current control point falls outside the voltage limit circle, the current loop control is prone to saturation, causing system oscillation and large pulsation of the motor output torque.
[0127] The above method can automatically adjust the control current command value when the current control point of the current loop is not on the voltage limit circle, so that the current control point of the current loop falls on the voltage limit circle, and at the same time ensure that the output torque remains unchanged.
[0128] Compared with the prior art, the above method directly calculates the error voltage U e The method can quickly feed back to the input end of the current lookup table and obtain accurate control current. Therefore, the present invention can not only output accurate control current according to the voltage limit circle, but also has a faster response speed and does not require calibration of relevant parameters.
[0129] According to the converted bus voltage U c2 and error voltage U e , the converted voltage U can be calculated c , the calculation method is as follows:
[0130] U c =U c2 +U e
[0131] In some embodiments, a first speed of the motor at a first moment is obtained; the converted speed is calculated based on the bus calibration voltage, the converted voltage and the first speed, where the bus calibration voltage refers to a reference voltage used in the calibration process.
[0132] For example, using the converted voltage U c , the converted speed Spd can be calculated c , the calculation method is as follows:
[0133]
[0134] Among them, U dc To calibrate the bus voltage, Spd is the first speed at the first moment.
[0135] When the current loop control needs to operate in the overmodulation region, the phase voltage U needs to be calculated. s The limit value U sLim , the calculation method is:
[0136]
[0137] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0138] Please refer to Figure 6 , which shows a block diagram of a motor control device provided by an embodiment of the present application. The device has the function of implementing the above-mentioned motor control method example, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the control device described above, or it can be set in the control device. Figure 6 As shown, the device 600 may include: a table data acquisition module 610 , a duty cycle calculation module 620 and a motor control module 630 .
[0139] The meter data acquisition module 610 is used to acquire ammeter data and voltmeter data, wherein the ammeter data includes at least one reference current, and the voltmeter data includes at least one feedforward compensation voltage. The ammeter data and the voltmeter data are generated based on calibration data, and the calibration data is recorded during the process of calibrating the motor.
[0140] The duty cycle calculation module 620 is used to obtain the duty cycle according to the ammeter data, the voltmeter data, the torque command and the converted speed. The duty cycle is used to adjust the operating state of the motor. The torque command is used to control the output torque of the motor. The converted speed is obtained by converting the speed of the motor at the first moment according to the phase voltage, bus voltage and converted bus voltage of the motor at the first moment. The bus voltage is used to provide a DC voltage. The converted bus voltage is obtained according to the bus voltage, bus voltage utilization and overmodulation coefficient. The bus voltage utilization is used to indicate the degree of use of the bus voltage. The phase voltage refers to the amplitude of the three-phase AC voltage input to the motor.
[0141] The motor control module 630 is used to adjust the operating state of the motor based on the duty cycle.
[0142] In some embodiments, the duty cycle calculation module 620 is further used to query the table current from the current meter data according to the torque command and the converted speed, and the table current refers to the reference current under the converted speed and the torque command;
[0143] According to the torque command and the converted speed, a table lookup voltage is obtained from the voltage table data, wherein the table lookup voltage refers to a feedforward compensation voltage under the converted speed and the torque command;
[0144] After performing a proportional-integral (PI) operation on the feedback current and the table-lookup current, a target voltage is obtained, wherein the feedback current refers to an actual current in the motor at the first moment;
[0145] Based on the table lookup voltage, adjusting the target voltage to obtain an adjusted target voltage;
[0146] The duty cycle is calculated based on the adjusted target voltage.
[0147] In some embodiments, the calibration data includes at least one set of operating point data, and the operating point data includes speed, torque, command current and command voltage; the ammeter data is obtained by interpolating the speed, torque and command current in at least one set of operating point data in the calibration data; the voltmeter data is obtained by interpolating the speed, torque and command voltage in at least one set of operating point data in the calibration data.
[0148] In some embodiments, the overmodulation coefficient includes a first modulation coefficient and a second modulation coefficient, the first overmodulation coefficient is an overmodulation coefficient used in a calibration process, and the second overmodulation coefficient is an overmodulation coefficient used by the motor when it is running in overmodulation; the device also includes a converted speed calculation module for obtaining the bus voltage of the motor at the first moment;
[0149] Obtaining the converted bus voltage based on the bus voltage, the bus voltage utilization rate, the first overmodulation coefficient, and the second overmodulation coefficient;
[0150] Acquire the phase voltage of the motor at the first moment;
[0151] Obtaining an error voltage based on the phase voltage and the converted bus voltage;
[0152] A value obtained by adding the converted bus voltage and the error voltage is determined as a converted voltage;
[0153] The converted rotation speed is obtained based on the converted voltage.
[0154] In some embodiments, the target voltage includes a first axis voltage and a second axis voltage, and the first axis voltage and the second axis voltage are component voltages of the target voltage in different directions; the converted voltage calculation module is also used to determine the phase voltage based on the first axis voltage and the second axis voltage at a second moment; wherein the second moment is earlier than the first moment.
[0155] In some embodiments, the converted speed calculation module is used to obtain a first speed of the motor at the first moment;
[0156] The converted speed is calculated according to the bus calibration voltage, the converted voltage and the first speed, wherein the bus calibration voltage refers to a reference DC voltage used in the calibration process.
[0157] To sum up, the method provided in the embodiment of the present application accurately obtains the feedforward voltage compensation value under any working condition by directly looking up the table, and then obtains the duty cycle for controlling the operating state of the motor, thereby achieving more precise control of the control current and improving the efficiency of controlling the motor. At the same time, it also improves the response speed of the current loop, thereby improving the torque response capability.
[0158] Secondly, by using the bus voltage utilization rate and overmodulation coefficient to convert the speed, the ammeter data of the motor is obtained according to the converted speed. There is no need to recalibrate the motor ammeter, which saves manpower and equipment resources and speeds up the progress of project development.
[0159] In addition, by directly calculating the error voltage, when the current loop control point is not on the voltage limit circle, the control current command value can be automatically adjusted quickly and accurately so that the current loop current control point falls on the voltage limit circle, while ensuring that the output torque remains unchanged.
[0160] One point that needs to be explained is that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0161] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0162] Please refer to Figure 7 , which shows a schematic diagram of the structure of a control device 700 provided in an embodiment of the present application. The control device 700 can be used to execute the method steps in the above embodiment. The control device 700 may include a processor 701 and a memory 702. The processor 701 is used to implement the functions of each module in the above device embodiment.
[0163] The processor 701 includes one or more processing cores. The processor 701 executes various functional applications and information processing by running software programs and modules.
[0164] The memory 702 may be connected to the processor 701 .
[0165] The memory 702 may be used to store a computer program executed by the processor, and the processor 701 is used to execute the computer program to implement the above motor control method.
[0166] In addition, the memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, and the volatile or non-volatile storage device includes but is not limited to: a magnetic disk or optical disk, an electrically erasable programmable read-only memory, an erasable programmable read-only memory, a static access memory, a read-only memory, a magnetic memory, a flash memory, and a programmable read-only memory.
[0167] For details not described in detail in the above embodiments, please refer to the introduction in the above method embodiments, which will not be repeated here.
[0168] The embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored, and the computer program is used to be executed by a processor to implement the above-mentioned motor control method. Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0169] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor reads and executes the computer program from the computer-readable storage medium to implement the above-mentioned motor control method.
[0170] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0171] The term “greater than or equal to” mentioned herein may mean greater than or equal to, or greater than, and the term “less than or equal to” may mean less than or equal to, or less than.
[0172] In addition, the step numbers described in this document only illustrate a possible execution order between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to that shown in the figure. The embodiments of the present application are not limited to this.
[0173] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A motor control method, characterized in that: The method comprises: Acquire ammeter data and voltmeter data, wherein the ammeter data includes at least one reference current, and the voltmeter data includes at least one feedforward compensation voltage, wherein the ammeter data and the voltmeter data are generated based on calibration data, and the calibration data is recorded during the process of calibrating the motor; According to the ammeter data, the voltmeter data, the torque command and the converted speed, a duty cycle is obtained, wherein the duty cycle is used to adjust the running state of the motor, the torque command is used to control the output torque of the motor, the converted speed is obtained by converting the speed of the motor at the first moment according to the phase voltage, the bus voltage and the converted bus voltage of the motor at the first moment, the bus voltage is used to provide a DC voltage, the converted bus voltage is obtained according to the bus voltage, the bus voltage utilization rate and the overmodulation coefficient, the bus voltage utilization rate is used to indicate the degree of use of the bus voltage, and the phase voltage refers to the amplitude of the three-phase AC voltage input to the motor; Based on the duty cycle, the operating state of the motor is adjusted.
2. The method according to claim 1, characterized in that The step of obtaining the duty cycle according to the ammeter data, the voltmeter data, the torque command and the converted speed includes: According to the torque command and the converted speed, a table-lookup current is obtained from the current meter data, wherein the table-lookup current refers to a reference current under the converted speed and the torque command; According to the torque command and the converted speed, a table lookup voltage is obtained from the voltage table data, wherein the table lookup voltage refers to a feedforward compensation voltage under the converted speed and the torque command; After performing a proportional-integral (PI) operation on the feedback current and the table-lookup current, a target voltage is obtained, wherein the feedback current refers to an actual current in the motor at the first moment; Based on the table lookup voltage, adjusting the target voltage to obtain an adjusted target voltage; The duty cycle is calculated based on the adjusted target voltage.
3. The method according to claim 1, characterized in that The calibration data includes at least one set of operating point data, and the operating point data includes speed, torque, command current and command voltage; the ammeter data is obtained by interpolating the speed, torque and command current in at least one set of operating point data in the calibration data; the voltmeter data is obtained by interpolating the speed, torque and command voltage in at least one set of operating point data in the calibration data.
4. The method according to claim 1, characterized in that: The overmodulation coefficient includes a first modulation coefficient and a second modulation coefficient, wherein the first overmodulation coefficient is an overmodulation coefficient used in a calibration process, and the second overmodulation coefficient is an overmodulation coefficient used by the motor during overmodulation operation; The method further comprises: Acquire the bus voltage of the motor at the first moment; Obtaining the converted bus voltage based on the bus voltage, the bus voltage utilization rate, the first overmodulation coefficient, and the second overmodulation coefficient; Acquire the phase voltage of the motor at the first moment; Obtaining an error voltage based on the phase voltage and the converted bus voltage; A value obtained by adding the converted bus voltage and the error voltage is determined as a converted voltage; The converted rotation speed is obtained based on the converted voltage.
5. The method according to claim 4, characterized in that The target voltage includes a first axis voltage and a second axis voltage, wherein the first axis voltage and the second axis voltage are component voltages of the target voltage in different directions; The obtaining the phase voltage of the motor at the first moment includes: The phase voltage is determined based on the first shaft voltage and the second shaft voltage at a second moment; wherein the second moment is earlier than the first moment.
6. The method according to claim 4, characterized in that The obtaining the converted speed based on the converted voltage includes: Acquire the rotation speed of the motor at the first moment; The converted speed is calculated according to the bus calibration voltage, the converted voltage and the speed, wherein the bus calibration voltage refers to a reference DC voltage used in the calibration process.
7. A motor control device, characterized in that: The device comprises: a meter data acquisition module, used to acquire ammeter data and voltmeter data, wherein the ammeter data includes at least one reference current, and the voltmeter data includes at least one feedforward compensation voltage, wherein the ammeter data and the voltmeter data are generated based on calibration data, and the calibration data is recorded in the process of calibrating the motor; a duty cycle calculation module, used for obtaining a duty cycle according to the ammeter data, the voltmeter data, a torque command and a converted speed, wherein the duty cycle is used to adjust the running state of the motor, the torque command is used to control the output torque of the motor, the converted speed is obtained by converting the speed of the motor at the first moment according to the phase voltage, the bus voltage and the converted bus voltage of the motor at the first moment, the bus voltage is used to provide a DC voltage, the converted bus voltage is obtained according to the bus voltage, the bus voltage utilization rate and the overmodulation coefficient, the bus voltage utilization rate is used to indicate the degree of use of the bus voltage, and the phase voltage refers to the amplitude of the three-phase AC voltage input to the motor; A motor control module is used to adjust the operating state of the motor based on the duty cycle.
8. A control device, characterized in that: The control device comprises a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to be executed by a processor to implement the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The computer program product comprises a computer program, and the computer program is loaded and executed by a processor to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Voltage feedforward compensation method in current loop of AC servo system
CN109150043A
Permanent magnet synchronous instability-preventing weak magnetic method
CN112104278A
Weak magnetic control method and system of motor and related components
CN115882760A
Control method for motor, electronic equipment and vehicle
CN117240164A
Permanent magnet synchronous motor wide voltage range control method based on current lookup table and medium
CN117938008A
Cited By
Weak magnetic control method and system of motor, electronic product and storage medium
CN120415186A
