Butterfly valve opening control method, controller, system and storage medium

The PID parameters are corrected through fuzzy processing and correction parameters, which solves the nonlinear and hysteresis problems in the gas pressure control system, improves the control accuracy of gas pressure, and achieves high-precision gas pressure control.

CN118377217BActive Publication Date: 2024-10-01JIHUA LAB
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410804206.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-01
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

The traditional PID control algorithm in the gas pressure control system has low control accuracy due to nonlinearity, hysteresis and gas compressibility, making it difficult to achieve high-precision gas pressure control.

Method used

The PID parameters are corrected through fuzzy processing and correction parameters. Based on the current pressure, preset pressure, motor steps and correction parameters, the target correction parameters and PID adjustment amount are calculated, and the opening of the butterfly valve is adjusted to improve the control accuracy of gas pressure. .

Benefits of technology

It effectively solves the nonlinear and hysteresis problems in the gas pressure control system, improves the control accuracy of gas pressure, and enhances the controllability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377217B_ABST
    Figure CN118377217B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of gas pressure control technology, and in particular provides a control method, controller, system and storage medium for the opening of a butterfly valve, the method comprising: determining a control error signal and a rate of change of the error signal based on the current pressure and a preset pressure inside a cavity; determining the actual number of steps corresponding to the current pressure based on the current pressure and the correspondence between the predetermined number of motor steps and the actual pressure; determining a target correction parameter based on the actual number of steps and the correspondence between the number of motor steps and the correction parameter; performing fuzzy processing on the control error signal and the rate of change of the error signal to obtain a PID adjustment amount; determining a PID parameter at the current moment based on the target correction parameter, the PID adjustment amount and the PID parameter at the initial moment; calculating a control signal of the butterfly valve based on the PID parameter at the current moment and a PID control algorithm, and the control signal is used to control the opening of the butterfly valve. The control accuracy of the gas pressure can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of gas pressure control, and in particular to a method, a controller, a system and a storage medium for controlling the opening of a butterfly valve. Background Art

[0002] A butterfly valve is a vacuum system component that can change the direction of airflow, adjust the amount of airflow, and cut off or connect pipelines. Because vacuum butterfly valves have the characteristics of stable operation and fast response, they are widely used to control the internal pressure of the cavity.

[0003] In the prior art, the valve opening of the butterfly valve is calculated by a proportional, integral and differential (PID) control algorithm, and then the valve position of the butterfly valve is adjusted according to the calculated butterfly valve opening value, thereby achieving control of the internal pressure of the cavity.

[0004] Then, in the gas pressure control system, due to the nonlinearity, pure hysteresis and other characteristics of pressure control, and the compressibility of gas and the variability of the operating environment, its controllability is greatly reduced. Therefore, the traditional PID control algorithm is not suitable for high-precision gas pressure control. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a control method, controller, system and storage medium for the opening of a butterfly valve, which uses fuzzy processing and correction parameters to correct PID parameters, solve the nonlinearity, hysteresis and other characteristics in the gas pressure control system, and the influence of the compressibility of the gas on the control system, thereby improving the control accuracy of the gas pressure.

[0006] In a first aspect, the present disclosure provides a method for controlling the opening of a butterfly valve, wherein the butterfly valve is connected to a cavity, and the method comprises: determining a control error signal and a rate of change of the error signal based on a current pressure and a preset pressure inside the cavity; determining an actual number of steps corresponding to the current pressure based on a correspondence between the current pressure and a predetermined number of motor steps and the actual pressure; determining a target correction parameter based on the actual number of steps and the correspondence between the number of motor steps and the correction parameter; fuzzy processing the control error signal and the rate of change of the error signal to obtain a PID adjustment amount; determining the PID parameters at the current moment based on the target correction parameter, the PID adjustment amount and the PID parameters at the initial moment; and calculating a control signal of the butterfly valve based on the PID parameters at the current moment and a PID control algorithm, wherein the control signal is used to control the opening of the butterfly valve.

[0007] In a second aspect, the present disclosure provides a control device for the opening of a butterfly valve, the device comprising: an error signal determination module, for determining a control error signal and a rate of change of the error signal based on a current pressure inside a cavity and a preset pressure; an actual step number determination module, for determining the actual number of steps corresponding to the current pressure based on the current pressure and a predetermined correspondence between the number of motor steps and the actual pressure; a target correction parameter determination module, for determining the target correction parameter based on the actual number of steps and the correspondence between the number of motor steps and the correction parameter; a PID adjustment amount module, for fuzzy processing the control error signal and the rate of change of the error signal to obtain a PID adjustment amount; a PID parameter determination module, for determining the PID parameters at the current moment based on the target correction parameter, the PID adjustment amount and the PID parameters at the initial moment; a control signal determination module, for calculating the control signal of the butterfly valve based on the PID parameters at the current moment and the PID control algorithm, the control signal being used to control the opening of the butterfly valve.

[0008] In a third aspect, the present disclosure provides a butterfly valve opening controller, which includes: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by one or more processors, the one or more processors implement the butterfly valve opening control method as described in the first aspect above.

[0009] In a fourth aspect, the present disclosure provides a control system for the opening of a butterfly valve, the control system for the opening of the butterfly valve comprising: a cavity, a pressure sensor, a butterfly valve opening controller, a stepper motor, and a butterfly valve, wherein the cavity is used to store gas; the pressure sensor is used to monitor the current pressure in the cavity and send the current pressure to the butterfly valve opening controller; the butterfly valve opening controller is used to execute the control method for the opening of the butterfly valve as described in any one of the first aspects above based on the current pressure to obtain a control signal of the butterfly valve; the stepper motor is used to drive the valve of the butterfly valve to rotate based on the control signal; the butterfly valve is used to control the gas flow entering the cavity based on the valve position of the butterfly valve.

[0010] In a fifth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for controlling the opening of a butterfly valve as in the first aspect above.

[0011] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0012] The disclosed embodiment provides a control method, controller, system and storage medium for the opening of a butterfly valve, the method comprising: determining a control error signal and a rate of change of the error signal based on the current pressure and a preset pressure inside a cavity; determining the actual number of steps corresponding to the current pressure based on the current pressure and the correspondence between the predetermined number of motor steps and the actual pressure; determining a target correction parameter based on the actual number of steps and the correspondence between the number of motor steps and the correction parameter; performing fuzzy processing on the control error signal and the rate of change of the error signal to obtain a PID adjustment amount; determining the PID parameters at the current moment based on the target correction parameter, the PID adjustment amount and the PID parameters at the initial moment; calculating the control signal of the butterfly valve based on the PID parameters at the current moment and the PID control algorithm, and the control signal is used to control the opening of the butterfly valve. Since the PID parameters are corrected by fuzzy processing and correction parameters, the nonlinearity, hysteresis and other characteristics in the gas pressure control system and the influence of the compressibility of the gas on the control system are solved, and the control accuracy of the gas pressure is improved. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0015] Figure 1 It is a structural schematic diagram of a gas pressure control system;

[0016] Figure 2 A flow chart of a method for controlling the opening of a butterfly valve provided in an embodiment of the present disclosure;

[0017] Figure 3 A schematic diagram of the process of the particle swarm optimization algorithm provided in the embodiment of the present disclosure;

[0018] Figure 4 A schematic diagram of a curve of motor steps and actual pressure provided in an embodiment of the present disclosure;

