Motor control method, device and equipment, storage medium and computer product

By adjusting the three-phase comparison value based on the three-phase reference signal and the triangular carrier signal in the motor control, the narrow pulse problem under SVPWM signal control is solved, the generation of DC ripple is avoided, and the efficient and stable operation of the motor is ensured.

CN118554844APending Publication Date: 2024-08-27DONGFENG MOTOR GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410715432.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

When controlling the motor through the SVPWM signal, the narrow pulses caused by the three-phase comparison value being too large or too small affect the motor control effect. Common solutions will produce DC ripples and worsen the noise, vibration and harshness (NVH) of the vehicle.

Method used

The three-phase comparison value used to control the on-off state of the power tube is obtained through the preset three-phase reference signal and the triangular carrier signal. If the minimum comparison value is less than the preset safety time, adjust it to a safe value range to avoid narrow pulses. of production.

Benefits of technology

It achieves the avoidance of DC ripple and narrow pulse output in motor control, ensuring the safe, efficient and stable operation of the motor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118554844A
    Figure CN118554844A
Patent Text Reader

Abstract

The invention discloses a motor control method, device and equipment, a storage medium and a computer product, and relates to the technical field of motor control. The motor control method comprises the following steps: obtaining a three-phase comparison value for controlling the on-off state of each switch tube through a preset three-phase reference signal and a triangular carrier signal; and if the minimum comparison value in the three-phase comparison values is smaller than the preset safety time, the three-phase comparison values are adjusted through the minimum comparison value, so that the three-phase comparison values are shifted to a safety value interval in which narrow pulses are not generated, and therefore, when the power tubes are controlled to drive the motor to work, the voltage with direct-current ripples and the narrow pulses is not output to the motor, and the operation efficiency of the motor is improved. Therefore, the motor can work safely, efficiently and stably.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of motor control technology, and in particular to a motor control method, device, equipment, storage medium and computer product. Background Art

[0002] Electric motors for electric vehicles generally use synchronous motors or asynchronous motors. Permanent magnet synchronous motors are widely used in domestic new energy vehicles due to their high efficiency and high power density. Usually, the SVPWM space vector pulse width modulation method can be used to control the permanent magnet synchronous motor to work to improve the working efficiency of the motor. When controlling the motor by SVPWM, there is an inevitable dead zone, and the upper and lower switches of each bridge arm in the power module cannot be turned on at the same time. This results in that even if the dead zone compensation is performed when the output voltage is large, the PWM signal with a three-phase comparison value that is too large or too small will produce a situation where the power device of the power module is not turned on and then turned off. In this process, narrow pulses will be generated, affecting the control effect of the motor.

[0003] A commonly used solution is to directly process the comparison value of each phase PWM signal. When the comparison value of each phase PWM signal is less than the minimum limit value or greater than the maximum limit value, it is determined that a narrow pulse may occur, and the comparison value is set to the minimum value or maximum value accordingly. However, this solution will cause the output voltage in each cycle to produce a 6-fold DC ripple, which will worsen the noise, vibration and sound roughness (NVH) of the vehicle. Summary of the invention

[0004] The main purpose of this application is to provide a motor control method, device, equipment and storage medium, aiming to solve the technical problem of how to prevent narrow pulses from being generated due to excessively large or small three-phase comparison values ​​when controlling a power module to drive a motor through an SVPWM signal.

[0005] To achieve the above object, the present application provides a motor control method, the steps of the motor control method comprising:

[0006] Based on a preset three-phase reference signal and a triangular carrier signal, a three-phase comparison value for controlling the on / off state of each power tube is obtained;

[0007] When the minimum comparison value of the three-phase comparison values ​​is less than the preset safety time, the three-phase comparison values ​​are adjusted to a safe value range by the minimum comparison value;

[0008] Based on the three-phase comparison value adjusted to within the safe value range, each of the power tubes is controlled to change the on-off state to control the motor to work.

[0009] In one embodiment, when the minimum comparison value of the three-phase comparison values ​​is less than a preset safety time, the step of adjusting the three-phase comparison values ​​to a safe value range by the minimum comparison value includes:

