Variable frequency motor rotating speed control method, device and equipment based on fuzzy logic
By adopting a speed control method based on fuzzy logic in the variable frequency motor, the problem of inaccurate speed adjustment in the traditional control method under complex operating conditions is solved, and more efficient speed adjustment and better adaptability are achieved.
Patent Information
- Application Number
- CN202510338541.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-21
- Publication Date
- 2025-04-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The speed control method of traditional frequency converter motors is difficult to achieve fast and accurate speed adjustment under complex working conditions.
The frequency conversion motor speed control method based on fuzzy logic is adopted, and the target two-dimensional fuzzy logic table is determined in the preset database by responding to the operating condition adjustment command, the speed error and the average speed absolute error are obtained in real time, and the control parameters of the motor speed are dynamically adjusted based on the fuzzy logic algorithm.
Accurate adjustment of the speed of the variable frequency motor is achieved, the response speed and the system adaptability to operating conditions is enhanced, and the speed fluctuation problem may be caused by traditional PID control methods.
Smart Images

Figure CN119853541A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of motor technology, and in particular to a variable frequency motor speed control method, device and equipment based on fuzzy logic. Background Art
[0002] With the development of industrial automation and intelligence, variable frequency motors are widely used in various industrial equipment due to their advantages in speed regulation, energy saving, noise control, etc., and have become one of the core components of modern mechanical equipment. Variable frequency motors can adjust the speed and achieve precise control according to different working conditions, so they play an important role in improving production efficiency and saving energy consumption. Especially in the fields of fans, water pumps, compressors, etc., the use of variable frequency motors provides a strong guarantee for energy saving and consumption reduction and operating efficiency of equipment. With the increasing requirements for intelligent control of industrial equipment, the control accuracy of variable frequency motors has become an important factor affecting their performance.
[0003] However, the traditional variable frequency motor speed control method often faces the problem of inaccurate speed regulation in practical applications. Most existing speed control methods rely on PID control, but this method is difficult to ensure fast and accurate adjustment of the motor speed when facing complex working conditions. Summary of the invention
[0004] The present application provides a variable frequency motor speed control method, device and equipment based on fuzzy logic to solve the problems raised by the above background technology.
[0005] In a first aspect, the present application provides a variable frequency motor speed control method based on fuzzy logic, comprising: In response to the working condition adjustment instruction of the variable frequency motor, a target two-dimensional fuzzy logic table is determined in a preset database based on the working condition adjustment instruction; Based on the working condition adjustment instruction, the variable frequency motor is controlled to rotate, and the speed error of the variable frequency motor and the average absolute error of the speed of the variable frequency motor in a first preset time period are obtained in real time, and the difference between the absolute error of the speed error and the average absolute error of the speed is calculated; wherein the first preset time period is a time period connected to the current moment and before the current moment; A target information gain is determined in the target two-dimensional fuzzy logic table based on the fuzzy logic corresponding to the speed error and the fuzzy logic corresponding to the difference, and the speed of the variable frequency motor is adjusted based on the target information gain.
[0006] In a possible implementation, before responding to the operating condition adjustment instruction of the variable frequency motor and determining the target two-dimensional fuzzy logic table in a preset database based on the operating condition adjustment instruction, the method further includes: For each working condition of the variable frequency motor, a two-dimensional fuzzy logic table corresponding to the working condition is constructed, a binding relationship between the working condition and the two-dimensional fuzzy logic table is constructed, and the binding relationship is stored in a preset database; The constructing of a two-dimensional fuzzy logic table corresponding to the working condition comprises: Based on the standard speed corresponding to the working condition, the variable frequency motor is controlled to rotate for a second preset time period, and a speed error between the standard speed and the speed of the variable frequency motor is obtained in real time within the second preset time period to obtain speed error information; wherein the second preset time period is greater than the first preset time period; The two-dimensional fuzzy logic table is generated based on the rotation speed error information.
[0007] In a possible implementation manner, generating the two-dimensional fuzzy logic table based on the rotation speed error includes: Determine a speed error interval based on the speed error information; the speed error interval is an interval formed by a minimum error speed and a maximum error speed in the speed error information; The error interval is divided based on the logic state information of fuzzy logic to obtain a plurality of speed error sub-intervals, and a corresponding logic state is matched to each of the speed error sub-intervals to obtain speed error logic state information; Calculate the average absolute error of the speed corresponding to the absolute error of the speed of each speed error; For each of the speed errors, calculating the difference between the speed absolute error of the speed error and the speed average absolute error; the difference corresponding to each of the speed errors constitutes difference information; Determine a difference interval based on the difference information; the difference interval is an interval consisting of a minimum difference and a maximum difference in the difference information; The difference interval is divided based on the logic state information of fuzzy logic to obtain a plurality of difference sub-intervals, and a corresponding logic state is matched to each of the difference sub-intervals to obtain difference logic state information; The two-dimensional fuzzy logic table is generated based on the rotation speed error logic state information and the difference logic state information.
[0008] In a possible implementation, the generating the two-dimensional fuzzy logic table based on the speed error logic state information and the difference logic state information includes: Construct an initial 14×14 table; Constructing header information in the first cell of the initial table; wherein the row information in the header information is the speed logic state, and the column information is the difference logic state; Inserting each speed error logic state in the speed error logic state information into the first row of the table in sequence based on a preset logic state sequence, and inserting each difference logic state in the difference logic state information into the first column of the table in sequence based on a preset logic state sequence, to obtain an intermediate table; For each blank cell of the intermediate table, a speed gain corresponding to the blank cell is generated based on a speed error logic state and a difference logic state corresponding to the blank cell to obtain the two-dimensional fuzzy logic table.
[0009] In a possible implementation, generating the speed gain corresponding to the blank cell based on the speed error logic state and the difference logic state corresponding to the blank cell includes: Generate a simulated rotation behavior of the variable frequency motor within the first preset time period based on a standard speed corresponding to the working condition, a speed error sub-interval corresponding to the speed error logic state, and a difference sub-interval corresponding to the difference logic state; Determining a plurality of target speed errors within the speed error subinterval based on a preset speed error step size; Constructing a virtual variable frequency motor corresponding to the variable frequency motor; For each of the target speed errors, the virtual variable frequency motor is controlled to rotate within the second preset time period based on the simulated rotation behavior, and the virtual speed of the virtual variable frequency motor is adjusted based on the target speed error, and the virtual speed of the virtual variable frequency motor is acquired in real time to obtain a virtual speed change curve of the virtual variable frequency motor within the second preset time period; The speed gain is determined based on the standard speed and each of the virtual speed change curves.
[0010] In a possible implementation, the determining the speed gain based on the standard speed and each of the virtual speed change curves includes: For each of the virtual speed change curves, a straight line corresponding to the standard speed is drawn in the coordinate system where the virtual speed change curve is located, and the difference between the absolute integrals of the first integral and the second integral is obtained; wherein the horizontal axis of the coordinate system represents time, the vertical axis represents speed, the first integral is the integral of the virtual speed change curve within the second preset time period, and the second integral is the integral of the straight line corresponding to the standard speed within the second preset time period; The target speed error corresponding to the virtual speed change curve corresponding to the minimum absolute integral difference is determined as the speed gain.
[0011] In a second aspect, the present application provides a variable frequency motor speed control device based on fuzzy logic, comprising: A determination module, used to respond to the working condition adjustment instruction of the variable frequency motor, and determine a target two-dimensional fuzzy logic table in a preset database based on the working condition adjustment instruction; A first control module, used for controlling the rotation of the variable frequency motor based on the working condition adjustment instruction, and obtaining in real time the speed error of the variable frequency motor and the average absolute error of the speed of the variable frequency motor in a first preset time period, and calculating the difference between the absolute error of the speed error and the average absolute error of the speed; wherein the first preset time period is a time period connected to the current moment and before the current moment; The second control module is used to determine the target information gain in the target two-dimensional fuzzy logic table based on the fuzzy logic corresponding to the speed error and the fuzzy logic corresponding to the difference, and adjust the speed of the variable frequency motor based on the target information gain.
[0012] In a third aspect, the present application provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the fuzzy logic-based variable frequency motor speed control method as described in any of the above items is implemented.
[0013] The present application provides a variable frequency motor speed control method, device and equipment based on fuzzy logic, the method comprising: responding to the working condition adjustment instruction of the variable frequency motor, determining a target two-dimensional fuzzy logic table in a preset database based on the working condition adjustment instruction; controlling the rotation of the variable frequency motor based on the working condition adjustment instruction, and obtaining the speed error of the variable frequency motor and the average absolute error of the speed of the variable frequency motor in the first preset time period in real time, and calculating the difference between the speed absolute error of the speed error and the average absolute error of the speed; wherein the first preset time period is a time period connected to the current moment and before the current moment; determining the target information gain in the target two-dimensional fuzzy logic table based on the fuzzy logic corresponding to the speed error and the fuzzy logic corresponding to the difference, and adjusting the speed of the variable frequency motor based on the target information gain. On the one hand, this method has significant advantages over the traditional PID control method. First of all, this scheme can adjust the motor speed more accurately according to the actual working conditions of the variable frequency motor through the fuzzy logic algorithm. By determining the target two-dimensional fuzzy logic table according to the working condition adjustment instructions in the preset database, and combining the speed error and the average absolute error of the speed obtained in real time, the control parameters of the motor speed can be dynamically adjusted, which helps to solve the problem of inaccurate speed regulation of traditional PID control under complex working conditions. On the other hand, this method can monitor the speed error of the motor and its changing trend in real time, and optimize the speed control process through fuzzy logic processing, which not only enhances the response speed of the motor speed regulation, but also improves the system's adaptability to changes in motor working conditions, avoiding the speed fluctuation problem that may be caused by traditional PID control methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0015] Figure 1 A flow chart of a variable frequency motor speed control method based on fuzzy logic provided in an embodiment of the present application; Figure 2 A schematic block diagram of the structure of a variable frequency motor speed control device based on fuzzy logic provided in an embodiment of the present application; Figure 3 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0016] 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 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.
[0017] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change based on actual conditions.
[0018] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0019] It should be further understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0020] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0021] See also Figure 1 , Figure 1 A flow chart of a variable frequency motor speed control method based on fuzzy logic provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the variable frequency motor speed control method based on fuzzy logic provided in the embodiment of the present application includes steps S1 to S3.
[0022] Step S1, responding to an operating condition adjustment instruction of a variable frequency motor, and determining a target two-dimensional fuzzy logic table in a preset database based on the operating condition adjustment instruction.
[0023] Step S2, based on the working condition adjustment instruction, control the rotation of the variable frequency motor, and obtain in real time the speed error of the variable frequency motor and the average absolute error of the speed of the variable frequency motor within a first preset time period, and calculate the difference between the absolute error of the speed error and the average absolute error of the speed; wherein the first preset time period is a time period connected to the current moment and before the current moment.
[0024] Step S3, determining a target information gain in the target two-dimensional fuzzy logic table based on the fuzzy logic corresponding to the speed error and the fuzzy logic corresponding to the difference, and adjusting the speed of the variable frequency motor based on the target information gain.
[0025] It should be noted that the method provided in this embodiment can be used for variable frequency motors in various fields. The execution subject of this embodiment can be a server or a variable frequency motor speed control device based on fuzzy logic. The following description takes a server as an example.
[0026] In this embodiment, it specifically includes: In the above step S1, when the server receives the operating condition adjustment instruction of the variable frequency motor, the target two-dimensional fuzzy logic table is determined in the preset database based on the operating condition corresponding to the operating condition adjustment instruction. The database is provided with a binding relationship between each operating condition of the variable frequency motor and its corresponding two-dimensional fuzzy logic table. The specific content of the two-dimensional fuzzy logic table is introduced in detail in the next embodiment and will not be repeated here.
[0027] In the above step S2, the variable frequency motor is controlled to rotate based on the standard motor speed corresponding to the working condition corresponding to the working condition adjustment instruction, and in the process of controlling the variable frequency motor to rotate based on the motor speed corresponding to the working condition corresponding to the working condition adjustment instruction, the speed error of the variable frequency motor and the average absolute error of the speed of the variable frequency motor in the first preset time period are obtained in real time, and the difference between the absolute error of the speed error and the average absolute error of the speed is calculated; wherein the speed error is the difference between the standard motor speed and the current motor speed, the average absolute error of the speed is the average value between the absolute values of the speed errors in the first preset time period, and the absolute error of the speed error is the absolute value of the speed error; In the above step S3, the target information gain is determined in the target two-dimensional fuzzy logic table based on the fuzzy logic corresponding to the speed error and the fuzzy logic corresponding to the difference, and the target information gain is added to the calibration motor speed calculated when the motor speed was last adjusted to obtain a new calibration motor speed, and the rotation of the variable frequency motor is controlled based on the new calibration motor speed.
[0028] The method provided in this embodiment, on the one hand, has significant advantages over the traditional PID control method. First, this solution can adjust the motor speed more accurately through the fuzzy logic algorithm according to the actual working conditions of the variable frequency motor. By determining the target two-dimensional fuzzy logic table according to the working condition adjustment instruction in the preset database, and combining the speed error and the average absolute error of the speed obtained in real time, the control parameters of the motor speed can be dynamically adjusted, which helps to solve the problem of inaccurate speed regulation of traditional PID control under complex working conditions. On the other hand, this method can monitor the speed error of the motor and its changing trend in real time, and optimize the speed control process through fuzzy logic processing, which not only enhances the response speed of the motor speed regulation, but also improves the system's adaptability to changes in motor working conditions, avoiding the speed fluctuation problem that may be caused by the traditional PID control method.
[0029] In some embodiments, before responding to the working condition adjustment instruction of the variable frequency motor and determining the target two-dimensional fuzzy logic table in a preset database based on the working condition adjustment instruction, the method further includes the following steps: For each working condition of the variable frequency motor, a two-dimensional fuzzy logic table corresponding to the working condition is constructed, a binding relationship between the working condition and the two-dimensional fuzzy logic table is constructed, and the binding relationship is stored in a preset database; The constructing of a two-dimensional fuzzy logic table corresponding to the working condition comprises: Based on the standard speed corresponding to the working condition, the variable frequency motor is controlled to rotate for a second preset time period, and a speed error between the standard speed and the speed of the variable frequency motor is obtained in real time within the second preset time period to obtain speed error information; wherein the second preset time period is greater than the first preset time period; The two-dimensional fuzzy logic table is generated based on the rotation speed error information.
[0030] In this embodiment, generating the two-dimensional fuzzy logic table based on the speed error includes: Determine a speed error interval based on the speed error information; the speed error interval is an interval formed by a minimum error speed and a maximum error speed in the speed error information; The error interval is divided based on the logic state information of fuzzy logic to obtain a plurality of speed error sub-intervals, and the corresponding logic state is matched to each of the speed error sub-intervals to obtain the speed error logic state information; specifically, the logic state information includes negative large, negative large medium, negative large, negative small large, negative small medium, negative small small, zero, positive small small, positive small medium, positive small large, positive large, positive large, positive large medium, and positive large, with the 0 point corresponding to the error interval as the dividing point, and the logic state of the zero point is assigned to 0, the interval greater than 0 in the error interval is divided into 6 speed error sub-intervals, and the interval less than 0 in the error interval is divided into 6 speed error sub-intervals, and negative large, negative large, negative large, negative large, negative small large, negative small medium, negative small small, positive small small, positive small medium, positive small large, positive large, positive large, positive large, positive large, positive large, positive large, positive large, positive large, positive large, and positive large are assigned to each of the speed error sub-intervals in sequence; Calculate the average absolute error of the speed corresponding to the absolute error of the speed of each speed error; wherein the absolute error of the speed and the average absolute error of the speed have been introduced in the previous embodiment and will not be repeated here; For each of the speed errors, calculating the difference between the speed absolute error of the speed error and the speed average absolute error; the difference corresponding to each of the speed errors constitutes difference information; Determine a difference interval based on the difference information; the difference interval is an interval consisting of a minimum difference and a maximum difference in the difference information; The difference interval is divided based on the logic state information of fuzzy logic to obtain a plurality of difference sub-intervals, and the corresponding logic state is matched to each of the difference sub-intervals to obtain the difference logic state information; specifically, the logic state information includes negative large, negative large medium, negative large, negative small large, negative small medium, negative small small, zero, positive small small, positive small medium, positive small large, positive large, positive large, positive large, positive large medium, and positive large, with the 0 point corresponding to the difference interval as the demarcation point, and the logic state of the zero point is assigned to 0, the interval greater than 0 in the difference interval is divided into 6 difference sub-intervals, and the interval less than 0 in the error interval is divided into 6 difference sub-intervals, and the negative large, negative large, negative large, negative large, negative small, negative small large, negative small medium, negative small, positive small small, positive small small, positive small medium, positive small large, positive ... The two-dimensional fuzzy logic table is generated based on the rotation speed error logic state information and the difference logic state information.
[0031] In this embodiment, generating the two-dimensional fuzzy logic table based on the speed error logic state information and the difference logic state information includes the following steps: Construct an initial 14×14 table; Constructing header information in the first cell of the initial table; wherein the row information in the header information is the speed logic state, and the column information is the difference logic state; Inserting each speed error logic state in the speed error logic state information into the first row of the table in sequence based on a preset logic state sequence, and inserting each difference logic state in the difference logic state information into the first column of the table in sequence based on a preset logic state sequence, to obtain an intermediate table; wherein the speed error logic state includes a logic state and a corresponding speed error sub-interval, and the difference logic state includes a logic state and a corresponding difference sub-interval; For each blank cell of the intermediate table, a speed gain corresponding to the blank cell is generated based on a speed error logic state and a difference logic state corresponding to the blank cell to obtain the two-dimensional fuzzy logic table.
[0032] In this embodiment, the generating of the speed gain corresponding to the blank cell based on the speed error logic state and the difference logic state corresponding to the blank cell comprises the following steps: Generate a simulated rotation behavior of the variable frequency motor within the first preset time period based on the standard speed corresponding to the working condition, the speed error sub-interval corresponding to the speed error logic state, and the difference sub-interval corresponding to the difference logic state; specifically, the speed error corresponding to the simulated rotation behavior within the first preset time period is included in the speed error sub-interval, and the difference corresponding to the simulated rotation behavior within the first preset time period is included in the difference sub-interval; Determining a plurality of target speed errors within the speed error subinterval based on a preset speed error step size; Constructing a virtual variable frequency motor corresponding to the variable frequency motor; For each of the target speed errors, the virtual variable frequency motor is controlled to rotate within the second preset time period based on the simulated rotation behavior, and the virtual speed of the virtual variable frequency motor is adjusted based on the target speed error, and the virtual speed of the virtual variable frequency motor is acquired in real time to obtain a virtual speed change curve of the virtual variable frequency motor within the second preset time period; The speed gain is determined based on the standard speed and each of the virtual speed change curves.
[0033] In this embodiment, determining the speed gain based on the standard speed and each of the virtual speed change curves includes the following steps: For each of the virtual speed change curves, a straight line corresponding to the standard speed is drawn in the coordinate system where the virtual speed change curve is located, and the difference between the absolute integrals of the first integral and the second integral is obtained; wherein the horizontal axis of the coordinate system represents time, the vertical axis represents speed, the first integral is the integral of the virtual speed change curve within the second preset time period, and the second integral is the integral of the straight line corresponding to the standard speed within the second preset time period; The target speed error corresponding to the virtual speed change curve corresponding to the minimum absolute integral difference is determined as the speed gain.
[0034] The method provided in this embodiment generates the two-dimensional fuzzy logic table based on the speed error by constructing a two-dimensional fuzzy logic table corresponding to the working condition and storing it in a database, thereby automatically calling the corresponding logic table according to the working condition adjustment instruction, thereby achieving efficient dynamic adjustment. By adopting thirteen fuzzy logic states, the system can analyze the speed error and difference more carefully, and perform precise gain adjustment based on this, thereby achieving precise control of the speed of the variable frequency motor.
[0035] See also Figure 2 , Figure 2 The schematic block diagram of the structure of the variable frequency motor speed control device 100 based on fuzzy logic provided in the embodiment of the present application is as follows: Figure 2 As shown, the variable frequency motor speed control device 100 based on fuzzy logic provided in the embodiment of the present application includes: The determination module 110 is used to respond to the operating condition adjustment instruction of the variable frequency motor and determine a target two-dimensional fuzzy logic table in a preset database based on the operating condition adjustment instruction.
[0036] The first control module 120 is used to control the rotation of the variable frequency motor based on the working condition adjustment instruction, and to obtain in real time the speed error of the variable frequency motor and the average absolute error of the speed of the variable frequency motor within a first preset time period, and to calculate the difference between the absolute error of the speed error and the average absolute error of the speed; wherein the first preset time period is a time period connected to the current moment and before the current moment.
[0037] The second control module 130 is used to determine a target information gain in the target two-dimensional fuzzy logic table based on the fuzzy logic corresponding to the speed error and the fuzzy logic corresponding to the difference, and adjust the speed of the variable frequency motor based on the target information gain.
[0038] It should be noted that technicians in the relevant technical field can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described device and each module can refer to the process in the aforementioned fuzzy logic-based variable frequency motor speed control method embodiment, and will not be repeated here.
[0039] The variable frequency motor speed control device 100 based on fuzzy logic provided in the above embodiment can be implemented in the form of a computer program. The computer program can be used in Figure 3 The system is run on the terminal device 200 shown.
[0040] See also Figure 3 , Figure 3 The present invention provides a schematic block diagram of the structure of a terminal device 200 according to an embodiment of the present application. The terminal device 200 includes a processor 201 and a memory 202. The processor 201 and the memory 202 are connected via a device bus 203, wherein the memory 202 may include a non-volatile storage medium and an internal memory.
[0041] The non-volatile storage medium can store a computer program. The computer program includes program instructions, and when the program instructions are executed by the processor 201, the processor 201 can execute any of the above-mentioned variable frequency motor speed control methods based on fuzzy logic.
[0042] The processor 201 is used to provide computing and control capabilities to support the operation of the entire terminal device 200.
[0043] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor 201, the processor 201 can execute any of the above-mentioned variable frequency motor speed control methods based on fuzzy logic.
[0044] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the terminal device 200 involved in the scheme of the present application. The specific terminal device 200 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0045] It should be understood that the processor 201 may be a central processing unit (CPU), and the processor 201 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0046] In some embodiments, the processor 201 is used to run a computer program stored in the memory to implement the following steps: In response to the working condition adjustment instruction of the variable frequency motor, a target two-dimensional fuzzy logic table is determined in a preset database based on the working condition adjustment instruction; Based on the working condition adjustment instruction, the variable frequency motor is controlled to rotate, and the speed error of the variable frequency motor and the average absolute error of the speed of the variable frequency motor in a first preset time period are obtained in real time, and the difference between the absolute error of the speed error and the average absolute error of the speed is calculated; wherein the first preset time period is a time period connected to the current moment and before the current moment; A target information gain is determined in the target two-dimensional fuzzy logic table based on the fuzzy logic corresponding to the speed error and the fuzzy logic corresponding to the difference, and the speed of the variable frequency motor is adjusted based on the target information gain.
[0047] It should be noted that technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working process of the terminal device 200 described above can refer to the process of the aforementioned variable frequency motor speed control method based on fuzzy logic, and will not be repeated here.
[0048] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by one or more processors, the one or more processors implement the variable frequency motor speed control method based on fuzzy logic as provided in the embodiment of the present application.
[0049] The computer-readable storage medium may be an internal storage unit of the terminal device 200 in the aforementioned embodiment, such as a hard disk or memory of the terminal device 200. The computer-readable storage medium may also be an external storage device of the terminal device 200, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped with the terminal device 200.
[0050] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A variable frequency motor speed control method based on fuzzy logic, characterized in that: include: In response to the working condition adjustment instruction of the variable frequency motor, a target two-dimensional fuzzy logic table is determined in a preset database based on the working condition adjustment instruction; Based on the working condition adjustment instruction, the variable frequency motor is controlled to rotate, and the speed error of the variable frequency motor and the average absolute error of the speed of the variable frequency motor in a first preset time period are obtained in real time, and the difference between the absolute error of the speed error and the average absolute error of the speed is calculated; wherein the first preset time period is a time period connected to the current moment and before the current moment; A target information gain is determined in the target two-dimensional fuzzy logic table based on the fuzzy logic corresponding to the speed error and the fuzzy logic corresponding to the difference, and the speed of the variable frequency motor is adjusted based on the target information gain.
2. The variable frequency motor speed control method based on fuzzy logic according to claim 1 is characterized in that: Before responding to the working condition adjustment instruction of the variable frequency motor and determining the target two-dimensional fuzzy logic table in a preset database based on the working condition adjustment instruction, the method further includes: For each working condition of the variable frequency motor, a two-dimensional fuzzy logic table corresponding to the working condition is constructed, a binding relationship between the working condition and the two-dimensional fuzzy logic table is constructed, and the binding relationship is stored in a preset database; The constructing of a two-dimensional fuzzy logic table corresponding to the working condition comprises: Based on the standard speed corresponding to the working condition, the variable frequency motor is controlled to rotate for a second preset time period, and a speed error between the standard speed and the speed of the variable frequency motor is obtained in real time within the second preset time period to obtain speed error information; wherein the second preset time period is greater than the first preset time period; The two-dimensional fuzzy logic table is generated based on the rotation speed error information.
3. The variable frequency motor speed control method based on fuzzy logic according to claim 2 is characterized in that: The generating the two-dimensional fuzzy logic table based on the rotation speed error comprises: Determine a speed error interval based on the speed error information; the speed error interval is an interval formed by a minimum error speed and a maximum error speed in the speed error information; The error interval is divided based on the logic state information of fuzzy logic to obtain a plurality of speed error sub-intervals, and a corresponding logic state is matched to each of the speed error sub-intervals to obtain speed error logic state information; Calculate the average absolute error of the speed corresponding to the absolute error of the speed of each speed error; For each of the speed errors, calculating the difference between the speed absolute error of the speed error and the speed average absolute error; the difference corresponding to each of the speed errors constitutes difference information; Determine a difference interval based on the difference information; the difference interval is an interval consisting of a minimum difference and a maximum difference in the difference information; The difference interval is divided based on the logic state information of fuzzy logic to obtain a plurality of difference sub-intervals, and a corresponding logic state is matched to each of the difference sub-intervals to obtain difference logic state information; The two-dimensional fuzzy logic table is generated based on the rotation speed error logic state information and the difference logic state information.
4. The variable frequency motor speed control method based on fuzzy logic according to claim 3 is characterized in that: The generating the two-dimensional fuzzy logic table based on the speed error logic state information and the difference logic state information comprises: Construct an initial 14×14 table; Constructing header information in the first cell of the initial table; wherein the row information in the header information is the speed logic state, and the column information is the difference logic state; Inserting each speed error logic state in the speed error logic state information into the first row of the table in sequence based on a preset logic state sequence, and inserting each difference logic state in the difference logic state information into the first column of the table in sequence based on a preset logic state sequence, to obtain an intermediate table; For each blank cell of the intermediate table, a speed gain corresponding to the blank cell is generated based on a speed error logic state and a difference logic state corresponding to the blank cell to obtain the two-dimensional fuzzy logic table.
5. The variable frequency motor speed control method based on fuzzy logic according to claim 4 is characterized in that: The generating the speed gain corresponding to the blank cell based on the speed error logic state and the difference logic state corresponding to the blank cell comprises: Generate a simulated rotation behavior of the variable frequency motor within the first preset time period based on a standard speed corresponding to the working condition, a speed error sub-interval corresponding to the speed error logic state, and a difference sub-interval corresponding to the difference logic state; Determining a plurality of target speed errors within the speed error subinterval based on a preset speed error step size; Constructing a virtual variable frequency motor corresponding to the variable frequency motor; For each of the target speed errors, the virtual variable frequency motor is controlled to rotate within the second preset time period based on the simulated rotation behavior, and the virtual speed of the virtual variable frequency motor is adjusted based on the target speed error, and the virtual speed of the virtual variable frequency motor is acquired in real time to obtain a virtual speed change curve of the virtual variable frequency motor within the second preset time period; The speed gain is determined based on the standard speed and each of the virtual speed change curves.
6. The variable frequency motor speed control method based on fuzzy logic according to claim 5, characterized in that: The determining the speed gain based on the standard speed and each of the virtual speed change curves includes: For each of the virtual speed change curves, a straight line corresponding to the standard speed is drawn in the coordinate system where the virtual speed change curve is located, and the difference between the absolute integrals of the first integral and the second integral is obtained; wherein the horizontal axis of the coordinate system represents time, the vertical axis represents speed, the first integral is the integral of the virtual speed change curve within the second preset time period, and the second integral is the integral of the straight line corresponding to the standard speed within the second preset time period; The target speed error corresponding to the virtual speed change curve corresponding to the minimum absolute integral difference is determined as the speed gain.
7. A variable frequency motor speed control device based on fuzzy logic, characterized in that: include: A determination module, used to respond to the working condition adjustment instruction of the variable frequency motor, and determine a target two-dimensional fuzzy logic table in a preset database based on the working condition adjustment instruction; A first control module, used for controlling the rotation of the variable frequency motor based on the working condition adjustment instruction, and obtaining in real time the speed error of the variable frequency motor and the average absolute error of the speed of the variable frequency motor in a first preset time period, and calculating the difference between the absolute error of the speed error and the average absolute error of the speed; wherein the first preset time period is a time period connected to the current moment and before the current moment; The second control module is used to determine the target information gain in the target two-dimensional fuzzy logic table based on the fuzzy logic corresponding to the speed error and the fuzzy logic corresponding to the difference, and adjust the speed of the variable frequency motor based on the target information gain.
8. A terminal device, characterized in that: The terminal device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the variable frequency motor speed control method based on fuzzy logic as described in any one of claims 1 to 6 is implemented.