[0019] Figure 5 A schematic diagram of a membership function used by an error fuzzy value E provided in an embodiment of the present disclosure;

[0020] Figure 6 A schematic diagram of a membership function used by the error change rate fuzzy value Ee provided in an embodiment of the present disclosure;

[0021] Figure 7A schematic diagram of calculating a membership value for an error fuzzy value E provided in an embodiment of the present disclosure;

[0022] Figure 8 A schematic diagram of the structure of a device for controlling the opening of a butterfly valve provided in an embodiment of the present disclosure;

[0023] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure;

[0024] Fig.10 A schematic diagram of the structure of a gas pressure control system provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0026] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0027] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0028] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0029] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0030] The gas pressure control system is introduced, such as Figure 1 As shown, the gas pressure control system 10 includes: a cavity 11, a pressure sensor 12, a butterfly valve opening controller 13, a stepping motor 14, a vacuum butterfly valve 15, a vacuum pump 16, a flow meter 17 and a gas source 18.

[0031] The cavity 11 is the main part of the gas pressure control system, which is used to store gas and serve as a place for pressure control. That is, the gas pressure control system controls the gas pressure in the cavity 11. The gas source 18 is used to provide the required gas to the cavity 11, which can be compressed air, nitrogen or other industrial gas. The flow meter 17 is used to measure the gas flow entering the cavity to ensure the stability and accuracy of the gas supply.

[0032] After the gas pressure control system 10 is started, the pressure sensor 12 monitors the current pressure in the cavity, and the butterfly valve opening controller 13 uses the PID control algorithm to calculate the current pressure in the cavity 11 to obtain the number of steps of the stepper motor 14, which is used to control the number of rotation steps of the stepper motor 14, thereby driving the vacuum butterfly valve 15 to rotate, so as to control the opening of the vacuum butterfly valve 15, and adjust the vacuum pump 16 according to the opening of the vacuum butterfly valve 15 to control the gas pressure in the cavity 11. The system continuously cycles the above process until the gas pressure in the cavity 11 reaches and is maintained within the preset pressure range.

[0033] In this application, the butterfly valve is described as a vacuum butterfly valve. The vacuum butterfly valve is an important component in a gas pressure control system, which is mainly used to adjust the pumping rate of a vacuum pump, thereby controlling the pressure in a cavity.

[0034] In the prior art, the butterfly valve opening controller uses a PID control algorithm to calculate the current pressure in the cavity and obtain a control signal for the stepper motor. The control signal is used to control the number of rotation steps of the stepper motor, thereby driving the vacuum butterfly valve to rotate to achieve control of the vacuum butterfly valve opening.

[0035] Then, in the gas pressure control system, due to the nonlinearity, pure hysteresis and other characteristics of pressure control, and the compressibility of gas and the variability of the operating environment, its controllability is greatly reduced. Therefore, the traditional PID control algorithm is not suitable for high-precision gas pressure control.

[0036] To solve the above technical problems, an embodiment of the present disclosure provides a method for controlling the opening of a butterfly valve, the method comprising: determining a control error signal and a rate of change of the error signal based on a current pressure inside a cavity and a preset pressure; determining the actual number of steps corresponding to the current pressure based on the current pressure and a correspondence between a predetermined number of motor steps and the actual pressure; determining a target correction parameter based on the actual number of steps and the correspondence between the number of motor steps and the correction parameter; fuzzy processing is performed on the control error signal and the rate of change of the error signal to obtain a PID adjustment amount; determining the PID parameters at the current moment based on the target correction parameter, the PID adjustment amount and the PID parameters at the initial moment; and calculating a control signal of the butterfly valve based on the PID parameters at the current moment and a PID control algorithm, the control signal being used to control the opening of the butterfly valve.

[0037] By using fuzzy processing and correction parameters to correct PID parameters, the nonlinearity, hysteresis and other characteristics in the gas pressure control system and the influence of the compressibility of gas on the control system are solved, thereby improving the control accuracy of gas pressure.

[0038] The method for controlling the opening of a butterfly valve provided by the present disclosure will be described in detail below in conjunction with the accompanying drawings and specific implementations.

[0039] Figure 2 This is a flow chart of a method for controlling the opening of a butterfly valve in an embodiment of the present disclosure. This embodiment can be applied to controlling the internal pressure of a cavity. The method can be executed by a control device for the opening of a butterfly valve. The control device for the opening of a butterfly valve can be implemented in software and / or hardware. The control device for the opening of a butterfly valve can be configured in a butterfly valve opening controller.

[0040] like Figure 2 As shown, the method for controlling the opening of a butterfly valve provided in the embodiment of the present disclosure mainly includes steps S101-S105.

[0041] S101 . Determine a control error signal and a change rate of the error signal based on a current pressure and a preset pressure inside a cavity.

[0042] Among them, the above-mentioned cavity may refer to equipment used to store gas, such as: semiconductor vapor deposition equipment, etching equipment, new display equipment, high-end manufacturing equipment, vacuum coating equipment and new material research equipment.

[0043] The current pressure P1 can be understood as the pressure inside the cavity at the current moment detected by the pressure sensor. The current pressure P1 is detected by the pressure sensor and then transmitted to the butterfly valve opening controller. Specifically, the pressure sensor detects the current pressure P1 inside the cavity, and then digitizes it through the acquisition box, and uses the Universal Synchronous / Asynchronous Receiver / Transmitter (SUART) to transmit the current pressure P1 to the butterfly valve opening controller.

[0044] The preset pressure P2 can be understood as the preset target pressure of the internal pressure of the cavity, that is, the control target that the gas pressure control system wants to achieve. The preset pressure is obtained by the butterfly valve opening controller from the host computer, and the host computer can configure the entire gas pressure control system, including setting parameters, adjusting control strategies, updating control algorithms, etc. The preset pressure of the internal pressure of the cavity can be read from the configuration parameters of the host computer 19. Alternatively, the host computer 19 sends the preset pressure P2 to the butterfly valve opening controller through the communication interface.

[0045] The control error signal refers to the difference signal between the expected output (set value or reference trajectory) and the actual output (actual response of the system) in the control system. This difference reflects the deviation between the current state of the control system and the target state. In the gas pressure control system, the control error signal refers to the pressure difference between the preset pressure and the current pressure inside the cavity. The control error signal reflects the deviation between the current pressure of the gas pressure control system and the preset pressure. The control error signal is the basis for the butterfly valve opening controller to take action.

[0046] Furthermore, the control error signal can be calculated by formula (1).

[0047] (1)

[0048] in, e is the control error signal, P2 is the preset pressure, and P1 is the current pressure inside the cavity.

[0049] The error signal change rate usually refers to the speed at which the control error signal changes over time, that is, the time derivative of the error signal. The magnitude of the error signal change rate can reflect the response speed of the gas pressure control system to the pressure change in the chamber. A fast-changing error signal change rate indicates that the gas pressure control system is responding quickly to the control input. In addition, the error signal change rate can also help determine the stability of the system. In the PID algorithm, the derivative term (D-term) is designed to respond to the rate of change of the error signal to improve the dynamic performance of the system.

[0050] Furthermore, the error signal change rate ec It can be expressed by formula (2).

[0051] (2)

[0052] S102: Determine the actual number of steps corresponding to the current pressure based on the current pressure and a predetermined correspondence between the number of motor steps and the actual pressure.