[0010] When the minimum comparison value is less than the preset safety time, acquiring a cumulative value of the switching period of the triangular carrier signal;

[0011] Determining an adjustment method of the three-phase comparison value based on an intermediate comparison value in the three-phase comparison value, the cumulative value of the switching cycle, and a preset dead time set by a user;

[0012] Based on the adjustment method, the three-phase comparison value is adjusted to within the safe value range through the minimum comparison value.

[0013] In one embodiment, the step of determining the adjustment method of the three-phase comparison value based on the middle comparison value in the three-phase comparison value, the switching cycle accumulated value and the preset dead time set by the user includes:

[0014] When the intermediate comparison value is less than half of the sum of the switching cycle accumulated value and the preset dead time, determining that the regulation mode is the first regulation mode;

[0015] When the intermediate comparison value is not less than half of the sum of the switching cycle accumulated value and the preset dead time, it is determined that the regulation mode is the second regulation mode.

[0016] In one embodiment, the step of adjusting the three-phase comparison value to within the safe value range by using the minimum comparison value based on the adjustment mode includes:

[0017] When the adjustment mode is the first adjustment mode, continuously increasing the three-phase comparison value by the minimum comparison value until the adjusted three-phase comparison value is within the safe value range;

[0018] When the adjustment mode is the second adjustment mode, the three-phase comparison value is continuously reduced by the minimum comparison value until the adjusted three-phase comparison value is within the safe value range.

[0019] In one embodiment, after the step of obtaining the three-phase comparison value for controlling the on / off state of each power tube based on the preset three-phase reference signal and the triangular carrier signal, the method further includes:

[0020] When the minimum comparison value is not less than the preset safety time, the on-off state of each power tube is directly controlled by the obtained three-phase comparison value to control the motor to work.

[0021] In one embodiment, before the step of adjusting the three-phase comparison value to a safe value range by the minimum comparison value when the minimum comparison value of the three-phase comparison value is less than the preset safety time, the step further includes:

[0022] The preset safety time is determined based on the preset dead time set by the user and the safety compensation time obtained through test feedback.

[0023] In addition, to achieve the above-mentioned purpose, the present application also provides a motor control device, the motor control device comprising:

[0024] A comparison value acquisition module, used to acquire a three-phase comparison value for controlling the on / off state of each power tube based on a preset three-phase reference signal and a triangular carrier signal;

[0025] A comparison value adjustment module, configured to adjust the three-phase comparison value to a safe value interval by using the minimum comparison value when the minimum comparison value of the three-phase comparison value is less than a preset safety time;

[0026] The comparison value application module is used to control each of the power tubes to change the on-off state based on the three-phase comparison value adjusted to the safe value interval, so as to control the motor to work.

[0027] In addition, to achieve the above-mentioned purpose, the present application also provides a motor control device, which includes: a memory, a processor, and a motor control program stored in the memory and executable on the processor, and the motor control program is configured to implement the steps of the motor control method described above.

[0028] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a motor control program is stored on the computer-readable storage medium. When the motor control program is executed by the processor, the steps of the motor control method described above are implemented.

[0029] In addition, to achieve the above-mentioned purpose, the present application also provides a computer product, which includes a computer program, and when the computer program is processed by a processor, the steps of the motor control method described above are implemented.

[0030] The present application provides a motor control method, device, equipment, storage medium and computer product, wherein the steps of the motor control method include: obtaining a three-phase comparison value for controlling the on-off state of each power tube based on a preset three-phase reference signal and a triangular carrier signal; when the minimum comparison value of the three-phase comparison value is less than a preset safety time, adjusting the three-phase comparison value to a safe value interval by the minimum comparison value; based on the three-phase comparison value adjusted to the safe value interval, controlling each of the power tubes to change the on-off state to control the motor to work. When the three-phase comparison value for controlling the on-off state of each switch tube is obtained by the preset three-phase reference signal and the triangular carrier signal, if the minimum comparison value of the three-phase comparison value is less than the preset safety time, the three-phase comparison value is adjusted by the minimum comparison value to be offset to a safe value interval where no narrow pulse is generated, so that when controlling each power tube to drive the motor to work, a voltage with DC ripple and narrow pulse is not output to the motor, thereby ensuring that the motor can work safely, efficiently and stably. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0032] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0033] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the motor control method of the present application;

