Intelligent control method and system for frequency speed regulation and storage medium
By real-time detection and adjustment of the speed difference and acceleration information of the brushless motor, the complexity and stability of the motor speed control are solved, and higher speed stability and user experience are achieved.
Patent Information
- Application Number
- CN202411304674.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-12-13
AI Technical Summary
Brushless motors have complexity and speed deviation problems in speed control, resulting in unstable motor speed and affecting user experience.
By real-time detection of the difference between the actual motor speed and the target speed, calculate the acceleration information, and adjust the frequency of the semiconductor switching device to achieve intelligent control of the motor speed and improve speed stability.
It effectively reduces the complexity of motor speed control, improves the stability and user experience of motor speed, and extends the service life of the motor.
Smart Images

Figure CN119134975A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of motor control, and more specifically, to an intelligent control method, system and storage medium for frequency speed regulation. Background Art
[0002] Brushless motors are a new type of motor technology compared to traditional brushed motors. They have many significant advantages such as high reliability, low noise, and long life. They are widely used in various types of automation equipment, such as logistics handling, transmission equipment, food machinery, packaging machinery, polishing and grinding, medical equipment, fitness equipment and many other fields.
[0003] However, since brushless motors use semiconductor switching devices to replace traditional contact commutators and brushes to drive motors, it is necessary to control the running speed of brushless motors through specific semiconductor switching signals, which is somewhat complex. In addition, since heat generated during the operation of brushless motors affects the electrical characteristics of motor accessories, it is easy for motor speed deviation to occur. Therefore, an intelligent control technology for motor speed is urgently needed. Summary of the invention
[0004] In view of the above problems, the purpose of the present invention is to provide an intelligent control method, system and storage medium for frequency speed regulation, which can detect the actual speed and target speed of the motor in real time, and calculate the speed difference to determine whether speed control is needed; when speed control is needed, the acceleration information is calculated to adjust the frequency of the semiconductor switch in real time to achieve the purpose of intelligent control of the motor speed; improve the stability of the motor speed, reduce the complexity of motor speed control, and improve the user experience.
[0005] The first aspect of the present invention provides an intelligent control method for frequency speed regulation, the method comprising:
[0006] Obtaining first speed information;
[0007] Calculating a speed difference between the first speed information and the target speed information to determine first speed difference information;
[0008] Determining whether the first speed difference information exceeds a preset speed difference threshold;
[0009] If yes, obtaining first acceleration information according to the first speed information and the first speed difference information;
[0010] Acquiring first frequency information;
[0011] Obtaining second frequency information according to the first frequency information and the first acceleration information;
[0012] Determine whether the second frequency information is within a first maximum range;
[0013] If yes, setting the first frequency information according to the second frequency information;
[0014] If not, the first frequency information is set according to the first maximum range.
[0015] This plan also includes:
[0016] Acquiring first voltage information;
[0017] When the first voltage information jumps from the first level to the second level, start timing, record the time information of the next time the first voltage information jumps from the first level to the second level, and obtain first time information;
[0018] The first speed information is obtained according to the first time information and a preset rotation speed calculation formula.
[0019] In this solution, the second frequency information is obtained according to the first frequency information and the first acceleration information, specifically:
[0020] Obtaining a first frequency adjustment relationship;
[0021] Obtaining a first frequency adjustment amount according to the first adjustment relationship and the first acceleration information;
[0022] Second frequency information is obtained according to the first frequency information and the first frequency adjustment amount.
[0023] This plan also includes:
[0024] Acquiring first electrical parameter information;
[0025] Determining whether first motor model information exists according to the first electrical parameter information;
[0026] If yes, obtaining first operation configuration parameter information according to the first motor model information;
[0027] If not, first operation configuration parameter information is obtained according to the first electrical parameter information.
[0028] This plan also includes:
[0029] Recording the first speed information according to a preset time period;
[0030] Calculate the speed difference between the current first speed information and the first speed information recorded in a previous time period to obtain second speed difference information;
[0031] Performing data processing on the second speed difference information according to a preset smoothing and denoising method to obtain third speed difference information;
[0032] Determining whether the third speed difference information exceeds a preset mutation threshold;
[0033] If so, the first maximum value range is adjusted downward.
[0034] This plan also includes:
[0035] Acquiring first current information;
[0036] Determining whether the first current information exceeds the overcurrent protection threshold;
[0037] If so, the first frequency information is set according to the first maximum value range, or the first frequency information is set to zero.
[0038] A second aspect of the present invention provides an intelligent control system for frequency speed regulation, including an intelligent control method program for frequency speed regulation, wherein the intelligent control method program for frequency speed regulation implements the following steps when executed by the processor:
[0039] Obtaining first speed information;
[0040] Calculating a speed difference between the first speed information and the target speed information to determine first speed difference information;
[0041] Determining whether the first speed difference information exceeds a preset speed difference threshold;
[0042] If yes, obtaining first acceleration information according to the first speed information and the first speed difference information;
[0043] Acquiring first frequency information;
[0044] Obtaining second frequency information according to the first frequency information and the first acceleration information;
[0045] Determine whether the second frequency information is within a first maximum range;
[0046] If yes, setting the first frequency information according to the second frequency information;
[0047] If not, the first frequency information is set according to the first maximum range.
[0048] In this solution, the second frequency information is obtained according to the first frequency information and the first acceleration information, specifically:
[0049] Obtaining a first frequency adjustment relationship;
[0050] Obtaining a first frequency adjustment amount according to the first adjustment relationship and the first acceleration information;
[0051] Second frequency information is obtained according to the first frequency information and the first frequency adjustment amount.
[0052] Acquiring first voltage information;
[0053] When the first voltage information jumps from the first level to the second level, start timing, record the time information of the next time the first voltage information jumps from the first level to the second level, and obtain first time information;
[0054] The first speed information is obtained according to the first time information and a preset rotation speed calculation formula.
[0055] This plan also includes:
[0056] A third aspect of the present invention provides a computer-readable storage medium, which includes a program for an intelligent control method for frequency speed regulation. When the program for the intelligent control method for frequency speed regulation is executed by a processor, the steps of the intelligent control method for frequency speed regulation as described in any one of the above items are implemented.
[0057] The present invention provides an intelligent control method, system and storage medium for frequency speed regulation. First, first speed difference information is determined according to the speed difference between first speed information and target speed information; secondly, first acceleration information is obtained according to the first speed difference information; then, second frequency information is obtained according to the first frequency information and the first acceleration information; finally, the first frequency information is adjusted and controlled according to the second frequency information and the first maximum value range; thereby achieving the purpose of intelligently controlling the motor speed, so as to improve the stability of the motor speed and enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and should not be regarded as limiting the scope.
[0059] Figure 1 A flow chart of an intelligent control method for frequency speed regulation of the present invention is shown;
[0060] Figure 2 A flowchart of obtaining first speed information provided by an embodiment of the present invention is shown;
[0061] Figure 3 A flowchart of obtaining the second frequency information provided by an embodiment of the present invention is shown;
[0062] Figure 4 A block diagram of an intelligent control system for frequency speed regulation according to the present invention is shown. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the present invention have the same meanings as commonly understood by those of ordinary skill in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having meanings consistent with their meanings in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless the embodiments of the present invention are clearly defined in this way.
[0065] The words "first", "second" and similar words used in the embodiments of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "one", "an" or "the" and similar words do not indicate a quantity limitation, but indicate the existence of at least one. Similarly, words such as "include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The steps before or after the method of the embodiment of the present invention are not necessarily carried out in order. On the contrary, various steps can be processed in reverse order or simultaneously. At the same time, other operations can also be added to these processes, or a step or several steps can be removed from these processes.
[0066] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0067] Figure 1 A flow chart of an intelligent control method for frequency speed regulation of the present invention is shown.
[0068] like Figure 1 As shown, the present invention discloses an intelligent control method for frequency speed regulation, the method comprising:
[0069] S102, obtaining first speed information;
[0070] S104, calculating a speed difference between the first speed information and the target speed information to determine first speed difference information;
[0071] S106, determining whether the first speed difference information exceeds a preset speed difference threshold;
[0072] S108, if yes, obtaining first acceleration information according to the first speed information and the first speed difference information;
[0073] S110, obtaining first frequency information;
[0074] S112, obtaining second frequency information according to the first frequency information and the first acceleration information;
[0075] S114, determining whether the second frequency information is within a first maximum value range;
[0076] S116, if yes, setting the first frequency information according to the second frequency information;
[0077] S118: If not, setting the first frequency information according to the first maximum range.
[0078] It should be noted that the first speed information is the real-time speed value of the motor rotation; the first speed difference information is the difference between the motor speed and the target speed; the first acceleration information is the speed adjustment amount within the preset speed regulation time period; the first frequency information is the output frequency value of the motor speed control in the frequency speed regulation mode; the second frequency information is the calculated frequency value used to adjust the first frequency information. First, the speed sensor of the brushless motor is used to measure the current rotation speed of the motor, that is, the first speed information. The speed sensor measurement includes but is not limited to the photoelectric encoder, Hall sensor and other devices used to measure the rotation speed of the motor shaft. Calculate the speed difference between the first speed information and the target speed of the motor set by the user, that is, the first speed difference information; by judging whether the first speed difference information exceeds the preset speed difference threshold, if it exceeds, it means that the current speed of the motor has deviated from the original speed and speed adjustment is required. Secondly, when speed adjustment is required, the first acceleration information is determined according to the current speed of the motor and the speed difference with the target speed, as a parameter for adjusting the motor speed within the preset speed regulation period. Then, the first frequency information is obtained, wherein the first frequency information is the frequency of the state switching of the semiconductor switch device of the motor, that is, the output frequency value of the motor speed control in the frequency speed regulation mode; the first frequency information is the setting parameter for directly adjusting the motor speed. The second frequency information is calculated according to the current frequency setting parameter of the motor and the first acceleration information, which is used as the parameter basis for adjusting the first frequency information. Finally, it is determined whether the second frequency information is within the first maximum value range; wherein the first maximum value range is the upper limit and lower limit of the frequency adjustment set by the motor, and the first maximum value range can avoid the motor speed being lower than or exceeding the normal operating range due to the frequency adjustment being too high or too low, and the effect of extending the service life of the motor is achieved by setting the first maximum value range. When the second frequency information is within the first maximum value range, the first frequency information is set according to the second frequency information; when the second frequency information exceeds the first maximum value range, the first frequency information is set according to the first maximum value range; thereby achieving the effect of intelligently controlling the motor speed through frequency adjustment.
[0079] Figure 2 A flow chart for obtaining first speed information provided by an embodiment of the present invention is shown.
[0080] According to an embodiment of the present invention, Figure 2 As shown, it also includes:
[0081] S202, obtaining first voltage information;
[0082] S204, starting timing when the first voltage information jumps from the first level to the second level, recording time information of the next time the first voltage information jumps from the first level to the second level, and obtaining first time information;
[0083] S206: Obtain first speed information according to the first time information and a preset speed calculation formula.
[0084] It should be noted that the first voltage information is the output voltage value of the speed sensor; the first level and the second level are voltage values corresponding to two digital logic states, indicating logic 0 and logic 1; the first time information is the time between the first voltage information jumping from the first level to the second level twice. As an implementation method, when the speed sensor of the motor is a photoelectric encoder or a Hall sensor, the motor speed is calculated by measuring the time period of the level change of the first voltage information. For example, when the photoelectric encoder is used as a speed sensor, it can be known from the grid of the sensor encoder wheel that the grid of the encoder wheel will change the level value of the first voltage information every time the motor rotates 10 degrees, 20 degrees, etc. Therefore, it is only necessary to collect the timing when the first voltage information jumps from the first level to the second level, and record the time information of the next time the first voltage information jumps from the first level to the second level, that is, by collecting the first time information, the motor speed can be calculated. In addition, the first level and the second level are different digital logic states. When the first level is high, that is, logic 1, the second level is low, that is, logic 0; when the first level is low, that is, logic 0, the second level is high, that is, logic 1.
[0085] Figure 3 A flow chart of obtaining the second frequency information provided by an embodiment of the present invention is shown.
[0086] According to an embodiment of the present invention, Figure 3 As shown, the second frequency information is obtained according to the first frequency information and the first acceleration information, specifically:
[0087] S302, obtaining a first frequency adjustment relationship;
[0088] S304, obtaining a first frequency adjustment amount according to the first adjustment relationship and the first acceleration information;
[0089] S306: Obtain second frequency information according to the first frequency information and the first frequency adjustment amount.
[0090] It should be noted that the first frequency adjustment relationship is a relationship between the frequency adjustment amount and the speed adjustment amount obtained according to the electrical parameters of the connected motor; the first frequency adjustment amount is the adjustment value of the first frequency information, which is used to obtain the second frequency information. The electrical parameters of the motor have been pre-stored in the memory, and the processor obtains the electrical parameters of the motor to obtain the relationship between the frequency adjustment amount and the speed adjustment amount; wherein the frequency adjustment amount is positively correlated with the speed adjustment amount. The frequency adjustment amount, that is, the first frequency adjustment amount, is obtained according to the relationship, and the second frequency information is obtained in combination with the first frequency information. The second frequency information is the theoretical calculation value of the motor frequency parameter, which is used to adjust the frequency of controlling the motor speed, that is, the first frequency information.
[0091] According to an embodiment of the present invention, it also includes:
[0092] Acquiring first electrical parameter information;
[0093] Determining whether first motor model information exists according to the first electrical parameter information;
[0094] If yes, obtaining first operation configuration parameter information according to the first motor model information;
[0095] If not, first operation configuration parameter information is obtained according to the first electrical parameter information.
[0096] It should be noted that the first electrical parameter information is the electrical parameters of the connected motor, including at least the motor resistance value, coil inductance value, number of electrodes, and Hall polarity; the first motor model information is the stored and recorded motor model, which is used to query the first operation configuration parameter information; the first operation configuration parameter information is the configuration parameter during the operation of the motor, including at least the first maximum value range, the first adjustment relationship, the first starting frequency, and the overcurrent protection threshold. The first electrical parameter information is the physical information of the connected motor, and information such as resistance value, inductance value, polarity, etc. can be obtained through conventional measurement methods. After obtaining the first electrical parameter information of the motor, the memory is searched and the first motor model information corresponding thereto is determined by matching parameters; if the first motor model information exists, the operation configuration parameters corresponding to the first motor model information are searched for, which are used to set the first operation configuration parameter information; if the first motor model information does not exist, the first operation configuration parameter information is set according to the first electrical parameter information of the motor. By configuring the first operation configuration parameter information, the motor is operated in a corresponding safe electrical environment to extend the service life of the motor.
[0097] According to an embodiment of the present invention, it also includes:
[0098] Recording the first speed information according to a preset time period;
[0099] Calculate the speed difference between the current first speed information and the first speed information recorded in a previous time period to obtain second speed difference information;
[0100] Performing data processing on the second speed difference information according to a preset smoothing and denoising method to obtain third speed difference information;
[0101] Determining whether the third speed difference information exceeds a preset mutation threshold;
[0102] If so, the first maximum value range is adjusted downward.
[0103] It should be noted that the present invention is provided with a sudden change detection of the running speed, specifically, within a predetermined time period, for example, every interval of 100ms, 200ms, 500ms, etc., to detect the rotation speed of a round of motors, that is, the first speed information; calculate the speed difference between the first speed information detected in the current time period and the first speed information of the previous time period, that is, the second speed difference information. The second speed difference information represents the initial value of the motor speed change within the preset time, and then through the preset smoothing and denoising algorithm, the detection error caused by the acquisition process is reduced to obtain the third speed difference information, that is, the change value of the motor speed after filtering the error. When the change value of the motor speed exceeds the preset sudden change threshold, it means that the speed suddenly changes, and the motor has an abnormal operation, including the set speed is too high, the motor cannot work at the set speed, and there is a problem of motor out of step. At this time, the processor will lower the upper limit of the first maximum value range, which plays a role in gradually reducing the upper limit of the motor running speed, solving the problem of motor out of step due to excessive speed, and improving the stability of motor operation.
[0104] According to an embodiment of the present invention, it also includes:
[0105] Acquiring first current information;
[0106] Determining whether the first current information exceeds the overcurrent protection threshold;
[0107] If so, the first frequency information is set according to the first maximum value range, or the first frequency information is set to zero.
[0108] It should be noted that the first current information is the current value when the motor is running. When the current value is too high, the motor may be heated or even burned. Therefore, according to the overcurrent protection threshold in the first operation configuration parameter information, when the first current information is higher than the overcurrent protection threshold, it means that the motor is running abnormally and needs to be shut down for cooling; at this time, the first frequency information is set to zero to achieve the purpose of speed reduction and shutdown.
[0109] It is worth mentioning that it also includes:
[0110] RS485 bus;
[0111] Send motor operation status instructions;
[0112] Receiving a configuration instruction for a first operating configuration parameter of a first motor model;
[0113] Send a configuration instruction of the first running configuration parameter and a running state control instruction.
[0114] It should be noted that, in order to comply with the field of industrial automation, the serial communication bus provided in the present invention is an RS485 bus, which has the characteristics of strong anti-interference ability, long transmission distance and fast transmission speed. The motor operation status instruction is sent to the external device via the RS485 bus to reflect the real-time state of the motor operation. The configuration instruction sent by the external device is received via the RS485 bus, including the first operation configuration parameter of the first motor model, which is used for storage and recording.
[0115] It is worth mentioning that it also includes:
[0116] When the drive motor switches from a stopped state to a running state;
[0117] Setting the first frequency information according to the first starting frequency;
[0118] The first acceleration information is set according to a preset acceleration start mode.
[0119] It should be noted that the present invention sets a slow start mode, which increases the torque at a low speed to make the motor start to rotate from stop, so as to avoid the problem of failure to start due to excessive speed. In the slow start mode, the first frequency information gradually accelerates from the first starting frequency according to the first acceleration information of the slow start mode until the target speed is reached.
[0120] It is worth mentioning that it also includes:
[0121] When the drive motor switches from the running state to the stopped state;
[0122] The first acceleration information is set according to a preset slow stop mode.
[0123] It should be noted that the present invention sets a deceleration mode. When the motor switches from a running state to a stopped state, the present invention gradually adjusts the first frequency information downward according to the first acceleration information of the deceleration mode until the target speed is zero. The deceleration mode avoids the phenomenon that the motor continues to rotate due to inertia after power is directly cut off, and the target speed is reached faster and more steadily by controlling the electronic control.
[0124] Figure 4 A block diagram of an intelligent control system for frequency speed regulation according to the present invention is shown.
[0125] like Figure 4 As shown, the present invention discloses an intelligent control system 4 for frequency speed regulation, comprising a memory 41 and a processor 42, wherein the memory comprises an intelligent control method program for frequency speed regulation, and when the intelligent control method program for frequency speed regulation is executed by the processor, the following steps are implemented:
[0126] Obtaining first speed information;
[0127] Calculating a speed difference between the first speed information and the target speed information to determine first speed difference information;
[0128] Determining whether the first speed difference information exceeds a preset speed difference threshold;
[0129] If yes, obtaining first acceleration information according to the first speed information and the first speed difference information;
[0130] Acquiring first frequency information;
[0131] Obtaining second frequency information according to the first frequency information and the first acceleration information;
[0132] Determine whether the second frequency information is within a first maximum range;
[0133] If yes, setting the first frequency information according to the second frequency information;
[0134] If not, the first frequency information is set according to the first maximum range.
[0135] It should be noted that the first speed information is the real-time speed value of the motor rotation; the first speed difference information is the difference between the motor speed and the target speed; the first acceleration information is the speed adjustment amount within the preset speed regulation time period; the first frequency information is the output frequency value of the motor speed control in the frequency speed regulation mode; the second frequency information is the calculated frequency value used to adjust the first frequency information. First, the speed sensor of the brushless motor is used to measure the current rotation speed of the motor, that is, the first speed information. The speed sensor measurement includes but is not limited to the photoelectric encoder, Hall sensor and other devices used to measure the rotation speed of the motor shaft. Calculate the speed difference between the first speed information and the target speed of the motor set by the user, that is, the first speed difference information; by judging whether the first speed difference information exceeds the preset speed difference threshold, if it exceeds, it means that the current speed of the motor has deviated from the original speed and speed adjustment is required. Secondly, when speed adjustment is required, the first acceleration information is determined according to the current speed of the motor and the speed difference with the target speed, as a parameter for adjusting the motor speed within the preset speed regulation period. Then, the first frequency information is obtained, wherein the first frequency information is the frequency of the state switching of the semiconductor switch device of the motor, that is, the output frequency value of the motor speed control in the frequency speed regulation mode; the first frequency information is the setting parameter for directly adjusting the motor speed. The second frequency information is calculated according to the current frequency setting parameter of the motor and the first acceleration information, which is used as the parameter basis for adjusting the first frequency information. Finally, it is determined whether the second frequency information is within the first maximum value range; wherein the first maximum value range is the upper limit and lower limit of the frequency adjustment set by the motor, and the first maximum value range can avoid the motor speed being lower than or exceeding the normal operating range due to the frequency adjustment being too high or too low, and the effect of extending the service life of the motor is achieved by setting the first maximum value range. When the second frequency information is within the first maximum value range, the first frequency information is set according to the second frequency information; when the second frequency information exceeds the first maximum value range, the first frequency information is set according to the first maximum value range; thereby achieving the effect of intelligently controlling the motor speed through frequency adjustment.
[0136] According to an embodiment of the present invention, it also includes:
[0137] Acquiring first voltage information;
[0138] When the first voltage information jumps from the first level to the second level, start timing, record the time information of the next time the first voltage information jumps from the first level to the second level, and obtain first time information;
[0139] The first speed information is obtained according to the first time information and a preset rotation speed calculation formula.
[0140] It should be noted that the first voltage information is the output voltage value of the speed sensor; the first level and the second level are voltage values corresponding to two digital logic states, indicating logic 0 and logic 1; the first time information is the time between the first voltage information jumping from the first level to the second level twice. As an implementation method, when the speed sensor of the motor is a photoelectric encoder or a Hall sensor, the motor speed is calculated by measuring the time period of the level change of the first voltage information. For example, when the photoelectric encoder is used as a speed sensor, it can be known from the grid of the sensor encoder wheel that the grid of the encoder wheel will change the level value of the first voltage information every time the motor rotates 10 degrees, 20 degrees, etc. Therefore, it is only necessary to collect the timing when the first voltage information jumps from the first level to the second level, and record the time information of the next time the first voltage information jumps from the first level to the second level, that is, by collecting the first time information, the motor speed can be calculated. In addition, the first level and the second level are different digital logic states. When the first level is high, that is, logic 1, the second level is low, that is, logic 0; when the first level is low, that is, logic 0, the second level is high, that is, logic 1.
[0141] According to an embodiment of the present invention, obtaining the second frequency information according to the first frequency information and the first acceleration information is specifically:
[0142] Obtaining a first frequency adjustment relationship;
[0143] Obtaining a first frequency adjustment amount according to the first adjustment relationship and the first acceleration information;
[0144] Second frequency information is obtained according to the first frequency information and the first frequency adjustment amount.
[0145] It should be noted that the first frequency adjustment relationship is a relationship between the frequency adjustment amount and the speed adjustment amount obtained according to the electrical parameters of the connected motor; the first frequency adjustment amount is the adjustment value of the first frequency information, which is used to obtain the second frequency information. The electrical parameters of the motor have been pre-stored in the memory, and the processor obtains the electrical parameters of the motor to obtain the relationship between the frequency adjustment amount and the speed adjustment amount; wherein the frequency adjustment amount is positively correlated with the speed adjustment amount. The frequency adjustment amount, that is, the first frequency adjustment amount, is obtained according to the relationship, and the second frequency information is obtained in combination with the first frequency information. The second frequency information is the theoretical calculation value of the motor frequency parameter, which is used to adjust the frequency of controlling the motor speed, that is, the first frequency information.
[0146] According to an embodiment of the present invention, it also includes:
[0147] Acquiring first electrical parameter information;
[0148] Determining whether first motor model information exists according to the first electrical parameter information;
[0149] If yes, obtaining first operation configuration parameter information according to the first motor model information;
[0150] If not, first operation configuration parameter information is obtained according to the first electrical parameter information.
[0151] It should be noted that the first electrical parameter information is the electrical parameters of the connected motor, including at least the motor resistance value, coil inductance value, number of electrodes, and Hall polarity; the first motor model information is the stored and recorded motor model, which is used to query the first operation configuration parameter information; the first operation configuration parameter information is the configuration parameter during the operation of the motor, including at least the first maximum value range, the first adjustment relationship, the first starting frequency, and the overcurrent protection threshold. The first electrical parameter information is the physical information of the connected motor, and information such as resistance value, inductance value, polarity, etc. can be obtained through conventional measurement methods. After obtaining the first electrical parameter information of the motor, the memory is searched and the first motor model information corresponding thereto is determined by matching parameters; if the first motor model information exists, the operation configuration parameters corresponding to the first motor model information are searched for, which are used to set the first operation configuration parameter information; if the first motor model information does not exist, the first operation configuration parameter information is set according to the first electrical parameter information of the motor. By configuring the first operation configuration parameter information, the motor is operated in a corresponding safe electrical environment to extend the service life of the motor.
[0152] According to an embodiment of the present invention, it also includes:
[0153] Recording the first speed information according to a preset time period;
[0154] Calculate the speed difference between the current first speed information and the first speed information recorded in a previous time period to obtain second speed difference information;
[0155] Performing data processing on the second speed difference information according to a preset smoothing and denoising method to obtain third speed difference information;
[0156] Determining whether the third speed difference information exceeds a preset mutation threshold;
[0157] If so, the first maximum value range is adjusted downward.
[0158] It should be noted that the present invention is provided with a sudden change detection of the running speed, specifically, within a predetermined time period, for example, every interval of 100ms, 200ms, 500ms, etc., to detect the rotation speed of a round of motors, that is, the first speed information; calculate the speed difference between the first speed information detected in the current time period and the first speed information of the previous time period, that is, the second speed difference information. The second speed difference information represents the initial value of the motor speed change within the preset time, and then through the preset smoothing and denoising algorithm, the detection error caused by the acquisition process is reduced to obtain the third speed difference information, that is, the change value of the motor speed after filtering the error. When the change value of the motor speed exceeds the preset sudden change threshold, it means that the speed suddenly changes, and the motor has an abnormal operation, including the set speed is too high, the motor cannot work at the set speed, and there is a problem of motor out of step. At this time, the processor will lower the upper limit of the first maximum value range, which plays a role in gradually reducing the upper limit of the motor running speed, solving the problem of motor out of step due to excessive speed, and improving the stability of motor operation.
[0159] According to an embodiment of the present invention, it also includes:
[0160] Acquiring first current information;
[0161] Determining whether the first current information exceeds the overcurrent protection threshold;
[0162] If so, the first frequency information is set according to the first maximum value range, or the first frequency information is set to zero.
[0163] It should be noted that the first current information is the current value when the motor is running. When the current value is too high, the motor may be heated or even burned. Therefore, according to the overcurrent protection threshold in the first operation configuration parameter information, when the first current information is higher than the overcurrent protection threshold, it means that the motor is running abnormally and needs to be shut down for cooling; at this time, the first frequency information is set to zero to achieve the purpose of speed reduction and shutdown.
[0164] It is worth mentioning that it also includes:
[0165] RS485 bus;
[0166] Send motor operation status instructions;
[0167] Receiving a configuration instruction for a first operating configuration parameter of a first motor model;
[0168] Send a configuration instruction of the first running configuration parameter and a running state control instruction.
[0169] It should be noted that, in order to comply with the field of industrial automation, the serial communication bus provided in the present invention is an RS485 bus, which has the characteristics of strong anti-interference ability, long transmission distance and fast transmission speed. The motor operation status instruction is sent to the external device via the RS485 bus to reflect the real-time state of the motor operation. The configuration instruction sent by the external device is received via the RS485 bus, including the first operation configuration parameter of the first motor model, which is used for storage and recording.
[0170] It is worth mentioning that it also includes:
[0171] When the drive motor switches from a stopped state to a running state;
[0172] Setting the first frequency information according to the first starting frequency;
[0173] The first acceleration information is set according to a preset acceleration start mode.
[0174] It should be noted that the present invention sets a slow start mode, which increases the torque at a low speed to make the motor start to rotate from stop, so as to avoid the problem of failure to start due to excessive speed. In the slow start mode, the first frequency information gradually accelerates from the first starting frequency according to the first acceleration information of the slow start mode until the target speed is reached.
[0175] It is worth mentioning that it also includes:
[0176] When the drive motor switches from the running state to the stopped state;
[0177] The first acceleration information is set according to a preset slow stop mode.
[0178] It should be noted that the present invention sets a deceleration mode. When the motor switches from a running state to a stopped state, the present invention gradually adjusts the first frequency information downward according to the first acceleration information of the deceleration mode until the target speed is zero. The deceleration mode avoids the phenomenon that the motor continues to rotate due to inertia after power is directly cut off, and the target speed is reached faster and more steadily by controlling the electronic control.
[0179] A third aspect of the present invention provides a computer-readable storage medium, which includes a program for an intelligent control method for frequency speed regulation. When the program for the intelligent control method for frequency speed regulation is executed by a processor, the steps of the intelligent control method for frequency speed regulation as described in any one of the above items are implemented.
[0180] The present invention provides an intelligent control method, system and storage medium for frequency speed regulation. First, first speed difference information is determined according to the speed difference between first speed information and target speed information; secondly, first acceleration information is obtained according to the first speed difference information; then, second frequency information is obtained according to the first frequency information and the first acceleration information; finally, the first frequency information is adjusted and controlled according to the second frequency information and the first maximum value range; thereby achieving the purpose of intelligently controlling the motor speed, so as to improve the stability of the motor speed and enhance the user experience.
[0181] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0182] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An intelligent control method for frequency speed regulation, It is characterized in that The method comprises: Obtaining first speed information; Calculating a speed difference between the first speed information and the target speed information to determine first speed difference information; Determining whether the first speed difference information exceeds a preset speed difference threshold; If yes, obtaining first acceleration information according to the first speed information and the first speed difference information; Acquiring first frequency information; Obtaining second frequency information according to the first frequency information and the first acceleration information; Determine whether the second frequency information is within a first maximum range; If yes, setting the first frequency information according to the second frequency information; If not, setting the first frequency information according to the first maximum value range; The first speed information is the real-time speed value of the motor rotation; The first speed difference information is the difference between the motor speed and the target speed; The first acceleration information is a speed adjustment amount within a preset speed adjustment time period; The first frequency information is an output frequency value for controlling the motor speed in a frequency speed regulation mode; The second frequency information is a calculated frequency value used to adjust the first frequency information.
2. According to the intelligent control method of frequency speed regulation described in claim 1, It is characterized in that Also includes: Acquiring first voltage information; When the first voltage information jumps from the first level to the second level, start timing, record the time information of the next time the first voltage information jumps from the first level to the second level, and obtain first time information; Obtaining first speed information according to the first time information and a preset speed calculation formula; The first voltage information is the output voltage value of the speed sensor; The first level and the second level are voltage values corresponding to two digital logic states, representing logic 0 and logic 1; The first time information is the time between two occurrences of the first voltage information jumping from the first level to the second level.
3. According to the intelligent control method of frequency speed regulation described in claim 1, It is characterized in that The obtaining of the second frequency information according to the first frequency information and the first acceleration information is specifically: Obtaining a first frequency adjustment relationship; Obtaining a first frequency adjustment amount according to the first adjustment relationship and the first acceleration information; Obtaining second frequency information according to the first frequency information and the first frequency adjustment amount; The first frequency adjustment relationship is a relationship between a frequency adjustment amount and a speed adjustment amount obtained according to electrical parameters of the connected motor; The first frequency adjustment amount is an adjustment value of the first frequency information, and is used to obtain the second frequency information.
4. According to the intelligent control method of frequency speed regulation described in claims 1 and 3, It is characterized in that Also includes: Acquiring first electrical parameter information; Determining whether first motor model information exists according to the first electrical parameter information; If yes, obtaining first operation configuration parameter information according to the first motor model information; If not, obtaining first operation configuration parameter information according to the first electrical parameter information; The first electrical parameter information is the electrical parameters of the connected motor, including at least the motor resistance value, coil inductance value, number of electrodes, and Hall polarity; The first motor model information is the stored and recorded motor model, which is used to query the first operation configuration parameter information; The first operation configuration parameter information is the configuration parameters during the operation of the motor, and at least includes the first maximum value range, the first adjustment relationship, the first starting frequency, and the overcurrent protection threshold.
5. According to the intelligent control method of frequency speed regulation described in claim 1, It is characterized in that Also includes: Recording the first speed information according to a preset time period; Calculate the speed difference between the current first speed information and the first speed information recorded in a previous time period to obtain second speed difference information; Performing data processing on the second speed difference information according to a preset smoothing and denoising method to obtain third speed difference information; Determining whether the third speed difference information exceeds a preset mutation threshold; If so, the first maximum value range is adjusted downward.
6. According to claim 1, an intelligent control method for frequency speed regulation, It is characterized in that Also includes: Acquiring first current information; Determining whether the first current information exceeds the overcurrent protection threshold; If so, the first frequency information is set according to the first maximum value range, or the first frequency information is set to zero.
7. An intelligent control system for frequency speed regulation, It is characterized in that The system includes a memory and a processor, wherein the memory includes a frequency speed regulation intelligent control method program, and when the frequency speed regulation intelligent control method program is executed by the processor, the following steps are implemented: Obtaining first speed information; Calculating a speed difference between the first speed information and the target speed information to determine first speed difference information; Determining whether the first speed difference information exceeds a preset speed difference threshold; If yes, obtaining first acceleration information according to the first speed information and the first speed difference information; Acquiring first frequency information; Obtaining second frequency information according to the first frequency information and the first acceleration information; Determine whether the second frequency information is within a first maximum range; If yes, setting the first frequency information according to the second frequency information; If not, the first frequency information is set according to the first maximum range.
8. According to claim 7, an intelligent control system for frequency speed regulation, It is characterized in that Also includes: Acquiring first voltage information; When the first voltage information jumps from the first level to the second level, start timing, record the time information of the next time the first voltage information jumps from the first level to the second level, and obtain first time information; The first speed information is obtained according to the first time information and a preset rotation speed calculation formula.
9. The intelligent control system for frequency speed regulation according to claim 7, It is characterized in that The obtaining of the second frequency information according to the first frequency information and the first acceleration information is specifically: Obtaining a first frequency adjustment relationship; Obtaining a first frequency adjustment amount according to the first adjustment relationship and the first acceleration information; Second frequency information is obtained according to the first frequency information and the first frequency adjustment amount.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that The computer-readable storage medium includes a frequency speed regulation intelligent control method program, and when the frequency speed regulation intelligent control method program is executed by a processor, the steps of the frequency speed regulation intelligent control method as described in any one of claims 1 to 6 are implemented.