[0053] Among them, the number of motor steps usually refers to the number of steps that a stepper motor (SM) needs to take when rotating for a certain period of time. The number of steps of a stepper motor can be used to accurately control the opening of a butterfly valve. The butterfly valve opening refers to the opening angle of the butterfly valve disc (valve flap) in the valve, and this angle is usually expressed in degrees (°). The butterfly valve disc rotates around the valve shaft and controls the flow of gas by changing the gap between the disc and the valve seat. The number of steps of the stepper motor can control the opening of the butterfly valve, control the gas flow, and then realize the control of the gas pressure in the cavity. The corresponding relationship between the number of motor steps and the actual pressure can be understood as the relationship between the number of steps taken by the motor and the actual pressure in the cavity controlled by the butterfly valve.

[0054] The correspondence between the motor steps and the actual pressure can be expressed in the form of a curve, in the form of a data set or a data pair, or in the form of a fitting function. The expression form of the correspondence is not specifically limited in the embodiments of the present application.

[0055] When the correspondence between the motor steps and the actual pressure is expressed in the form of a curve, a data group or a data pair, the above correspondence is queried based on the current pressure monitored by the pressure sensor, and the queried motor steps are used as the actual steps corresponding to the current pressure.

[0056] When the correspondence between the number of motor steps and the actual pressure is expressed in the form of a fitting function, the current pressure is substituted into the fitting function for calculation, and the actual number of steps corresponding to the current pressure is obtained by calculation.

[0057] In a possible implementation, based on the current pressure and a predetermined correspondence between the number of motor steps and the actual pressure, determining the actual number of steps corresponding to the current pressure includes: when the correspondence between the number of motor steps and the actual pressure is expressed in the form of a fitting curve function, substituting the current pressure into the fitting curve function for calculation to obtain the actual number of steps corresponding to the current pressure; the fitting curve function is expressed by formula (3):

[0058] (3)

[0059] in, x represents the current pressure, The actual pressure is x The actual number of steps corresponds to the actual number of steps. The actual number of steps refers to the number of steps taken by the motor when the butterfly valve opens from 0 to the opening value corresponding to the actual pressure. a , b , c is a predetermined constant parameter, M Indicates the maximum number of steps of the motor. M Indicates the number of steps taken by the stepper motor when the butterfly valve opens from 0 to the maximum value.

[0060] The following is an introduction to the method for determining the fitting curve function. Determining the fitting curve function mainly includes the following steps:

[0061] First, collect a series of experimental data, including the actual pressure under different motor steps.

[0062] Second, according to data characteristics and engineering knowledge, select a suitable mathematical function to describe the relationship between the number of motor steps and the actual pressure. Common mathematical functions include linear functions, polynomial functions, exponential functions, logarithmic functions, or more complex nonlinear functions. In the embodiment of the present application, a logarithmic function is used to describe the relationship between the number of motor steps and the actual pressure.

[0063] Third, after determining the logarithmic function, use statistical or optimization methods to estimate the constant parameters in the logarithmic function, that is, it is necessary to estimate the constant parameters a, b, and c in the above formula (3). Commonly used methods include: Least squares method: For linear or linearizable models, the least squares method is a commonly used parameter estimation method. Nonlinear least squares method: For nonlinear models, nonlinear least squares method can be used to fit parameters. Optimization algorithm: Such as particle swarm optimization (PSO), genetic algorithm, etc., can be used to find the best fitting parameters.

[0064] Fourth, after determining the best fitting parameters, use the fitted parameters to construct a mathematical expression of the fitting curve function, such as formula (3).

[0065] After determining the mathematical expression of the fitting curve function, the goodness of fit of the fitting curve function can also be quantified by calculating the evaluation index. The fitting curve function can be diagnosed to determine whether it has abnormal values, leverage points or influence points that affect the accuracy of the model. The constant parameters in the fitting curve function can also be continuously updated according to the actual pressure under the new different motor steps to maintain the accuracy and timeliness of the model.

[0066] In one possible implementation, the constant parameter a , b , c The actual pressure corresponding to the maximum number of steps of the motor is determined by the particle swarm algorithm. Furthermore, the constant parameter a , b , c The data pair is determined by the particle swarm algorithm, the maximum number of steps of the motor and the actual pressure corresponding to the maximum number of steps of the motor. When the motor is at the maximum number of steps, the butterfly valve opening reaches the maximum value.

[0067] Determine the data pair consisting of the maximum number of steps of the motor and the actual pressure value corresponding to the maximum number of steps of the motor. For example, if the maximum number of steps of the motor is 2000 and the actual pressure value corresponding to the maximum number of steps of the motor is P, the data pair (P, 2000) can be constructed.

[0068] The optimization program uses the particle swarm algorithm and the value of the data pair (P, 2000) to find the fitting curve function g( x ) is the optimal value of the three constants a, b, and c.

[0069] like Figure 3As shown, the optimization program determines the optimal solutions of the three constants a, b, and c in the fitting curve function g( x ). The process mainly includes the following steps:

[0070] S201. Initialize the particle swarm.

[0071] Take the above fitting curve function as the objective function and obtain the actual pressure at different motor steps.

[0072] Initializing the particle swarm includes: setting the initial parameters of n particles, mainly including: setting the initial positions of the particles: randomly initializing the positions of a group of particles, where each particle represents a possible solution of a set of parameters (a, b, c); setting the initial velocities of the particles: randomly initializing the velocities for each particle; setting the number of iterations: the maximum number of evolutionary iterations is G.

[0073] S202. Evaluate the particle swarm.

[0074] Evaluating the particle swarm includes: calculating the fitness of each particle, that is, the value of the objective function g( x ). The lower the fitness (the smaller the error), the "better" the particle.

[0075] S203. Initialize the individual best and the global best .

[0076] S204. Update the positions X i and velocities V i of all particles in each dimension.

[0077] At the k-th (1 < k < G) iteration of the i-th (1 < i < n) particle, its position in the entire space is represented as , and the velocity is represented as ; when its current best position is found, and compared with the best position of each particle, the current global best position is obtained. Through iteration, each particle updates its own velocity and position according to the following formulas (4) and (5).

[0078] (4)

[0079] (5)

[0080] where is the local learning factor, is the global learning factor, and are random numbers between (0, 1), In order to avoid the algorithm from falling into the local optimal solution and improve the performance of the particle swarm algorithm, in the embodiment of the present application, the inertia weight , , All adopt the strategy of linearly decreasing from 0.9 to 0.1. , and The value is adjusted dynamically.

[0081] S205, according to the updated particle position X i and speed V i Evaluate particle swarms.

[0082] S206, update individual optimal and global optimal .

[0083] If the current particle's fitness is better than the best fitness in the particle's history, update the individual optimal If the fitness of the current particle is better than the best fitness of all particles in history, the global optimal value is updated. .

[0084] S207, determine whether the stop condition is met, if so, execute S210, if not, execute S208.

[0085] The stopping conditions include that the number of iterations reaches the maximum number of evolutionary iterations G or the improvement of the objective function is less than a certain threshold.

[0086] S208. Update the number of iterations k.

[0087] S209, update inertia weight w, local learning factor and the global learning factor , and returns to execute S204.

[0088] S210: Output optimization results.