[0034] Figure 2 A schematic diagram of a flow chart provided for the second embodiment of the motor control method of the present application;

[0035] Figure 3 A schematic diagram of a flow chart provided for Embodiment 3 of the motor control method of the present application;

[0036] Figure 4 This is a schematic diagram of the module structure of the motor control device according to an embodiment of the present application;

[0037] Figure 5 This is a schematic diagram of the structure of the motor control device according to an embodiment of the present application.

[0038] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0039] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0040] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0041] The main solution of the present application is: when a three-phase comparison value for controlling the on-off state of each power tube in the power module is obtained through a preset three-phase reference signal and a triangular carrier signal, if the minimum comparison value among the three-phase comparison values ​​is less than the preset safety time, the three-phase comparison value can be adjusted as a whole to a safe value range through the minimum comparison value, and then the on-off state of each power tube in the power module is controlled based on the adjusted three-phase comparison value, thereby driving the motor to work.

[0042] At present, in order to improve the utilization rate of electric energy, existing electric vehicles often use permanent magnet synchronous motors as drives to provide sufficient kinetic energy for their driving. In order to further improve the working efficiency of the motor, the SVPWM space vector pulse width modulation method can usually be used to control the permanent magnet synchronous motor to work. However, there will be a dead time when controlling the motor by SVPWM, and the upper and lower switch tubes of each bridge arm in its power module cannot be turned on at the same time. If the three-phase comparison value of the SVPWM signal is too large or too small, it will cause the power tubes in the power module to be turned off without being turned on. In this process, narrow pulses will be generated, affecting the control effect of the motor. The commonly used solution is to directly process the comparison value of each phase PWM signal. When the comparison value of each phase PWM signal is less than the minimum limit value or greater than the maximum limit value, it is determined that a narrow pulse may occur, and the comparison value is set to the minimum value or maximum value accordingly. However, this solution will cause the output voltage in each cycle to produce a 6-fold DC ripple, which will worsen the NVH of the vehicle. Therefore, how to prevent narrow pulses from being generated due to excessive or small three-phase comparison values ​​when the power module drives the motor through the SVPWM signal is controlled is a problem that needs to be solved urgently.

[0043] When the present application obtains the three-phase comparison value for controlling the on-off state of each switch tube through the preset three-phase reference signal and the triangular carrier signal, if the minimum comparison value among the three-phase comparison values ​​is less than the preset safety time, the three-phase comparison value is adjusted by the minimum comparison value so that it is offset to a safe value range that will not generate narrow pulses, thereby achieving that when controlling each power tube to drive the motor to work, a voltage with DC ripple and narrow pulses will not be output to the motor, thereby ensuring that the motor can work safely, efficiently and stably.

[0044] It should be noted that the execution subject of this embodiment can be a motor control device, or a motor control device with data processing, network communication and program running functions, etc., and this embodiment does not specifically limit this. The following takes the motor control device as the execution subject as an example to illustrate this embodiment and the following embodiments.

[0045] Based on this, the present application proposes a motor control method of the first embodiment, please refer to Figure 1 , the motor control method comprises steps S10 to S30:

[0046] Step S10, based on a preset three-phase reference signal and a triangular carrier signal, obtaining a three-phase comparison value for controlling the on / off state of each power tube;

[0047] It should be noted that, in this embodiment, the motor can be a permanent magnet synchronous motor, which is connected to the power supply through a power module with multiple bridges, and the bridge contains multiple power tubes, and the on-off state of each power tube is controlled by the SVPWM signal output by the executive body of this embodiment. Among them, the DC power supply can be a power battery inside the car, and the executive body can control the on-off state of each power tube inside the power module by outputting the corresponding SVPWN signal to convert the DC power output by the power supply into three-phase AC power and transmit it to the motor, so that the motor can work.