[0089] When the maximum number of evolutionary iterations G is reached or the improvement of the objective function is less than a certain threshold, the iteration is stopped. The parameters (a, b, c) corresponding to the global optimum are the fitting curve function g( x ) is the optimal constant parameter.

[0090] Furthermore, the optimal parameters (a, b, c) are used to construct the fitting curve function g( x ), and verify it on the data set to check whether the fitting effect meets expectations. If it does not meet expectations, it may be necessary to run the particle swarm algorithm multiple times to ensure that the global optimal solution is found.

[0091] The fitting curve function g( x), the constant parameters (a, b, c) of the fitting curve function g(x) can be stored in the storage unit of the STM32. When executing the step of "substituting the current pressure into the fitting curve function for calculation", the constant parameters (a, b, c) of the fitting curve function g(x) are read from the storage unit.

[0092] S103, determining a target correction parameter based on the actual number of steps and the corresponding relationship between the number of motor steps and the correction parameter.

[0093] Figure 4 is a schematic diagram of a motor step number and actual pressure curve provided in an embodiment of the present application; Figure 4 It can be seen that due to the strong nonlinearity between the motor steps and the pressure inside the cavity, and since the butterfly valve opening is controlled by the motor steps, the pressures in different vacuum ranges have different sensitivities to the changes in the butterfly valve opening. In order to enable the butterfly valve to maintain good control performance within the working pressure range [0.1~800Torr] and eliminate the influence of nonlinearity in the pressure control system, in the embodiment of the present application, correction parameters are introduced according to the working characteristics of the butterfly valve to correct the PID parameters output by the fuzzy controller.

[0094] The corresponding relationship between the number of motor steps and the correction parameter can be understood as the relationship between the number of steps taken by the motor and the correction parameter required for the step.

[0095] The correspondence between the motor steps and the correction parameters can be expressed in the form of a data group or a data pair. Accordingly, based on the actual steps, a query is performed in the data pair consisting of the motor steps and the correction parameters, and the queried correction parameters are used as target parameters.

[0096] In a possible implementation, the correspondence between the motor steps and the correction parameter is expressed in the form of a correction function. Accordingly, the actual steps are substituted into the correction function as input, and the target correction parameter corresponding to the actual steps can be obtained by calculating the correction function.

[0097] Furthermore, the above correction function can be expressed by formula (6).

[0098] (6)

[0099] in, Indicates the target correction parameter corresponding to the current pressure x. It indicates the actual number of steps corresponding to the current pressure x. The actual number of steps refers to the number of steps taken by the motor when the butterfly valve opens from 0 to the opening value corresponding to the actual pressure. M indicates the maximum number of steps of the motor. The maximum number of steps of the motor refers to the number of steps taken by the motor when the butterfly valve opens from 0 to the maximum value. d is a preset constant parameter.

[0100] Optionally, M can be 10000 and d can be 0.5. M can be set according to the actual parameters of each component or device in the gas pressure control system. D can be determined by empirical values. The embodiments of the present application are not specifically limited.

[0101] When the current pressure is P1, substitute the current pressure P1 into the fitting curve function (Formula 3) for calculation to obtain the actual number of steps of the motor corresponding to the current pressure P1. , the actual number of steps of the motor Substitute into the correction function (Formula 6) to calculate and obtain the target correction parameter corresponding to the current pressure P1 .

[0102] S104, performing fuzzy processing on the control error signal and the error signal change rate to obtain a PID adjustment amount.

[0103] In one possible implementation, the control error signal and the error signal change rate are fuzzy processed to obtain a PID adjustment amount, including: quantizing the control error signal and the error signal change rate to obtain an error fuzzy value and an error change rate fuzzy value respectively; determining the membership values ​​of the error fuzzy value and the error change rate fuzzy value belonging to each fuzzy subset through a membership function; performing fuzzy reasoning on the membership values ​​belonging to each fuzzy subset based on fuzzy rules to obtain a target membership value; and clarifying the target membership value to obtain a PID adjustment amount.

[0104] The control error signal e is quantized to obtain an error fuzzy value E corresponding to the control error signal e.

[0105] Specifically, the control error signal e can be quantified by formula (7).

[0106] (7)

[0107] in, is the control error signal At the highest threshold of the physical domain, It is the lowest threshold of the control error signal e in the physical domain, and n is the quantization level.

[0108] The error signal change rate ec is quantified to obtain the error change rate fuzzy value Ec corresponding to the error signal change rate ec.

[0109] Specifically, the error signal change rate ec can be quantified by formula (8).

[0110] (8)

[0111] in, is the rate of change of the error signal At the highest threshold of the physical domain, It is the lowest threshold value of the error signal change rate ec in the physical domain, and n is the quantization level.

[0112] The error fuzzy value E and the error change rate fuzzy value Ec are input into the fuzzy controller, and the fuzzy controller finds the membership values ​​of the error fuzzy value E and the error fuzzy value Ec to each fuzzy subset through the membership function.

[0113] The fuzzy subsets in this application mainly include: {NB (negative large), NM (negative medium), NS (negative small), ZO (zero), PS (positive small), PM (positive medium), PB (positive large)}.

[0114] The error modulus fuzzy value E is input into the membership function calculation to obtain one or more membership values ​​belonging to a fuzzy subset corresponding to the error fuzzy value E; the error change rate fuzzy value Ec is input into the membership function calculation to obtain one or more membership values ​​belonging to a fuzzy subset corresponding to the error change rate fuzzy value Ec.

[0115] The above-mentioned membership function may include at least one or more of the following: Gaussian membership function, generalized bell-shaped membership function, S-shaped membership function, Z-shaped membership function, Sigmoid function-type membership function, trapezoidal membership function, and triangular membership function.

[0116] Specifically, this embodiment takes the triangle membership function as an example for explanation. The function formula of the triangle membership function is shown in formula (9).

[0117] (9)

[0118] in, x represents the parameter variable, which can be the error fuzzy value E or the error modulus fuzzy value E. , , is a constant parameter for calculating membership values, Represents the calculated membership value.

[0119] Among them, the fuzzy subsets include: {NB (Negative Big), NM (Negative Medium), NS (Negative Small), ZO (Zero), PS (Positive Small), PM (Positive Medium), PB (Positive Big)}. (NB, NM, NS, ZO, PS, PM, PB) are labels used for membership functions in fuzzy logic, which represent different fuzzy sets or the states of fuzzy variables. In fuzzy logic, the above labels are used to indicate the name or category of membership functions. NB stands for "Negative Big", indicating a very low membership value. NM stands for "Negative Medium", indicating a lower membership value. NS stands for "Negative Small", indicating a lower but not the lowest membership value. ZO stands for "Zero", indicating a membership value close to zero. PS stands for "Positive Small", indicating a small but positive membership value. PM stands for "Positive Medium", indicating a medium positive membership value. PB stands for "Positive Big", indicating a very high membership value.

[0120] When the triangular membership function is used to calculate the membership value of the error fuzzy value E to a fuzzy subset, the constant parameter , , By Figure 5 When the triangle membership function is used to calculate the membership value of the error change rate fuzzy value Ec belonging to a fuzzy subset, the constant parameter , , By Figure 6 Query in.

[0121] like Figure 5 and Figure 6 As shown, in the membership value-fuzzy domain, each fuzzy subset NB, NM, NS, ZO, PS, PM, PB corresponds to a triangle, and the left endpoint of each triangle, that is, the point where the membership function starts to rise, is a constant. The top point of each triangle, where the membership function reaches its maximum value, has a constant horizontal coordinate. The right end point of each triangle, where the membership function reaches its maximum value, is a constant. .

[0122] After calculating the error fuzzy value E, based on the error fuzzy value E Figure 5 The horizontal coordinate of the left end point of the triangle is used for query to determine the horizontal coordinate range of the triangle in which the horizontal coordinate of the error fuzzy value E is located, that is, to determine which fuzzy subset the error fuzzy value E belongs to. The horizontal coordinate value of the left end point of the triangle is used as , the horizontal coordinate value of the vertex of the triangle is taken as , the horizontal coordinate value of the right endpoint of the triangle is .Sure , , After the specific value of is substituted into the above formula (9), the membership value of the error fuzzy value E to a certain fuzzy subset is obtained. Since the abscissa of the error fuzzy value E may be within the abscissa range of multiple triangles, that is, the error fuzzy value E belongs to multiple fuzzy subsets, then, accordingly, by Figure 5 In the query, you can determine multiple , , The specific values ​​of are substituted into the above formula (9) for calculation respectively to obtain the membership value of the error fuzzy value E to each fuzzy subset.

[0123] After calculating the error change rate fuzzy value Ec, based on the error change rate fuzzy value Ec Figure 6 The horizontal coordinate of the error change rate fuzzy value Ec is queried to determine the horizontal coordinate range of the triangle in which the horizontal coordinate of the error change rate fuzzy value Ec is located, that is, to determine which fuzzy subset the error change rate fuzzy value Ec belongs to, and the horizontal coordinate value of the left endpoint of the triangle is taken as , the horizontal coordinate value of the vertex of the triangle is taken as , the horizontal coordinate value of the right endpoint of the triangle is .Sure , , After the specific value of is substituted into the above formula (9) for calculation, the membership value of the error change rate fuzzy value Ec belonging to a fuzzy subset is obtained. Since the horizontal coordinate of the error change rate fuzzy value Ec may be within the horizontal coordinate range of multiple triangles, that is, the error change rate fuzzy value Ec belongs to multiple fuzzy subsets, then, correspondingly, multiple , , The specific values ​​of are substituted into the above formula (9) in turn for calculation, and the membership values ​​of the error change rate fuzzy value Ec belonging to each fuzzy subset are obtained.

[0124] Take the error fuzzy value E belonging to the PS fuzzy subset and the PM fuzzy subset as an example for explanation. Figure 7As shown, the abscissa of the left endpoint of the triangle of the PS fuzzy subset is 0, the abscissa of the vertex of the PS triangle is 1, the abscissa of the right endpoint of the triangle of the PS fuzzy subset is 2, the abscissa of the left endpoint of the PM triangle is 1, the abscissa of the vertex of the PM fuzzy subset is 2, and the abscissa of the right endpoint of the PM triangle is 3. The error fuzzy value E is 1.2, which is located in both the PS triangle and the PM triangle, and belongs to the PS fuzzy subset and the PM fuzzy subset.

[0125] Then, the horizontal coordinate 0 of the left endpoint of the PS fuzzy subset triangle is taken as , the abscissa of the PS fuzzy subset triangle vertex is 1 as , the abscissa 2 of the right endpoint of the PS fuzzy subset triangle is Substituting the error fuzzy value E = 1.2 into the above formula (9) for calculation, we can get A(E) = 0.8, that is, the membership value of the error fuzzy value E to the PS fuzzy subset is 0.8. The horizontal coordinate 1 of the left end point of the PM fuzzy subset triangle is used as , the abscissa 2 of the PM fuzzy subset triangle vertex is , the abscissa 3 of the right endpoint of the PM fuzzy subset triangle is Substituting the error fuzzy value E=1.2 into the above formula (9) for calculation, we can get A(E)=0.2, that is, the membership value of the error fuzzy value E to the PM fuzzy subset is 0.2.

[0126] According to the above method, the error fuzzy value E is input into the triangle membership function calculation to obtain the membership value of the error fuzzy value E belonging to the two fuzzy subsets, and the error change rate fuzzy value Ec is input into the triangle membership function calculation to obtain the membership value of the error change rate fuzzy value Ec belonging to the two fuzzy subsets.

[0127] After determining the membership values ​​of the error fuzzy value E and the error change rate fuzzy value Ec to each fuzzy subset, based on the pre-set fuzzy rules, the membership values ​​of the error fuzzy value E and the error change rate fuzzy value Ec to each fuzzy subset are used to query in the above fuzzy rules to obtain the membership values ​​corresponding to the PID parameters. The membership values ​​corresponding to the PID parameters are clarified to obtain the PID adjustment parameters corresponding to the PID parameters.

[0128] In a possible implementation, the fuzzy rule table consists of 49 fuzzy rules, each of which gives a fuzzy relation R i (i=1, 2, 3, 4, ..., 49), these 49 fuzzy rules constitute the overall fuzzy relationship R of the system as shown in formula (10).

[0129] (10)

[0130] The total output V of fuzzy reasoning is expressed by formula (11).

[0131] (11)

[0132] Among them, A i is the membership value of the fuzzy subset.

[0133] For example, when the error fuzzy value E is 1.2, its corresponding membership in the PS fuzzy subset is 0.8, and the membership calculation formula is (2-1.2) / (2-1), where =0, =1, =2. Similarly, the membership degree of the corresponding PM fuzzy subset is 0.2. The membership degrees of the remaining fuzzy subsets are 0.

[0134] Assume that, after fuzzification, the error change rate fuzzy value Ec, its corresponding ZO fuzzy subset membership is 0.6, and its corresponding NS fuzzy subset membership is 0.4.

[0135] Through the fuzzy rule table, we can find that the error fuzzy value E belongs to the PS fuzzy subset, the error change rate fuzzy value Ec belongs to the ZO fuzzy subset, the fuzzy subset F1 obtained after fuzzy reasoning is NS, and the membership value M1 corresponding to the fuzzy subset F1 is: (0.8×0.6=0.48); the error fuzzy value E belongs to the PS fuzzy subset, the error change rate fuzzy value Ec belongs to the NS fuzzy subset, the fuzzy subset F2 obtained after fuzzy reasoning is ZO, and the membership value M2 corresponding to the fuzzy subset F2 is: (0.8×0.4=0 .32); the error fuzzy value E belongs to the PM fuzzy subset, the error change rate fuzzy value Ec belongs to the ZO fuzzy subset, the fuzzy subset F3 obtained after fuzzy reasoning is NS, and the membership value M3 corresponding to the fuzzy subset F3 is: (0.2×0.6=0.12); the error fuzzy value E belongs to the PM fuzzy subset, the error change rate fuzzy value Ec belongs to the NS fuzzy subset, the fuzzy subset F4 obtained after fuzzy reasoning is NS, and the membership value M4 corresponding to the fuzzy subset F4 is: (0.2×0.4=0.08).

[0136] After fuzzy reasoning, the inferred fuzzy subsets and the membership values ​​of each fuzzy subset are obtained, and the PID adjustment parameters are obtained by performing a clarification calculation based on the membership values ​​of each fuzzy subset and each modulus subset. Among them, the clarification method adopts the centroid method, and the clarification method is calculated by formula (12).

[0137] (12)