[0048] It should be noted that the three-phase reference signal refers to the signal corresponding to the reference value of the three-phase current preset by the user, and can also be understood as three sinusoidal signals with the same amplitude, frequency and period. The phases of each sinusoidal signal differ by 120°, which can be calculated according to the speed, torque and efficiency of the motor operation required by the user. The triangular carrier signal refers to a periodic triangular wave signal preset by the user for comparing with the amplitude of the three-phase reference signal to form an SVPWM signal, and its amplitude can be set to the maximum value of the three-phase reference signal. When the current voltage of a phase reference signal in the three-phase reference signal is higher than the current voltage of the triangular carrier signal, the high-level part of the PWM signal is generated accordingly; when the current voltage of a phase reference signal in the three-phase reference signal is lower than the current voltage of the triangular carrier signal, the low-level part of the PWM signal is generated accordingly. A complete SVPWM signal for controlling the on-off state of each power tube can be formed in the above manner, wherein the three PWM signals generated by comparing the three-phase reference signal with the triangular carrier signal are SVPWM signals, and the ratio of the high-level part of each PWM signal to the overall part of the corresponding PWM signal is the three-phase comparison value.

[0049] It is worth noting that the amplitude of the triangular carrier signal determines the modulation depth of the SVPWM signal, and the frequency of the triangular carrier signal determines the switching speed of the on-off state of each power module controlled by the SVPWM signal. The parameters of the triangular carrier signal can be adjusted to adapt to different modulation conditions and working conditions of the power module (such as the working conditions of the inverter).

[0050] Step S20, when the minimum comparison value of the three-phase comparison values ​​is less than a preset safety time, adjusting the three-phase comparison values ​​to a safe value interval by the minimum comparison value;

[0051] It should be noted that the preset safety time refers to the threshold time obtained by the user through calculation that will not generate narrow pulses, which is slightly larger than the dead time in the SVPWM modulation process. The three-phase comparison value of the SVPWM signal includes the maximum comparison value, the middle comparison value and the minimum comparison value. Among them, if the minimum comparison value of the three-phase comparison value is lower than the preset safety time, due to the existence of the dead time, each power tube inside the power module is very likely to generate a narrow pulse and output it to the motor. The generated narrow pulse will affect the working efficiency of the motor and easily damage the power tube. The safe value interval is a value range that can ensure that the PWM signals corresponding to the maximum comparison value, the middle comparison value and the minimum comparison value in the three-phase comparison value can enable each power tube inside the power module to completely switch the on-off state. When each power tube receives the corresponding PWM signal and completely switches the on-off state, the narrow pulse phenomenon described above will not occur.

[0052] It is easy to understand that in this embodiment, if the minimum comparison value among the three-phase comparison values ​​is less than the preset safety time, the three-phase comparison value can be adjusted by the minimum comparison value among the three-phase comparison values, that is, the three-phase comparison value can be offset according to the minimum comparison value, so that the three-phase comparison value as a whole is offset to the safe value range.

[0053] It is worth noting that if the three-phase comparison value is too small or too large, each power tube may produce narrow pulses.

[0054] Step S30, based on the three-phase comparison value adjusted to the safe value interval, controlling each of the power tubes to change the on-off state to control the motor to work.

[0055] It is easy to understand that since the three-phase comparison value adjusted to the safe value range can ensure that each power tube will not be turned off without being completely turned on, the corresponding SVPWM signal can be directly formed based on the adjusted three-phase comparison value to control each power tube to completely switch the on and off state, so as to output the corresponding current without narrow pulses to the motor, so that the motor can work normally.

[0056] The present application provides a motor control method, the steps of which include: based on a preset three-phase reference signal and a triangular carrier signal, obtaining a three-phase comparison value for controlling the on-off state of each power tube; when the minimum comparison value of the three-phase comparison value is less than a preset safety time, adjusting the three-phase comparison value to a safe value interval by the minimum comparison value; based on the three-phase comparison value adjusted to the safe value interval, controlling each of the power tubes to change the on-off state to control the motor to work. When the three-phase comparison value for controlling the on-off state of each switch tube is obtained by the preset three-phase reference signal and the triangular carrier signal, if the minimum comparison value of the three-phase comparison value is less than the preset safety time, the three-phase comparison value is adjusted by the minimum comparison value to be offset to a safe value interval where no narrow pulse is generated, so that when controlling each power tube to drive the motor to work, a voltage with DC ripple and narrow pulse is not output to the motor, thereby ensuring that the motor can work safely, efficiently and stably.