[0138] in, is the first fuzzy subsets, It is a fuzzy subset The membership value of j Indicates the serial number of the control parameter, where j =1, N1 represents the proportional parameter k p The corresponding adjustment parameters are j =2, N2 represents the integral parameter k i The corresponding adjustment parameters are j =3, N3 represents the differential parameter k d The corresponding adjustment parameter, n represents the total number of fuzzy subsets.

[0139] In one possible implementation, since the PID parameters include the proportional parameter k p , integration parameter k i and the differential parameter k d Each PID parameter can correspond to different fuzzy rules or the same fuzzy rules.

[0140] The following is a brief introduction to the fuzzy reasoning process of PID parameters, taking the example that each PID parameter corresponds to different fuzzy rules.

[0141] Table 1 shows the scale parameter k p The corresponding fuzzy rule table.

[0142] Table 1

[0143]

[0144] Based on the membership values ​​of the error fuzzy value E to each fuzzy subset and the membership values ​​of the error change rate fuzzy value Ec to each fuzzy subset, according to the fuzzy reasoning method provided in the above embodiment, a query is performed in the above Table 1 (i.e., fuzzy reasoning is performed), and the proportion parameter k is obtained. p The membership value belonging to each fuzzy subset.

[0145] The scale parameter k p After fuzzy reasoning, the membership values ​​belonging to each fuzzy subset and the membership values ​​belonging to each fuzzy subset are substituted into the above formula (12) to calculate the proportion parameter k p The corresponding PID adjustment parameter N1.

[0146] Based on the scale parameter k p The corresponding PID adjustment parameter N1 and the preset proportional parameter k p The corresponding first scale factor λ1 calculates the scale parameter k p Corresponding PID adjustment amount The first proportional factor λ1 can be set according to actual conditions.

[0147] Specifically, the scale parameter k p Corresponding PID adjustment amount It can be calculated by formula (13).

[0148] (13)

[0149] Table 2 shows the integral parameter k i The corresponding fuzzy rule table.

[0150] Table 2

[0151]

[0152] Based on the membership values ​​of the error fuzzy value E to each fuzzy subset and the membership values ​​of the error change rate fuzzy value Ec to each fuzzy subset, according to the fuzzy reasoning method provided in the above embodiment, a query is performed in the above Table 2 (i.e., fuzzy reasoning is performed), and the proportion parameter k is obtained. i The membership value of each fuzzy subset. i After fuzzy reasoning, the membership values ​​belonging to each fuzzy subset and the membership values ​​belonging to each fuzzy subset are substituted into the above formula (12) to calculate the integral parameter k i The corresponding PID adjustment parameter N2.

[0153] Based on the integration parameter k i The corresponding PID adjustment parameter N2 and the preset integral parameter k i The corresponding second proportional factor λ2 calculates the integral parameter k i Corresponding PID adjustment amount The second proportional factor λ2 can be set according to actual conditions.

[0154] Specifically, the integral parameter k i Corresponding PID adjustment amount It can be calculated by formula (14).

[0155] (14)

[0156] Table 3 is the differential parameter k d The corresponding fuzzy rule table.

[0157] Table 3

[0158]

[0159] Based on the membership values ​​of the error fuzzy value E to each fuzzy subset and the membership values ​​of the error change rate fuzzy value Ec to each fuzzy subset, according to the fuzzy reasoning method provided in the above embodiment, a query is performed in the above Table 3 (i.e., fuzzy reasoning is performed) to obtain the differential parameter k d The membership value of each fuzzy subset. d After fuzzy reasoning, the membership values ​​belonging to each fuzzy subset and the membership values ​​belonging to each fuzzy subset are substituted into the above formula (12) to calculate the differential parameter k d The corresponding PID adjustment parameter is N3.

[0160] Based on the differential parameter k d The corresponding PID adjustment parameter N3 and the preset differential parameter k d The corresponding third proportional factor λ3 calculates the differential parameter k d Corresponding PID adjustment amount The third proportional factor λ3 can be set according to actual conditions.

[0161] Specifically, the differential parameter k d Corresponding PID adjustment amount It can be calculated by formula (15).

[0162] (15)

[0163] S105 . Determine the PID parameters at the current moment based on the target correction parameters, the PID adjustment amount, and the PID parameters at the initial moment.

[0164] The initial PID parameters are expressed as k o The PID parameters at the current moment are represented by k(t). The PID adjustment amount and the PID parameters at the initial moment are corrected using the target correction parameters to obtain the PID parameters at the current moment.

[0165] In a possible implementation, the PID parameter at the current moment is the product of the target correction parameter and a first sum value, and the first sum value is the sum of the PID parameter at the initial moment and the PID adjustment amount.

[0166] Specifically, the current scale parameter k p (t) is the product of the target correction parameter and the first sum value, the first sum value is the initial time scale parameter k op With the scale parameter k p Corresponding adjustment amount The sum value of .

[0167] The current scale parameter k p (t) can be calculated by formula (16).

[0168] (16)

[0169] The integration parameter k at the current moment i (t) is the product of the target correction parameter and the first sum value, the first sum value is the initial moment integral parameter k oi With the scale parameter k i Corresponding adjustment amount The sum value of .

[0170] The integration parameter k at the current moment i (t) can be calculated by formula (17).

[0171] (17)

[0172] The differential parameter k at the current moment d (t) is the product of the target correction parameter and the first sum value, and the first sum value is the initial differential parameter k od With the scale parameter k d Corresponding adjustment amount The sum value of .

[0173] The integration parameter k at the current moment d (t) can be calculated by formula (18).

[0174] (18)

[0175] S106. Calculate a control signal of the butterfly valve based on the current PID parameters and the PID control algorithm. The control signal is used to control the opening of the butterfly valve.

[0176] The incremental PID control algorithm in the PID controller generates a control signal B(t) of the butterfly valve based on the PID parameters at the current moment. The control signal B(t) is the number of rotation steps of the stepper motor connected to the butterfly valve.

[0177] The scale parameter k is determined through the above steps. p (t), integral parameter k i (t) and the differential parameter k d (t).

[0178] The control signal B(t) is calculated by formula (20).

[0179] (20)

[0180] Among them, t represents the current time, t-1 represents the time before the current time, and t-2 represents the time before the time before the current time. represents the control signal corresponding to time t, represents the control signal corresponding to time t-1, represents the increment of the control signal between time t-1 and time t, represents the control error signal corresponding to time t, represents the control error signal corresponding to time t-1, Represents the control error signal corresponding to time t-2.

[0181] The stepper motor can drive the butterfly valve to rotate. When the number of rotation steps of the stepper motor is B(t), the calculation formula for the rotation angle θ of the butterfly valve driven by the stepper motor is shown in (21).

[0182] (twenty one)

[0183] Where M is the maximum number of steps of the motor, is the maximum opening and closing angle of the butterfly valve, that is, the maximum opening of the butterfly valve. Represents the control signal corresponding to time t.

[0184] The butterfly valve is driven by a stepper motor to rotate, thereby changing the flow area of ​​the butterfly valve. , the flow area of ​​the butterfly valve It can be calculated by formula (22).

[0185] (twenty two)

[0186] Among them, θ represents the rotation angle of the butterfly valve, r represents the radius of the butterfly valve flow section, Indicates the flow area of ​​the butterfly valve.

[0187] Flow area of ​​butterfly valve The change of the butterfly valve gas flow Changes occur, thereby changing the pressure inside the chamber. Gas flow can be calculated by formula (23), and the changed pressure P3 inside the cavity is calculated by formula (24).

[0188] (twenty three)

[0189] (twenty four)

[0190] in, is the flow coefficient of the butterfly valve, is the gas constant, is the temperature before the valve, is the intake flow rate of the flowmeter, is the running time of the system from startup to the current time t, is the internal volume of the cavity.

[0191] The disclosed embodiment provides a method for controlling the opening of a butterfly valve, the method comprising: determining a control error signal and a rate of change of the error signal based on the current pressure and a preset pressure inside a cavity; determining the actual number of steps corresponding to the current pressure based on the corresponding relationship between the current pressure and a predetermined number of motor steps and the actual pressure; determining a target correction parameter based on the actual number of steps and the corresponding relationship between the butterfly valve opening and the correction parameter; performing fuzzy processing on the control error signal and the rate of change of the error signal to obtain a PID adjustment amount; determining the PID parameters at the current moment based on the target correction parameter, the PID adjustment amount and the PID parameters at the initial moment; calculating a control signal of the butterfly valve based on the PID parameters and the PID control algorithm, the control signal being used to control the opening of the butterfly valve. Since the PID parameters are corrected by using fuzzy processing and correction parameters, the nonlinearity, hysteresis and other characteristics in the gas pressure control system and the influence of the compressibility of the gas on the control system are solved, and the control accuracy of the gas pressure is improved.

[0192] Figure 8 FIG. 1 is a schematic diagram of a structure of a butterfly valve opening control device in an embodiment of the present disclosure. Figure 8 As shown, the butterfly valve opening control device 70 provided in the embodiment of the present disclosure mainly includes: an error signal determination module 71, an actual step number determination module 72, a target correction parameter determination module 73, a PID adjustment amount determination module 74, a PID parameter determination module 75 and a control signal determination module 76.

[0193] Among them, the error signal determination module 71 is used to determine the control error signal and the error signal change rate based on the current pressure and the preset pressure inside the cavity; the actual step number determination module 72 is used to determine the actual step number corresponding to the current pressure based on the current pressure and the correspondence between the predetermined motor steps and the actual pressure; the target correction parameter determination module 73 is used to determine the target correction parameter based on the actual step number and the correspondence between the motor steps and the correction parameter; the PID adjustment amount determination module 74 is used to perform fuzzy processing on the control error signal and the error signal change rate to obtain the PID adjustment amount; the PID parameter determination module 75 is used to determine the PID parameters at the current moment based on the target correction parameter, the PID adjustment amount and the PID parameters at the initial moment; the control signal determination module 76 is used to calculate the control signal of the butterfly valve based on the PID parameters at the current moment and the PID control algorithm, and the control signal is used to control the opening of the butterfly valve.

[0194] The disclosed embodiment provides a control device for the opening of a butterfly valve, which is mainly used to execute the following process: based on the current pressure and the preset pressure inside the cavity, determine the control error signal and the error signal change rate; based on the current pressure and the correspondence between the predetermined motor steps and the actual pressure, determine the actual number of steps corresponding to the current pressure; based on the correspondence between the actual number of steps and the motor steps and the correction parameters, determine the target correction parameter; perform fuzzy processing on the control error signal and the error signal change rate to obtain the PID adjustment amount; based on the target correction parameter, the PID adjustment amount and the PID parameters at the initial moment, determine the PID parameters at the current moment; based on the PID parameters at the current moment and the PID control algorithm, calculate the control signal of the butterfly valve, and the control signal is used to control the opening of the butterfly valve. Since the PID parameters are corrected by fuzzy processing and correction parameters, the nonlinearity, hysteresis and other characteristics in the gas pressure control system and the influence of the compressibility of the gas on the control system are solved, and the control accuracy of the gas pressure is improved.

[0195] In a possible implementation, the actual step number determination module 72 is specifically configured to substitute the current pressure into the fitting curve function to calculate and obtain the actual step number corresponding to the current pressure when the corresponding relationship between the motor step number and the actual pressure is expressed in the form of a fitting curve function;

[0196] The fitting curve function is expressed by the following formula:

[0197]

[0198] Where x represents the actual pressure, It indicates the actual number of steps corresponding to the actual pressure being x. The actual number of steps refers to the number of steps taken by the motor when the butterfly valve opening is opened from 0 to the opening value corresponding to the actual pressure. a, b, c are predetermined constant parameters. M indicates the maximum number of steps of the motor. The maximum number of steps of the motor refers to the number of steps taken by the motor when the butterfly valve opening is opened from 0 to the maximum value.

[0199] In a possible implementation, the constant parameters a, b, and c are determined by a particle swarm algorithm and an actual pressure corresponding to the maximum number of steps of the motor.

[0200] In a possible implementation, the correspondence between the motor steps and the correction parameter includes: a positive proportional relationship between the correction parameter and the motor steps,

[0201] In a possible implementation, the correspondence between the number of motor steps and the correction parameter is expressed in the form of a correction function;

[0202] The correction function is expressed by the following formula:

[0203]

[0204] in, Indicates the correction parameter corresponding to the actual pressure x, It indicates the actual number of steps corresponding to the actual pressure being x. The actual number of steps refers to the number of steps taken by the motor when the butterfly valve opening is opened from 0 to the opening value corresponding to the actual pressure. M indicates the maximum number of steps of the motor. The maximum number of steps of the motor refers to the number of steps taken by the motor when the butterfly valve opening is opened from 0 to the maximum value. d are preset constant parameters.

[0205] In one possible implementation, the PID adjustment amount determination module 74 is specifically used to quantize the control error signal and the error signal change rate, respectively, to obtain the error fuzzy value and the error change rate fuzzy value; determine the membership values ​​of the error fuzzy value and the error change rate fuzzy value belonging to each fuzzy subset through the membership function; perform fuzzy reasoning on the membership values ​​belonging to each fuzzy subset based on fuzzy rules to obtain the target membership value; and clarify the target membership value to obtain the PID adjustment amount.

[0206] In a possible implementation, the PID parameter at the current moment is the product of the target correction parameter and a first sum value, and the first sum value is the sum of the PID parameter at the initial moment and the PID adjustment amount.

[0207] The butterfly valve opening control device provided in the embodiment of the present disclosure can execute the butterfly valve opening control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0208] Fig. 9 is a schematic diagram of the structure of an electronic device provided in this embodiment. The electronic device may include a butterfly valve opening controller, such as Fig. 9 As shown, the electronic device 800 includes a processor 810, a memory 820, an input device 830, and an output device 840; the number of the processor 810 in the electronic device can be one or more. Fig. 9 A processor 810 is taken as an example; the processor 810, the memory 820, the input device 830 and the output device 840 in the electronic device can be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.

[0209] The memory 820, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the method for controlling the opening of a butterfly valve in the embodiment of the present invention. The processor 810 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 820, that is, implements the method for controlling the opening of a butterfly valve provided in the embodiment of the present invention.

[0210] The memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 820 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 820 may further include a memory remotely arranged relative to the processor 810, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0211] The input device 830 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device, and may include a keyboard, a mouse, etc. The output device 840 may include a display device such as a display screen.