[0057] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 2 , when the minimum comparison value of the three-phase comparison value is less than the preset safety time, the step of adjusting the three-phase comparison value to a safe value range by the minimum comparison value includes:

[0058] Step S21, when the minimum comparison value is less than the preset safety time, obtaining the cumulative value of the switching period of the triangular carrier signal;

[0059] Step S22, determining an adjustment method of the three-phase comparison value based on the middle comparison value in the three-phase comparison value, the cumulative value of the switching cycle, and a preset dead time set by a user;

[0060] It should be noted that the cumulative value of the switching cycle of the triangular carrier signal refers to the accumulated value recording the operating cycle of the triangular carrier. In this embodiment, the adjustment method for processing the narrow pulse can be determined based on the comparison relationship between the intermediate comparison value of the three-phase comparison value, the cumulative value of the switching cycle and the preset dead time, that is, how to adjust the three-phase comparison value to eliminate the narrow pulses generated by each power tube.

[0061] Step S23: Based on the adjustment method, the three-phase comparison value is adjusted to within the safe value range through the minimum comparison value.

[0062] It is easy to understand that the adjustment method selected in the above situation can be used to adjust the three-phase comparison value as a whole to a safe value range with the minimum comparison value as the adjustment amount to eliminate the narrow pulses generated by each power tube.

[0063] Further, in this embodiment, the step of determining the adjustment method of the three-phase comparison value based on the middle comparison value in the three-phase comparison value, the switching cycle accumulated value and the preset dead time set by the user includes:

[0064] Step S221, when the intermediate comparison value is less than half of the sum of the switching cycle cumulative value and the preset dead time, determining that the adjustment mode is the first adjustment mode;

[0065] It is easy to understand that when the middle comparison value within the three-phase comparison value is less than half of the sum of the cumulative value of the switching cycle and the preset dead time, it means that the current three-phase comparison value is overall too small, and it is necessary to select the first adjustment method to increase the three-phase comparison value to a safe value range through the minimum comparison value, thereby ensuring that each power tube does not generate narrow pulses.

[0066] Step S222, when the intermediate comparison value is not less than half of the sum of the switching cycle accumulated value and the preset dead time, determining that the adjustment mode is the second adjustment mode.

[0067] It is easy to understand that when the middle comparison value within the three-phase comparison value is not less than half of the sum of the cumulative value of the switching cycle and the preset dead time, it means that the current three-phase comparison value is generally too large, and the second adjustment method needs to be selected to adjust the three-phase comparison value to a safe value range through the minimum comparison value, thereby ensuring that each power tube does not generate narrow pulses.

[0068] Further, in this embodiment, the step of adjusting the three-phase comparison value to within the safe value range by the minimum comparison value based on the adjustment mode includes:

[0069] Step S231, when the adjustment mode is the first adjustment mode, continuously increasing the three-phase comparison value by the minimum comparison value until the adjusted three-phase comparison value is within the safe value range;

[0070] It is easy to understand that when the three-phase comparison value is relatively small as a whole, the maximum comparison value, the middle comparison value and the minimum comparison value among the three-phase comparison values ​​can be continuously increased by the minimum comparison value at the same time until the three-phase comparison value is increased as a whole to within the safe value range.

[0071] Step S232, when the adjustment mode is the second adjustment mode, continuously reducing the three-phase comparison value by the minimum comparison value until the adjusted three-phase comparison value is within the safe value range.

[0072] It is easy to understand that when the three-phase comparison value is generally too large, the maximum comparison value, the middle comparison value and the minimum comparison value in the three-phase comparison value can be continuously reduced by the minimum comparison value at the same time until the three-phase comparison value is reduced to a safe value range as a whole.

[0073] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those of the above-mentioned first and second embodiments can refer to the above introduction, and will not be repeated later. Figure 3 After the step of obtaining the three-phase comparison value for controlling the on / off state of each power tube based on the preset three-phase reference signal and the triangular carrier signal, the method further includes:

[0074] Step S40, when the minimum comparison value is not less than the preset safety time, directly controlling the on-off state of each power tube to change through the obtained three-phase comparison value, so as to control the motor to work.

[0075] It should be noted that, in this embodiment, if the minimum comparison value among the three-phase comparison values ​​is not less than the preset safety time, it can be determined that the current three-phase comparison value will not cause each power tube to generate a narrow pulse. Therefore, the SVPWM signal corresponding to the currently obtained three-phase comparison value can be used to control each power tube to change its working state, so that the motor receives the three-phase current output by each power tube to work normally.

[0076] Further, in this embodiment, before the step of adjusting the three-phase comparison value to a safe value interval by the minimum comparison value when the minimum comparison value of the three-phase comparison value is less than the preset safety time, the method further includes:

[0077] Step S201 : determining a preset safety time based on a preset dead time set by a user and a safety compensation time obtained through test feedback.

[0078] It is easy to understand that in this embodiment, the preset dead time is the corresponding dead time set by the user to simulate the current process of controlling the motor through the SVPWM signal. During the preset dead time, each power tube is in the off state to reduce the overall power loss of the power module and reduce the electromagnetic interference generated. The safety compensation time is the dead time change part obtained by testing each power tube in the power module, which is used to compensate for the preset dead time obtained by simulation, so that the preset safety time composed of the sum of the two can be guaranteed to be no less than the maximum value of the actual change of the dead time in the system.

[0079] The present application also provides a motor control device. Figure 4 , the motor control device comprises:

[0080] A comparison value acquisition module 10 is used to acquire a three-phase comparison value for controlling the on / off state of each power tube based on a preset three-phase reference signal and a triangular carrier signal;

[0081] A comparison value adjustment module 20, configured to adjust the three-phase comparison value to a safe value interval by using the minimum comparison value when the minimum comparison value of the three-phase comparison value is less than a preset safety time;

[0082] The comparison value application module 30 is used to control each of the power tubes to change the on-off state based on the three-phase comparison value adjusted to the safe value interval, so as to control the motor to work.

[0083] The motor control device provided in the embodiment of the present application adopts the motor control method in the above embodiment, which can solve the technical problem of narrow pulses caused by too large or too small three-phase comparison values ​​when the power module drives the motor to work through the SVPWM signal. Compared with the prior art, the beneficial effects of the motor control device provided in the embodiment of the present application are the same as the beneficial effects of the motor control method provided in the above embodiment, and other technical features in the motor control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0084] The present application provides a motor control device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the motor control method in the above-mentioned embodiment one.

[0085] Reference below Figure 5 , which shows a schematic diagram of the structure of a motor control device suitable for implementing the embodiment of the present application. The motor control device in the embodiment of the present application may include but is not limited to a fixed terminal such as a vehicle-mounted terminal. Figure 5 The motor control device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0086] like Figure 5As shown, the motor control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the motor control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the motor control device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a motor control device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0087] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0088] The motor control device provided by the present application adopts the motor control method in the above embodiment, which can solve the technical problem of narrow pulses caused by too large or too small three-phase comparison values ​​when the power module drives the motor to work through the SVPWM signal. Compared with the prior art, the beneficial effects of the motor control device provided by the present application are the same as the beneficial effects of the motor control method provided by the above embodiment, and the other technical features in the motor control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0089] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0090] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0091] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the motor control method in the above-mentioned embodiment.

[0092] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0093] The computer-readable storage medium may be included in the motor control device; or may exist independently without being assembled into the motor control device.

[0094] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the motor control device, the motor control device: obtains a three-phase comparison value for controlling the on-off state of each power tube based on a preset three-phase reference signal and a triangular carrier signal; when the minimum comparison value of the three-phase comparison value is less than a preset safety time, adjusts the three-phase comparison value to a safe value range through the minimum comparison value; based on the three-phase comparison value adjusted to the safe value range, controls each of the power tubes to change the on-off state to control the motor to work.

[0095] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0096] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0097] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0098] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned motor control method, and can solve the technical problems of motor control. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the motor control method provided in the above-mentioned embodiment, and will not be repeated here.