[0212] The present application also provides a butterfly valve opening control system, such as Fig.10 As shown, the control system of the butterfly valve opening includes: a cavity 91, a pressure sensor 92, a butterfly valve opening controller 93, a stepper motor 94, and a butterfly valve 95; wherein the cavity 91 is used to store gas; the pressure sensor 92 is used to monitor the current pressure in the cavity and send the current pressure to the butterfly valve opening controller; the butterfly valve opening controller 93 is used to execute any of the above-mentioned butterfly valve opening control methods based on the current pressure to obtain a control signal of the butterfly valve; the stepper motor 94 is used to drive the valve of the butterfly valve to rotate based on the control signal; the butterfly valve 95 is used to control the gas flow entering the cavity 91 based on the valve position of the butterfly valve.

[0213] The control system of the butterfly valve opening includes: a flow meter 98 and a gas source 99. The gas source 99 is used to provide the required gas for the cavity, which can be compressed air, nitrogen or other industrial gases. The flow meter 98 is used to measure the gas flow entering the cavity to ensure the stability and accuracy of the gas supply.

[0214] After the gas pressure control system is started, the pressure sensor 92 monitors the current pressure P1 in the cavity 91 and transmits the current pressure P1 to the butterfly valve opening controller 93. At the same time, the host computer 96 transmits the stored preset pressure P2 to the butterfly valve opening controller 93. The butterfly valve opening controller 93 calculates the control error signal e and the error signal change rate ec based on the current pressure P1 and the preset pressure P2, and then inputs the control error signal e and the error signal change rate ec into the fuzzy controller for fuzzy processing to obtain the proportional parameter k p The adjustment parameter N1, the integral parameter k i The adjustment parameter N2, the differential parameter kd The adjustment parameter N3 is used to adjust the scale parameter k p The adjustment parameter N1, the integral parameter k i The adjustment parameter N2, the differential parameter k d The adjustment parameter N3 and the current pressure P1 are input into the preset correction function for calculation to obtain the corrected proportional parameter k p , integration parameter k i , the differential parameter k d The incremental PID control algorithm in the PID controller is based on the corrected proportional parameter k p , integration parameter k i , the differential parameter k d , generating a control signal B(t) for the butterfly valve, the control signal B(t) refers to the number of rotation steps of the stepper motor connected to the butterfly valve 95. The stepper motor 94 rotates and drives the butterfly valve 95 to rotate, so as to control the opening of the butterfly valve. The vacuum pump 97 pumping rate is adjusted according to the opening of the vacuum butterfly valve to control the gas pressure in the cavity 91.

[0215] The system continuously cycles the above process until the gas pressure in the chamber reaches and is maintained within the preset pressure range.

[0216] This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a computer processor, it is used to implement the method for controlling the opening of a butterfly valve provided in the embodiment of the present invention.

[0217] Of course, the computer-readable storage medium provided in the embodiment of the present invention stores a computer program which is not limited to the method operations described above, but can also execute related operations in the method for controlling the opening of a butterfly valve provided in any embodiment of the present invention.

[0218] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FLASH), a hard disk or an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0219] It is worth noting that in the embodiment of the above-mentioned butterfly valve opening control device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0220] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0221] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for controlling the opening of a butterfly valve, characterized in that: The butterfly valve is connected to the cavity, and the method comprises: Determining a control error signal and a rate of change of the error signal based on a current pressure and a preset pressure inside the cavity; Determine the actual number of steps corresponding to the current pressure based on the current pressure and a predetermined correspondence between the number of motor steps and the actual pressure; Determining a target correction parameter based on the actual number of steps and the corresponding relationship between the number of motor steps and the correction parameter; Performing fuzzy processing on the control error signal and the error signal change rate to obtain a PID adjustment amount; Determine the PID parameter at the current moment based on the target correction parameter, the PID adjustment amount and the PID parameter at the initial moment; the PID parameter at the current moment is the product of the target correction parameter and a first sum value, and the first sum value is the sum of the PID parameter at the initial moment and the PID adjustment amount; A control signal of the butterfly valve is calculated based on the PID parameters at the current moment and a PID control algorithm, and the control signal is used to control the opening of the butterfly valve.

2. The method according to claim 1, characterized in that The determining the actual number of steps corresponding to the current pressure based on the current pressure and a predetermined correspondence relationship between the number of motor steps and the actual pressure includes: When the corresponding relationship between the motor steps and the actual pressure is expressed in the form of a fitting curve function, the current pressure is substituted into the fitting curve function to calculate and obtain the actual steps corresponding to the current pressure; The fitting curve function is expressed by the following formula: in, x represents the actual pressure, It indicates the actual number of steps corresponding to the actual pressure being x. The actual number of steps refers to the number of steps taken by the motor when the butterfly valve opening is opened from 0 to the opening value corresponding to the actual pressure. a, b, c are predetermined constant parameters. M indicates the maximum number of steps of the motor. The maximum number of steps of the motor refers to the number of steps taken by the motor when the butterfly valve opening is opened from 0 to the maximum value.

3. The method according to claim 2, characterized in that The constant parameters a, b, c are determined by a particle swarm algorithm and the actual pressure corresponding to the maximum number of steps of the motor.

4. The method according to claim 1, characterized in that The corresponding relationship between the motor steps and the correction parameter includes: the correction parameter is in direct proportion to the motor steps.

5. The method according to claim 4, characterized in that The corresponding relationship between the motor steps and the correction parameters is expressed in the form of a correction function; The correction function is expressed by the following formula: in, Indicates the correction parameter corresponding to the actual pressure x, It indicates the actual number of steps corresponding to the actual pressure being x. The actual number of steps refers to the number of steps taken by the motor when the butterfly valve opening is opened from 0 to the opening value corresponding to the actual pressure. M indicates the maximum number of steps of the motor. The maximum number of steps of the motor refers to the number of steps taken by the motor when the butterfly valve opening is opened from 0 to the maximum value. d are preset constant parameters.

6. The method according to claim 1, characterized in that The fuzzy processing is performed on the control error signal and the error signal change rate to obtain the PID adjustment amount, including: Quantizing the control error signal and the error signal change rate to obtain an error fuzzy value and an error change rate fuzzy value; Determining the membership values ​​of the error fuzzy value and the error change rate fuzzy value to each fuzzy subset through a membership function; Performing fuzzy reasoning on the membership values ​​belonging to each fuzzy subset based on fuzzy rules to obtain a target membership value; The target membership value is clarified to obtain a PID adjustment amount.

7. A butterfly valve opening controller, characterized in that: The controller comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for controlling the opening of a butterfly valve as described in any one of claims 1 to 6.

8. A butterfly valve opening control system, characterized in that: The butterfly valve opening control system comprises: a cavity, a pressure sensor, a butterfly valve opening controller, a stepping motor, and a butterfly valve; Wherein, the cavity is used to store gas; The pressure sensor is used to monitor the current pressure in the cavity and send the current pressure to the butterfly valve opening controller; The butterfly valve opening controller is used to execute the butterfly valve opening control method according to any one of claims 1 to 6 based on the current pressure to obtain a control signal of the butterfly valve; The stepper motor is used to drive the butterfly valve to rotate based on the control signal; The butterfly valve is used to control the gas flow entering the cavity based on the valve position of the butterfly valve.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a method for controlling the opening of a butterfly valve as described in any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Method and system for dynamically adjusting pressure of gas collecting pipe of coke oven based on intelligent control

    CN120973100A