[0099] The present application also provides a computer product, which includes a computer program. When the computer program is executed by a processor, the steps of the motor control method as described above are implemented.

[0100] The computer program product provided by the present application can solve the technical problem of narrow pulses caused by excessive or too small three-phase comparison values ​​when the power module drives the motor to work through the SVPWM signal. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the motor control method provided by the above embodiment, which will not be repeated here.

[0101] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A motor control method, characterized in that: The steps of the motor control method include: Based on a preset three-phase reference signal and a triangular carrier signal, a three-phase comparison value for controlling the on / off state of each power tube is obtained; When the minimum comparison value of the three-phase comparison values ​​is less than the preset safety time, the three-phase comparison values ​​are adjusted to a safe value range by the minimum comparison value; Based on the three-phase comparison value adjusted to within the safe value range, each of the power tubes is controlled to change the on-off state to control the motor to work.

2. The motor control method according to claim 1, characterized in that: When the minimum comparison value of the three-phase comparison values ​​is less than the preset safety time, the step of adjusting the three-phase comparison values ​​to a safe value range by the minimum comparison value includes: When the minimum comparison value is less than the preset safety time, acquiring a cumulative value of the switching period of the triangular carrier signal; Determining an adjustment method of the three-phase comparison value based on an intermediate comparison value in the three-phase comparison value, the cumulative value of the switching cycle, and a preset dead time set by a user; Based on the adjustment method, the three-phase comparison value is adjusted to within the safe value range through the minimum comparison value.

3. The motor control method according to claim 2, characterized in that: The step of determining the adjustment method of the three-phase comparison value based on the middle comparison value in the three-phase comparison value, the switching cycle accumulated value and the preset dead time set by the user comprises: When the intermediate comparison value is less than half of the sum of the switching cycle accumulated value and the preset dead time, determining that the regulation mode is the first regulation mode; When the intermediate comparison value is not less than half of the sum of the switching cycle accumulated value and the preset dead time, it is determined that the regulation mode is the second regulation mode.

4. The motor control method according to claim 3, characterized in that: The step of adjusting the three-phase comparison value to the safe value range through the minimum comparison value based on the adjustment mode includes: When the adjustment mode is the first adjustment mode, continuously increasing the three-phase comparison value by the minimum comparison value until the adjusted three-phase comparison value is within the safe value range; When the adjustment mode is the second adjustment mode, the three-phase comparison value is continuously reduced by the minimum comparison value until the adjusted three-phase comparison value is within the safe value range.

5. The motor control method according to claim 1, characterized in that: After the step of obtaining the three-phase comparison value for controlling the on / off state of each power tube based on the preset three-phase reference signal and the triangular carrier signal, the method further includes: When the minimum comparison value is not less than the preset safety time, the on-off state of each power tube is directly controlled by the obtained three-phase comparison value to control the motor to work.

6. The motor control method according to claim 1, characterized in that: Before the step of adjusting the three-phase comparison value to a safe value range by the minimum comparison value when the minimum comparison value of the three-phase comparison value is less than the preset safety time, the step further includes: The preset safety time is determined based on the preset dead time set by the user and the safety compensation time obtained through test feedback.

7. A motor control device, characterized in that: The motor control device comprises: A comparison value acquisition module, used to acquire a three-phase comparison value for controlling the on / off state of each power tube based on a preset three-phase reference signal and a triangular carrier signal; A comparison value adjustment module, configured to adjust the three-phase comparison value to a safe value interval by using the minimum comparison value when the minimum comparison value of the three-phase comparison value is less than a preset safety time; The comparison value application module is used to control each of the power tubes to change the on-off state based on the three-phase comparison value adjusted to the safe value interval, so as to control the motor to work.

8. A motor control device, characterized in that: The motor control device comprises: a memory, a processor, and a motor control program stored in the memory and executable on the processor, wherein the motor control program is configured to implement the steps of the motor control method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a motor control program is stored. When the motor control program is executed by a processor, the steps of the motor control method according to any one of claims 1 to 6 are implemented.

10. A computer product, characterized in that: The computer product comprises a computer program, and when the computer program is executed by a processor, the steps of the motor control method according to any one of claims 1 to 6 are implemented.