A valve flow control method, device and electronic equipment
Through the combination of fuzzy algorithm and PID algorithm, precise control of valve flow is achieved, and the problem of low valve flow control accuracy in the existing technology is solved, the control accuracy and device life are improved, and the degree of intelligence is improved.
Patent Information
- Application Number
- CN202110522867.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-13
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-05-13
AI Technical Summary
In the prior art, the valve flow control accuracy is low and cannot meet the demand for precise control in industrial production.
The fuzzy algorithm and PID algorithm are combined, and the flow and pressure values of the valve input and output ports are adjusted in real time. Through data acquisition and processing, the precise control of the valve opening is achieved and the flow control accuracy is improved.
It improves the accuracy of valve flow control, extends the service life of the valve device, has stable control performance, strong applicability and high intelligence.
Smart Images

Figure CN115344064B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology application technology, and in particular to a valve flow control method, device and electronic equipment. Background Art
[0002] With the rapid development of the smart Internet era, the standards for industrial production have become more stringent, and there are stricter regulations on product ratios. The precise control of flow quality is particularly important. Therefore, the research and implementation of precise control of valve flow is not only a scientific research demand, but also a production demand of modern industry. At present, the control method of valve flow is still manual control or controller open-loop control, which has low accuracy. Summary of the invention
[0003] The purpose of the present invention is to provide a valve flow control method, device and electronic equipment to solve the problem of low precision of the current valve flow control method.
[0004] To achieve the above object, an embodiment of the present invention provides a method for controlling valve flow, comprising:
[0005] Acquire a first flow rate of the controlled medium, a first opening of the valve, and a first pressure value at the valve outlet; wherein the first flow rate is a volume flow rate or a mass flow rate of the controlled medium;
[0006] Based on a fuzzy algorithm and a PID algorithm, the first flow rate is adjusted to obtain an adjusted second flow rate;
[0007] Calculating a second opening of the valve according to the second flow rate and the first pressure value;
[0008] Based on the fitting relationship between the output work under different densities corresponding to different valve displacements, the initial expected opening of the valve is determined;
[0009] Based on a fuzzy algorithm, adjusting the initial desired opening according to the second opening to obtain an adjusted desired opening;
[0010] The valve flow rate is controlled according to the adjusted desired opening and the first opening.
[0011] Optionally, the adjusting the first flow rate based on the fuzzy algorithm and the PID algorithm to obtain the adjusted second flow rate includes:
[0012] Based on multiple flow rates of the controlled medium collected according to a preset time step, an average flow rate is calculated;
[0013] Determine a first difference between the flow average and a given expected flow, and determine a first rate of change of the first difference over time;
[0014] Based on a fuzzy algorithm, a target proportional parameter, a target integral parameter, and a target differential parameter are obtained according to the first difference and the first rate of change;
[0015] Based on the PID algorithm of the target proportional parameter, the target integral parameter, and the target differential parameter, the first flow rate is adjusted to obtain an adjusted second flow rate.
[0016] Optionally, the calculating the flow average value based on the flow rates of a plurality of controlled media collected according to a preset time step includes:
[0017] Based on multiple flow rates of the controlled medium collected according to a preset time step, calculating the standard deviation of the multiple flow rates and the arithmetic mean of the multiple flow rates;
[0018] If the standard deviation is less than or equal to the arithmetic mean, the arithmetic mean is determined as the flow average;
[0019] If the standard deviation is greater than the arithmetic mean, the maximum value and the minimum value among the multiple flow rates are removed, and the arithmetic mean of the multiple flow rates after removing the maximum value and the minimum value is determined as the flow mean value.
[0020] Optionally, the fuzzy algorithm is used to obtain a target proportional parameter, a target integral parameter, and a target differential parameter according to the first difference and the first change rate, including:
[0021] Performing fuzzy processing on the first difference and the first change rate to obtain a proportional parameter change, an integral parameter change, and a differential parameter change;
[0022] Defuzzification is performed on the proportional parameter change, the integral parameter change, and the differential parameter change;
[0023] The target proportional parameter, the target integral parameter and the target differential parameter are determined according to the proportional parameter change, the integral parameter change and the differential parameter change after defuzzification, as well as the initial proportional parameter, the initial integral parameter and the initial differential parameter.
[0024] Optionally, calculating a second opening of the valve according to the second flow rate and the first pressure value includes:
[0025] Based on the output work fitting relationship, according to the second flow rate and the first pressure value, a second opening of the valve is calculated;
[0026] The output work-based fitting relationship is associated with the flow rate of the controlled medium, the valve opening, and the pressure value of the valve outlet.
[0027] Optionally, determining the initial expected opening of the valve based on the output work fitting relationship between different valve displacements and different densities includes:
[0028] Based on the fitting relationship between the output work under different densities and different valve displacements, the valve opening corresponding to the minimum output work is determined;
[0029] The initial expected valve opening is determined according to the smaller one of the valve opening corresponding to the minimum output work value and the given valve opening.
[0030] Optionally, the adjusting the initial desired opening according to the second opening based on the fuzzy algorithm to obtain the adjusted desired opening includes:
[0031] determining a second difference between the second opening and the initial desired opening, and determining a second rate of change of the second difference over time;
[0032] Based on a fuzzy algorithm, determining an adjustment value of the valve opening according to the second difference and the second change rate;
[0033] The initial desired opening is adjusted according to the adjustment value of the valve opening to obtain an adjusted desired opening.
[0034] Optionally, the determining the adjustment value of the valve opening according to the second difference and the second change rate based on a fuzzy algorithm includes:
[0035] Performing fuzzy processing on the second difference and the second change rate to obtain a fuzzy value;
[0036] The fuzzy value is defuzzified to obtain an adjustment value of the valve opening.
[0037] Optionally, controlling the valve flow rate according to the adjusted desired opening and the first opening includes:
[0038] Performing fuzzy processing on a third difference between the adjusted desired opening and the first opening to determine a pulse signal;
[0039] The pulse signal is output to a driving module of the valve; wherein the pulse signal is used to drive the driving module to control the valve opening of the valve to control the valve flow.
[0040] To achieve the above object, an embodiment of the present invention provides a valve flow control device, comprising:
[0041] An acquisition module, used to acquire a first flow rate of a controlled medium, a first opening of a valve, and a first pressure value at a valve outlet; wherein the first flow rate is a volume flow rate or a mass flow rate of the controlled medium;
[0042] A first regulating module, used for regulating the first flow rate based on a fuzzy algorithm and a PID algorithm to obtain an regulated second flow rate;
[0043] a calculation module, configured to calculate a second opening of the valve according to the second flow rate and the first pressure value;
[0044] A determination module, for determining an initial desired opening of the valve based on a fitting relationship between output work at different densities corresponding to different valve displacements;
[0045] A second adjustment module, configured to adjust the initial desired opening according to the second opening based on a fuzzy algorithm to obtain an adjusted desired opening;
[0046] A control module is used to control the valve flow rate according to the adjusted desired opening and the first opening.
[0047] Optionally, the first adjustment module includes:
[0048] A first calculation submodule is used to calculate a flow average value based on multiple flow rates of the controlled medium collected according to a preset time step;
[0049] A first determination submodule, configured to determine a first difference between the flow average value and a given expected flow, and to determine a first rate of change of the first difference over time;
[0050] A first processing submodule, configured to obtain a target proportional parameter, a target integral parameter, and a target differential parameter according to the first difference and the first change rate based on a fuzzy algorithm;
[0051] The first regulating submodule is used to regulate the first flow rate based on the PID algorithm of the target proportional parameter, the target integral parameter, and the target differential parameter to obtain an regulated second flow rate.
[0052] Optionally, the first calculation submodule includes:
[0053] A calculation unit, configured to calculate, based on a plurality of flow rates of the controlled medium collected according to a preset time step, a standard deviation of the plurality of flow rates and an arithmetic mean of the plurality of flow rates;
[0054] A first processing unit, configured to determine the arithmetic mean as the flow average value if the standard deviation is less than or equal to the arithmetic mean value;
[0055] The second processing unit is used to remove the maximum value and the minimum value of the multiple flow rates if the standard deviation is greater than the arithmetic mean value, and determine the arithmetic mean value of the multiple flow rates after removing the maximum value and the minimum value as the flow mean value.
[0056] Optionally, the first processing submodule includes:
[0057] a third processing unit, configured to perform fuzzy processing on the first difference and the first change rate to obtain a proportional parameter change, an integral parameter change, and a differential parameter change;
[0058] A fourth processing unit, used for performing defuzzification processing on the proportional parameter change, the integral parameter change, and the differential parameter change;
[0059] The fifth processing unit is used to determine the target proportional parameter, the target integral parameter, and the target differential parameter according to the proportional parameter change, the integral parameter change, and the differential parameter change after defuzzification processing, as well as the initial proportional parameter, the initial integral parameter, and the initial differential parameter.
[0060] Optionally, the calculation module includes:
[0061] A second calculation submodule, configured to calculate a second opening of the valve according to the second flow rate and the first pressure value based on an output work fitting relationship;
[0062] The output work fitting relationship is associated with the flow rate of the controlled medium, the valve opening and the pressure value of the valve outlet.
[0063] Optionally, the determining module includes:
[0064] The second determination submodule is used to determine the valve opening corresponding to the minimum output work value based on the output work fitting relationship between different valve displacements and different densities;
[0065] The third determination submodule is used to determine the initial expected valve opening according to the smaller one of the valve opening corresponding to the minimum output work value and the given valve opening.
[0066] Optionally, the second adjustment module includes:
[0067] a fourth determination submodule, configured to determine a second difference between the second opening and the initial expected opening, and determine a second rate of change of the second difference over time;
[0068] a second processing submodule, configured to determine an adjustment value of the valve opening according to the second difference and the second change rate based on a fuzzy algorithm;
[0069] The second regulating submodule is used to adjust the initial desired opening according to the adjustment value of the valve opening to obtain the adjusted desired opening.
[0070] Optionally, the second processing submodule includes:
[0071] a sixth processing unit, configured to perform fuzzy processing on the second difference and the second change rate to obtain a fuzzy value;
[0072] The seventh processing unit is used to perform defuzzification processing on the fuzzy value to obtain an adjustment value of the valve opening.
[0073] Optionally, the control module includes:
[0074] A third processing submodule, configured to perform fuzzy processing on a third difference between the adjusted desired opening and the first opening to determine a pulse signal;
[0075] The control submodule is used to output the pulse signal to the driving module of the valve; wherein the pulse signal is used to drive the driving module to control the valve opening of the valve to control the valve flow.
[0076] To achieve the above-mentioned purpose, an embodiment of the present invention provides an electronic device, including a transceiver, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; when the processor executes the program or instruction, the steps in the valve flow control method as described above are implemented.
[0077] To achieve the above object, an embodiment of the present invention provides a readable storage medium on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps in the valve flow control method as described above are implemented.
[0078] The beneficial effects of the above technical solution of the present invention are as follows:
[0079] This embodiment adopts fuzzy algorithm and PID algorithm to regulate the flow rate at the valve input port, and performs fuzzy regulation of the desired valve opening based on the regulated flow rate, the collected pressure value of the output port, the valve opening, etc., thereby realizing real-time regulation of the desired valve opening. In this way, the joint regulation of the flow rate regulation of the valve input port and the desired valve opening (or displacement) at the output port through the fuzzy algorithm and PID algorithm is combined with real-time regulation, which can improve the control accuracy of the valve flow rate and extend the service life of the valve device. It has the advantages of stable control performance, strong applicability and high intelligence. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] Figure 1 A flow chart of a method for controlling valve flow according to an embodiment of the present invention;
[0081] Figure 2 This is a structural diagram of a data acquisition module according to an embodiment of the present invention;
[0082] Figure 3 A schematic diagram of a conversion circuit combining a multi-way switch and an analog-to-digital conversion chip according to an embodiment of the present invention;
[0083] Figure 4 Schematic diagram of the principle of a fuzzy adaptive PID controller according to an embodiment of the present invention;
[0084] Figure 5 It is a flow chart of the joint control of valve flow control combined with real-time adjustment of the desired valve opening based on fuzzy algorithm and PID algorithm in an embodiment of the present invention;
[0085] Figure 6 A block diagram of a valve flow control device according to an embodiment of the present invention;
[0086] Figure 7 is a block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0087] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0088] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present invention. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0089] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0090] In the embodiments provided in the present application, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0091] Based on intelligent electric valves, automatic control of valve flow can be achieved. Intelligent electric valves can use single-chip microcomputer technology to process signals and output control quantities to drive AC motors to achieve linear displacement. This mechanism has the advantages of low price, simple operation, high integration, etc. It can communicate with the host computer, but in the face of complex working conditions, control lag and control failure may occur.
[0092] The development of electric valve intelligence will focus on automatic adjustment under complex working conditions and digital remote communication combined with Internet of Things technology. This application is based on the analysis of the control method of the precision flow control valve as a multi-mode controller in the closed-loop control mode of the volume flow of the controlled medium, which mainly includes a data acquisition module, a control module and a motor control module. The traditional PID algorithm is optimized by combining the use of fuzzy adaptive algorithm, outputting pulse signals, and regulating the valve with the received pulse signals to achieve precise control of the flow of the controlled medium. It is suitable for precise control of different media under complex working conditions. Combined with Internet of Things technology, it has a higher degree of intelligence.
[0093] like Figure 1 As shown, a valve flow control method according to an embodiment of the present invention includes:
[0094] Step 11: Obtain a first flow rate of the controlled medium, a first opening of the valve, and a first pressure value at the valve outlet.
[0095] The first flow rate is the volume flow rate or mass flow rate of the controlled medium. That is to say, the valve flow rate control in the embodiment of the present invention can adjust the valve opening based on the mass flow rate of the controlled medium or the volume flow rate of the controlled medium.
[0096] Step 12: Based on the fuzzy algorithm and the PID algorithm, the first flow rate is adjusted to obtain an adjusted second flow rate.
[0097] Step 13: Calculate a second opening of the valve according to the second flow rate and the first pressure value.
[0098] Step 14: Determine the initial expected opening of the valve based on the fitting relationship between different valve displacements and output work at different densities.
[0099] Step 15: Based on a fuzzy algorithm, the initial desired opening is adjusted according to the second opening to obtain an adjusted desired opening.
[0100] Step 16: Control the valve flow rate according to the adjusted desired opening and the first opening.
[0101] In the above scheme, fuzzy algorithm and PID algorithm are used to adjust the flow rate of the valve input port, and fuzzy adjustment of the desired valve opening is performed based on the adjusted flow rate, the collected pressure value of the output port, the valve opening, etc., thereby realizing real-time adjustment of the desired valve opening. In this way, the joint regulation of the flow rate adjustment of the valve input port and the desired valve opening (or displacement) of the output port through fuzzy algorithm and PID algorithm is combined with real-time adjustment, which can improve the control accuracy of the valve flow and extend the service life of the valve device. It has the advantages of stable control performance, strong applicability and high degree of intelligence.
[0102] Wherein, obtaining a first flow rate of the controlled medium, a first opening of the valve, and a first pressure value of the valve outlet may include:
[0103] A first flow rate of the controlled medium collected by the flow sensor, a first opening of the valve collected by the angle sensor, and a first pressure value at the valve outlet collected by the pressure sensor are obtained.
[0104] Among them, the flow sensor can be arranged in the controlled medium, the angle sensor can be built in the valve, and the pressure sensor can be arranged at the outlet position of the valve.
[0105] Optionally, the temperature of the controlled medium may be collected by a temperature sensor. When the density of the controlled medium changes with the temperature, the density of the controlled medium may be regulated in combination with the collected temperature to ensure control accuracy.
[0106] The following combination Figure 2 The data acquisition module structure diagram is given to illustrate the data acquisition and processing process of the embodiment of the present invention:
[0107] Accurate data acquisition is the basis for achieving precise control of the flow valve, so the data acquisition module can include: a temperature sensor placed in the controlled medium, a flow sensor, and an angle sensor built into the valve.
[0108] Signals are collected respectively through the temperature sensor, flow sensor, and angle sensor built into the valve, and the resistance signal output by the temperature sensor is converted into a voltage signal through the temperature signal collection circuit, and the current signal output by the flow sensor is converted into a voltage signal through the flow signal collection circuit (since the signal output by the angle sensor is a voltage signal, the signal output by the angle sensor does not need to be converted); the three voltage signals obtained above are selected through a multi-way switch (such as CD4051), and the selected voltage signal is transmitted to the analog-to-digital conversion chip (such as ADS1110) through the output end. The analog-to-digital conversion chip can send the output signal to the execution body of the valve control (such as the CPU) to control the valve flow. For example, the analog-to-digital conversion chip can output the converted signal to the CPU through the IIC communication protocol.
[0109] Specifically, the function of the angle sensor is to detect the real-time opening of the valve and transmit it to the CPU through analog-to-digital conversion to achieve accurate closed-loop control of the valve opening. During the experiment, the density of the controlled medium needs to be selected. Since the density changes with temperature, a temperature sensor is used to collect the temperature. The function of the flow sensor is to collect the flow signal of the controlled medium and transmit it to the CPU through analog-to-digital conversion.
[0110] Since the present invention adopts multi-sensor signal input, the input channel can be selected through a multi-way switch. For example, the logic judgment chip CD4051 is selected as the multi-way switch, which is essentially a single-ended eight-channel switch. Its package is SOIC_16_208mil, with 3 site selection input terminals, 8 input channels, 1 output channel, and a pair of positive and negative power supply pins. The 3 site selection channels can realize eight control modes through binary combination, corresponding to the switch controlling the 8 input channels and 1 output channel.
[0111] The function of the analog-to-digital conversion chip is to convert the analog signal collected by the sensor into a digital signal that can be read by the CPU. Through the reasonable design of the analog-to-digital conversion chip, the accuracy of data collection can be improved, thereby ensuring the precise control of the valve flow. Figure 3 As shown, a conversion circuit combining a multi-way start-end and an analog-to-digital conversion chip is provided, such as designing a conversion circuit by using a CD4051 multi-way switch and an ADS1110 analog-to-digital conversion chip in combination.
[0112] Specifically, a CD4051 single-ended 8-channel multiplexer is used to implement multi-channel logic judgment, and a 16-bit ADS110 chip is used to replace the on-chip 12-bit analog-to-digital converter to improve data acquisition accuracy. The collected temperature signal, flow signal and valve opening signal are transmitted to channel 0, channel 1 and channel 2 of CD4051, that is, channel 0, channel 1 and channel 2 are input terminals; the address terminal is controlled by the CPU, and the on-off control of the input terminal is realized through the combination of high and low levels; pin 3 is the common output terminal, which outputs the voltage signal of the open channel to the ADS1110 analog-to-digital conversion chip; the ADS1110 chip transmits it to the CPU through the IIC communication protocol.
[0113] After collecting data based on the above data acquisition module, the valve flow control is realized by combining the fuzzy adaptive PID control algorithm to achieve intelligent and precise valve flow control.
[0114] Specifically, the data acquisition module converts the valve opening signal, flow signal and temperature signal of the controlled medium collected by the sensor into digital quantities and transmits them to the CPU; for example, the CPU analyzes and processes the collected data, outputs a control signal to the motor drive module to realize the motor drive function; the CPU outputs a control signal to the FLASH storage module to realize the data storage function; the CPU outputs a control signal to the display module to realize the display function; the CPU outputs a control signal to the Internet of Things communication module to realize the GPRS function and the GSM SMS function.
[0115] Optionally, the adjusting the first flow rate based on the fuzzy algorithm and the PID algorithm to obtain the adjusted second flow rate includes:
[0116] Based on multiple flow rates of the controlled medium collected according to a preset time step, an average flow rate is calculated;
[0117] Determine a first difference between the flow average and a given expected flow, and determine a first rate of change of the first difference over time;
[0118] Based on a fuzzy algorithm, a target proportional parameter, a target integral parameter, and a target differential parameter are obtained according to the first difference and the first rate of change;
[0119] Based on the PID algorithm of the target proportional parameter, the target integral parameter, and the target differential parameter, the first flow rate is adjusted to obtain an adjusted second flow rate.
[0120] like Figure 4 As shown in the figure, a schematic diagram of the principle of a fuzzy adaptive PID controller is given; in which the system flow error E and the system flow error change rate EC (i.e. De / Dt) are input variables, and the proportional parameter change, integral parameter change, and differential parameter change are output variables. By fuzzy processing E and EC, ΔK P , ΔK I , ΔK D The fuzzy control is used to convert the fuzzy processed ΔK P , ΔK I , ΔK D With the initial PID parameter K P0 , K I0 , K D0 Combined with each other, PID parameter self-tuning is realized, and the formulas are shown in 5-1, 5-2, and 5-3.
[0121] K P =K P0 +ΔK P (5-1)
[0122] K I =KI0 +ΔK I (5-2)
[0123] K D =K D0 +ΔK D (5-3)
[0124] Optionally, the calculating the flow average value based on the flow rates of a plurality of controlled media collected according to a preset time step includes:
[0125] Based on multiple flow rates of the controlled medium collected according to a preset time step, calculating the standard deviation of the multiple flow rates and the arithmetic mean of the multiple flow rates;
[0126] If the standard deviation is less than or equal to the arithmetic mean, the arithmetic mean is determined as the flow average;
[0127] If the standard deviation is greater than the arithmetic mean, the maximum value and the minimum value among the multiple flow rates are removed, and the arithmetic mean of the multiple flow rates after removing the maximum value and the minimum value is determined as the flow mean value.
[0128] Specifically, determine the value range of the input and output interfaces, such as combining the control requirements of the system with the control experience in actual operation to determine the values of the input and output. Optionally, the value range of the system error E is set to [-8, 8]; the value range of the system error closed-loop rate EC is set to [-0.2, 0.2]; the proportional parameter change value ΔK P The value range of is set to [-25,25]; the integral parameter change value ΔK I The value range is set to [-10,10]; the differential parameter change value ΔK D The value range is set to [-10,10].
[0129] Assume that data is collected once every 10 seconds, and 12 data are collected in two minutes as a group of data. Calculate this group of data x1, x2, x3...x 12 The standard deviation σ of (all real numbers), where the average value (arithmetic mean) is μ, N is 12, and the expected flow value is set to x 期望 Among them, the calculation formula of standard deviation σ is as follows:
[0130]
[0131] If the standard deviation σ is less than or equal to μ, that is, the standard deviation is small, indicating that the stability of the data set is good, then the system error E is taken as the sum of the average value μ and x of the data set. 期望 The difference. As shown in the following formula 5-4:
[0132] E=μ-x 期望(5-4)
[0133] If the standard deviation σ is greater than μ, that is, the standard deviation is large, indicating that the stability of the data set is poor, then the system error E is taken as the value of the data set x1, x2, x3...x 12 Remove the maximum value x max and the minimum value x min The average value μ' after x 期望 The difference. As shown in the following formula 5-5:
[0134] E=μ'-x 期望 (5-5)
[0135] Optionally, domain division: To facilitate calculation, the domains of the five input and output variables can be set to 13 levels such as {-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6}.
[0136] Determination of fuzzy subsets: The fuzzy subsets of the five variables are all "Positive Large", "Positive Middle", "Positive Small", "Zero", "Negative Small", "Negative Middle", and "Negative Large".
[0137] Membership function selection: Combined with operational experience, this embodiment uses a triangular membership function. P , ΔK I , ΔK D By converting the domain into 13 levels and using the triangular membership function, we can get the membership function assignment table of each variable, as shown in Table 1.
[0138] Table 1 Variable membership function assignment table
[0139]
[0140] Optionally, the fuzzy algorithm is used to obtain a target proportional parameter, a target integral parameter, and a target differential parameter according to the first difference and the first change rate, including:
[0141] Performing fuzzy processing on the first difference and the first change rate to obtain a proportional parameter change, an integral parameter change, and a differential parameter change;
[0142] Defuzzification is performed on the proportional parameter change, the integral parameter change, and the differential parameter change;
[0143] The target proportional parameter, the target integral parameter and the target differential parameter are determined according to the proportional parameter change, the integral parameter change and the differential parameter change after defuzzification, as well as the initial proportional parameter, the initial integral parameter and the initial differential parameter.
[0144] Specifically, fuzzy rules can be designed: for example, combining the control characteristics of PID with the experience summarized in actual operation, the output variable ΔK P , ΔK I , ΔK D Set the fuzzification rules corresponding to the input variables E and EC, including:
[0145] (1) Design fuzzy control planning table;
[0146] (2) Converted into computer statements;
[0147] According to the fuzzy control rule table, it can be converted into IF-THEN conditional statements and imported into the computer. For example: when E is positive and EC is positive, ΔK P is negative, ΔK I is positive, ΔK D It can be converted into an IF-THEN statement: If(E is PL)and(EC is PL)then(ΔK P is NL)(ΔK I is PL)(ΔK D is PL).
[0148] Defuzzification interface design: It is the process of clarifying the fuzzy quantity of the output variable obtained by fuzzy reasoning. The maximum membership decision method, the median decision method and the centroid algorithm can be selected. The embodiment of the present invention uses the centroid algorithm to defuzzify the output variable, and its formula is as follows:
[0149]
[0150] Among them, K j0 K is the clarity factor; ij is an element in the domain of output quantity; μ C (K ij ) is the membership degree of the output fuzzy set.
[0151] According to the formula, ΔK can be P , ΔK I , ΔK D The fuzzy solution is performed under E and EC with different membership degrees to obtain the decision table of each output variable.
[0152] PID control algorithm means that the output of the digital controller is just the increment of the control quantity Δμ k, can be derived through the following formula 5-7:
[0153]
[0154] The output value of the controller at the k-1th sampling time can be obtained from formula 5-7, as shown in formula 5-8:
[0155]
[0156] Subtracting Formula 5-7 from Formula 5-8 and rearranging them, we can get the PID control algorithm formula, as shown in Formula 5-9:
[0157] Δu k =u k -u k-1 =K P Δe k +K I e k +K D (Δe k -Δe k-1 ) (5-9)
[0158] In the formula, Δe k =e k -e k-1 .
[0159] Among them, formula 5-9 is called PID control algorithm. Since general computer control systems use a constant sampling period T, once K is determined P , K I , K D , the error of the three measurements before and after can be used to calculate the control amount using formula 5-9.
[0160] Optionally, calculating a second opening of the valve according to the second flow rate and the first pressure value includes:
[0161] Based on the output work fitting relationship, according to the second flow rate and the first pressure value, a second opening of the valve is calculated;
[0162] The output work fitting relationship is associated with the flow rate of the controlled medium, the valve opening and the pressure value of the valve outlet.
[0163] Specifically, the fitting curve is drawn: based on experiments, the output work W of the flow output port can be calculated under different density measurements at different valve openings (or valve displacements), and the relationship between the output work and the valve caliber value (i.e., valve opening) and the density value can be fitted to obtain the relationship between the output work of the output port and the caliber value and density.
[0164] Since W = mv 2 / 2=FS, m=ρV, v=h / t;
[0165] Among them, W is the output work, m is the mass, ν is the speed, F is the pressure value at the output port, S is the displacement (i.e. the valve opening), ρ is the density, V is the volume, h is the distance between the input port and the output port, and t is the time. The size of the valve caliber affects the measured value of the valve flow volume.
[0166] In this way, through the relationship among the flow rate of the controlled medium, the valve opening, and the pressure value of the valve outlet based on the output work fitting, the second opening of the valve can be calculated according to the second flow rate and the first pressure value obtained above.
[0167] Optionally, determining the initial expected opening of the valve based on the output work fitting relationship between different valve displacements and different densities includes:
[0168] Based on the fitting relationship between the output work under different densities and different valve displacements, the valve opening corresponding to the minimum output work is determined;
[0169] The initial expected valve opening is determined according to the smaller one of the valve opening corresponding to the minimum output work value and the given valve opening.
[0170] Specifically, the valve opening corresponding to the minimum output work value can be determined based on the output work fitting relationship, based on experiments and the relationship between the flow rate of the controlled medium, the valve opening, and the pressure value of the valve outlet.
[0171] Optionally, the adjusting the initial desired opening according to the second opening based on the fuzzy algorithm to obtain the adjusted desired opening includes:
[0172] determining a second difference between the second opening and the initial desired opening, and determining a second rate of change of the second difference over time;
[0173] Based on a fuzzy algorithm, determining an adjustment value of the valve opening according to the second difference and the second change rate;
[0174] The initial desired opening is adjusted according to the adjustment value of the valve opening to obtain an adjusted desired opening.
[0175] Wherein, the method of determining the adjustment value of the valve opening according to the second difference and the second change rate based on the fuzzy algorithm includes:
[0176] Performing fuzzy processing on the second difference and the second change rate to obtain a fuzzy value;
[0177] The fuzzy value is defuzzified to obtain an adjustment value of the valve opening.
[0178] The specific processing process of the fuzzy algorithm is similar to the process of the fuzzy processing algorithm of the above-mentioned traffic regulation. To avoid repetition, it will not be repeated here.
[0179] Optionally, controlling the valve flow rate according to the adjusted desired opening and the first opening includes:
[0180] Performing fuzzy processing on a third difference between the adjusted desired opening and the first opening to determine a pulse signal;
[0181] The pulse signal is output to a driving module of the valve; wherein the pulse signal is used to drive the driving module to control the valve opening of the valve to control the valve flow.
[0182] The embodiment of the present invention aims at the high-precision requirements for valve mass flow control in current industrial production, and adopts a joint control method based on fuzzy algorithm and PID algorithm to adjust the valve flow, combined with real-time adjustment of the expected valve opening (or displacement). The method has the advantages of high control accuracy, stable control performance, strong applicability and high intelligence.
[0183] The following combination Figure 5 Explain the overall control algorithm process:
[0184] The process based on the volume flow control algorithm is introduced. The specific steps are as follows:
[0185] Step 501: Take a sample value at the valve inlet. The volume flow acquisition program feeds back the actual flow value of the input port controller to the input port controller;
[0186] Step 502: Calculate E, such as by using the above formulas 5-4 and 5-5, to calculate the difference E between the actual output flow value and the set expected flow value;
[0187] Step 503: Calculate EC, such as calculating the rate of change EC of the difference E according to time based on the difference E;
[0188] Step 504: fuzzy input interface, fuzzify E and EC values;
[0189] Step 505: Fuzzy tuning parameters to obtain fuzzy adaptive output ΔK P , ΔK I , ΔK D ;
[0190] Step 506: Determine the parameter increment, and convert the ΔK obtained in step 505 P , ΔK I , ΔK DDefuzzification, and use the above formulas 5-1, 5-2, and 5-3 respectively with the initial K P0 , K I0 , K D0 Add together to get the K output by the fuzzy adaptive algorithm P , K I , K D ;
[0191] Step 507: PID control output, the K after algorithm optimization is obtained P , K I , K D Substituting the above formula 5-9, we can get the optimized PID control algorithm and calculate Δu, which is the adjusted volume flow rate;
[0192] Step 508: Take a sample value at the valve outlet. The pressure acquisition program feeds back the actual pressure value of the output port controller to the output port controller;
[0193] Step 509: Calculate the expected displacement (i.e., opening), such as by comparing the valve opening corresponding to the minimum output power with the given opening according to the output work fitting relationship of different valve openings and flow rates at different densities, and taking the smaller value of the two as the expected valve displacement (i.e., opening);
[0194] Step 510: Calculate the displacement difference EE, such as calculating the displacement according to the calculated output work and the collected pressure value, and calculating the difference EE between the displacement and the expected displacement by the above formulas 5-4 and 5-5; wherein the calculated output work can be calculated based on the relationship between the flow rate of the controlled medium, the valve opening, and the pressure value of the valve outlet based on the above output work fitting, and the adjusted volume flow outputted in the above step 507;
[0195] Step 511: Calculate EEC, such as calculating the rate of change of the difference EE according to time EECP based on the difference EE;
[0196] Step 512: fuzzy processing and defuzzification processing, such as performing fuzzy inference on the displacement according to the fuzzy processing rules to obtain a fuzzy value, and then performing defuzzification processing to obtain a displacement adjustment value;
[0197] Step 513: re-adjust the displacement. For example, after adjusting according to the desired displacement, when the valve opening and other environmental conditions change and the displacement re-adjustment conditions are met, the desired displacement is adjusted again, thereby re-adjusting the actual displacement to obtain a displacement re-adjustment value, thereby achieving real-time adjustment of the displacement.
[0198] The following is a specific description of the valve flow control process of the embodiment of the present invention: the data acquisition module collects the valve opening through the angle sensor, the volume flow sensor collects the flow of the controlled medium, and the temperature sensor collects the temperature of the controlled medium. The collected data is transmitted to the CPU through the control module. The main control CPU of the control module obtains the mass flow of the controlled medium through calculation, and performs PID control on the motor in the motor drive module to adjust the control degree. Finally, the CPU in the control module outputs a pulse signal, which is transmitted to the motor drive module, and the valve opening is controlled through the reducer in the motor control module, thereby changing the medium flow in the pipeline. The specific steps are as follows:
[0199] Step 1: The user connects the motor drive module to the valve in the pipeline, places the temperature sensor and volume flow sensor in the controlled medium of the pipeline, installs the angle sensor inside the valve, and saves the density table to the storage module;
[0200] Step 2: Monitor the temperature of the controlled medium through the temperature sensor, monitor the volume flow sensor of the controlled medium, and monitor the opening of the valve through the angle sensor. Then, the collected data is transmitted to the main control CPU through the A / D conversion module;
[0201] Step 3: According to the temperature corresponding density table of the controlled medium, the density of the controlled medium at the working temperature can be obtained, and the corresponding flow rate of the controlled medium can be obtained through the formula;
[0202] Step 4: The valve opening is calculated by the deviation between the PID control algorithm in the control module and the flow target value set by the user and the actual flow value measured by the flow sensor;
[0203] Step 5: Calculate the deviation based on the valve opening target value obtained in step 4 set by the user and the actual valve opening value measured by the angle sensor, perform fuzzy operation, and obtain the PWM pulse signal value;
[0204] Step 6: The pulse signal value obtained in step 5 is sent to the AC motor through the motor drive module. The AC motor drives the reducer to control the valve opening and realize flow control.
[0205] In the embodiment of the present invention, the service life of the valve device can be extended and the control accuracy of the flow rate can be improved by combining the fuzzy PID algorithm adjustment of the flow quality of the input port valve with the real-time adjustment of the displacement of the output port valve. In addition, in the process of fuzzy adjustment of the flow rate of the input port valve, the collected data is grouped and adjusted, the difference and the rate of change of the difference over time are calculated, and PID adjustment is performed on them; and in the process of real-time adjustment of the displacement of the output port valve, the pressure value is obtained through the pressure sensor, the output work is calculated, and then the displacement is calculated, and the displacement is fuzzy estimated, and then adjusted multiple times, which is further conducive to improving the control accuracy.
[0206] like Figure 6 As shown, an embodiment of the present invention provides a valve flow control device 600, comprising:
[0207] An acquisition module 610 is used to acquire a first flow rate of a controlled medium, a first opening of a valve, and a first pressure value at a valve outlet; wherein the first flow rate is a volume flow rate or a mass flow rate of the controlled medium;
[0208] A first regulating module 620, configured to regulate the first flow rate based on a fuzzy algorithm and a PID algorithm to obtain an regulated second flow rate;
[0209] A calculation module 630, configured to calculate a second opening of the valve according to the second flow rate and the first pressure value;
[0210] A determination module 640, for determining an initial desired valve opening based on a fitting relationship between output work at different densities corresponding to different valve displacements;
[0211] A second adjustment module 650 is used to adjust the initial desired opening according to the second opening based on a fuzzy algorithm to obtain an adjusted desired opening;
[0212] The control module 660 is used to control the valve flow rate according to the adjusted desired opening and the first opening.
[0213] Optionally, the first adjustment module 620 includes:
[0214] A first calculation submodule is used to calculate a flow average value based on multiple flow rates of the controlled medium collected according to a preset time step;
[0215] A first determination submodule, configured to determine a first difference between the flow average value and a given expected flow, and to determine a first rate of change of the first difference over time;
[0216] A first processing submodule, configured to obtain a target proportional parameter, a target integral parameter, and a target differential parameter according to the first difference and the first change rate based on a fuzzy algorithm;
[0217] The first regulating submodule is used to regulate the first flow rate based on the PID algorithm of the target proportional parameter, the target integral parameter, and the target differential parameter to obtain an regulated second flow rate.
[0218] Optionally, the first calculation submodule includes:
[0219] A calculation unit, configured to calculate, based on a plurality of flow rates of the controlled medium collected according to a preset time step, a standard deviation of the plurality of flow rates and an arithmetic mean of the plurality of flow rates;
[0220] A first processing unit, configured to determine the arithmetic mean as the flow average value if the standard deviation is less than or equal to the arithmetic mean value;
[0221] The second processing unit is used to remove the maximum value and the minimum value of the multiple flow rates if the standard deviation is greater than the arithmetic mean value, and determine the arithmetic mean value of the multiple flow rates after removing the maximum value and the minimum value as the flow mean value.
[0222] Optionally, the first processing submodule includes:
[0223] a third processing unit, configured to perform fuzzy processing on the first difference and the first change rate to obtain a proportional parameter change, an integral parameter change, and a differential parameter change;
[0224] A fourth processing unit, used for performing defuzzification processing on the proportional parameter change, the integral parameter change, and the differential parameter change;
[0225] The fifth processing unit is used to determine the target proportional parameter, the target integral parameter, and the target differential parameter according to the proportional parameter change, the integral parameter change, and the differential parameter change after defuzzification processing, as well as the initial proportional parameter, the initial integral parameter, and the initial differential parameter.
[0226] Optionally, the calculation module 630 includes:
[0227] A second calculation submodule, configured to calculate a second opening of the valve according to the second flow rate and the first pressure value based on an output work fitting relationship;
[0228] The output work fitting relationship is associated with the flow rate of the controlled medium, the valve opening and the pressure value of the valve outlet.
[0229] Optionally, the determining module 640 includes:
[0230] The second determination submodule is used to determine the valve opening corresponding to the minimum output work value based on the output work fitting relationship between different valve displacements and different densities;
[0231] The third determination submodule is used to determine the initial expected valve opening according to the smaller one of the valve opening corresponding to the minimum output work value and the given valve opening.
[0232] Optionally, the second adjustment module 650 includes:
[0233] a fourth determination submodule, configured to determine a second difference between the second opening and the initial expected opening, and determine a second rate of change of the second difference over time;
[0234] a second processing submodule, configured to determine an adjustment value of the valve opening according to the second difference and the second change rate based on a fuzzy algorithm;
[0235] The second regulating submodule is used to adjust the initial desired opening according to the adjustment value of the valve opening to obtain the adjusted desired opening.
[0236] Optionally, the second processing submodule includes:
[0237] a sixth processing unit, configured to perform fuzzy processing on the second difference and the second change rate to obtain a fuzzy value;
[0238] The seventh processing unit is used to perform defuzzification processing on the fuzzy value to obtain an adjustment value of the valve opening.
[0239] Optionally, the control module 660 includes:
[0240] A third processing submodule, configured to perform fuzzy processing on a third difference between the adjusted desired opening and the first opening to determine a pulse signal;
[0241] The control submodule is used to output the pulse signal to the driving module of the valve; wherein the pulse signal is used to drive the driving module to control the valve opening of the valve to control the valve flow.
[0242] The valve flow control device of the embodiment of the present invention can implement each process of the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.
[0243] An electronic device according to an embodiment of the present invention, such as Figure 7 As shown, it includes a transceiver 710, a processor 700, a memory 720, and a program or instruction stored in the memory 720 and executable on the processor 700; when the processor 700 executes the program or instruction, each process of the above-mentioned valve flow control method is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0244] The transceiver 710 is used to receive and send data under the control of the processor 700.
[0245] Among them, Figure 7In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 700 and memory represented by memory 720. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 710 may be a plurality of components, i.e., including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 700 is responsible for managing the bus architecture and general processing, and the memory 720 may store data used by the processor 700 when performing operations.
[0246] A readable storage medium according to an embodiment of the present invention stores a program or instruction thereon. When the program or instruction is executed by a processor, the steps in the valve flow control method as described above are implemented and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0247] The processor is the processor in the above-mentioned embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0248] It should be further explained that the terminals described in this specification include but are not limited to smart phones, tablet computers, etc., and many of the functional components described are called modules in order to more particularly emphasize the independence of their implementation methods.
[0249] In the embodiment of the present invention, module can be implemented with software so that it can be executed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different positions, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of the module.
[0250] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices. Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form. The operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.
[0251] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.
[0252] The above exemplary embodiments are described with reference to the accompanying drawings, and many different forms and embodiments are feasible without departing from the spirit and teachings of the present invention. Therefore, the present invention should not be constructed as a limitation of the exemplary embodiments proposed herein. More specifically, these exemplary embodiments are provided so that the present invention will be perfect and complete, and the scope of the present invention will be conveyed to those who are familiar with the technology. In these figures, the component sizes and relative sizes may be exaggerated for clarity. The terms used here are only based on the purpose of describing specific exemplary embodiments and are not intended to be limiting. As used herein, unless the text clearly indicates otherwise, the singular forms "one", "an" and "the" are intended to include these multiple forms. It will be further understood that the terms "including" and / or "comprising" when used in this specification indicate the presence of the features, integers, steps, operations, components and / or components, but do not exclude the presence or increase of one or more other features, integers, steps, operations, components, components and / or their groups. Unless otherwise indicated, when stated, a range of values includes the upper and lower limits of that range and any subranges therebetween.
[0253] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for controlling valve flow, characterized in that: include: Acquire a first flow rate of the controlled medium, a first opening of the valve, and a first pressure value at the valve outlet; wherein the first flow rate is a volume flow rate or a mass flow rate of the controlled medium; Based on a fuzzy algorithm and a PID algorithm, the first flow rate is adjusted to obtain an adjusted second flow rate; Calculating a second opening of the valve according to the second flow rate and the first pressure value; Based on the fitting relationship between the output work under different densities corresponding to different valve displacements, the initial expected opening of the valve is determined; Based on a fuzzy algorithm, adjusting the initial desired opening according to the second opening to obtain an adjusted desired opening; Controlling the valve flow rate according to the adjusted desired opening and the first opening; The method of adjusting the first flow rate based on the fuzzy algorithm and the PID algorithm to obtain the adjusted second flow rate includes: Based on multiple flow rates of the controlled medium collected according to a preset time step, an average flow rate is calculated; Determine a first difference between the flow average and a given expected flow, and determine a first rate of change of the first difference over time; Based on a fuzzy algorithm, a target proportional parameter, a target integral parameter, and a target differential parameter are obtained according to the first difference and the first rate of change; Based on the PID algorithm of the target proportional parameter, the target integral parameter, and the target differential parameter, the first flow rate is adjusted to obtain an adjusted second flow rate.
2. The method according to claim 1, characterized in that The method of calculating the flow rate average value based on the flow rates of multiple controlled media collected according to a preset time step includes: Based on multiple flow rates of the controlled medium collected according to a preset time step, calculating the standard deviation of the multiple flow rates and the arithmetic mean of the multiple flow rates; If the standard deviation is less than or equal to the arithmetic mean, the arithmetic mean is determined as the flow average; If the standard deviation is greater than the arithmetic mean, the maximum value and the minimum value among the multiple flow rates are removed, and the arithmetic mean of the multiple flow rates after removing the maximum value and the minimum value is determined as the flow mean value.
3. The method according to claim 1, characterized in that The method of obtaining a target proportional parameter, a target integral parameter, and a target differential parameter based on the fuzzy algorithm according to the first difference and the first change rate includes: Performing fuzzy processing on the first difference and the first change rate to obtain a proportional parameter change, an integral parameter change, and a differential parameter change; Defuzzification is performed on the proportional parameter change, the integral parameter change, and the differential parameter change; The target proportional parameter, the target integral parameter and the target differential parameter are determined according to the proportional parameter change, the integral parameter change and the differential parameter change after defuzzification, as well as the initial proportional parameter, the initial integral parameter and the initial differential parameter.
4. The method according to claim 1, characterized in that: The step of calculating a second opening of the valve according to the second flow rate and the first pressure value comprises: Based on the output work fitting relationship, according to the second flow rate and the first pressure value, a second opening of the valve is calculated; The output work fitting relationship is associated with the flow rate of the controlled medium, the valve opening and the pressure value of the valve outlet.
5. The method according to claim 1, characterized in that The method of determining the initial expected opening of the valve based on the fitting relationship between the output work under different densities corresponding to different valve displacements includes: Based on the fitting relationship between the output work under different densities and different valve displacements, the valve opening corresponding to the minimum output work is determined; The initial expected valve opening is determined according to the smaller one of the valve opening corresponding to the minimum output work value and the given valve opening.
6. The method according to claim 1, characterized in that The method of adjusting the initial desired opening according to the second opening based on the fuzzy algorithm to obtain the adjusted desired opening includes: determining a second difference between the second opening and the initial desired opening, and determining a second rate of change of the second difference over time; Based on a fuzzy algorithm, determining an adjustment value of the valve opening according to the second difference and the second change rate; The initial desired opening is adjusted according to the adjustment value of the valve opening to obtain an adjusted desired opening.
7. The method according to claim 6, characterized in that The method of determining the adjustment value of the valve opening based on the fuzzy algorithm according to the second difference and the second change rate includes: Performing fuzzy processing on the second difference and the second change rate to obtain a fuzzy value; The fuzzy value is defuzzified to obtain an adjustment value of the valve opening.
8. The method according to claim 1, characterized in that: The controlling of the valve flow rate according to the adjusted desired opening and the first opening includes: Performing fuzzy processing on a third difference between the adjusted desired opening and the first opening to determine a pulse signal; The pulse signal is output to a driving module of the valve; wherein the pulse signal is used to drive the driving module to control the valve opening of the valve to control the valve flow.
9. A valve flow control device, characterized in that: include: An acquisition module, used to acquire a first flow rate of a controlled medium, a first opening of a valve, and a first pressure value at a valve outlet; wherein the first flow rate is a volume flow rate or a mass flow rate of the controlled medium; A first regulating module, used for regulating the first flow rate based on a fuzzy algorithm and a PID algorithm to obtain an regulated second flow rate; a calculation module, configured to calculate a second opening of the valve according to the second flow rate and the first pressure value; A determination module, for determining an initial desired opening of the valve based on a fitting relationship between output work at different densities corresponding to different valve displacements; A second adjustment module, configured to adjust the initial desired opening according to the second opening based on a fuzzy algorithm to obtain an adjusted desired opening; A control module, configured to control the valve flow rate according to the adjusted desired opening and the first opening; Wherein, the first adjustment module includes: A first calculation submodule is used to calculate a flow average value based on multiple flow rates of the controlled medium collected according to a preset time step; A first determination submodule, configured to determine a first difference between the flow average value and a given expected flow, and to determine a first rate of change of the first difference over time; A first processing submodule, configured to obtain a target proportional parameter, a target integral parameter, and a target differential parameter according to the first difference and the first change rate based on a fuzzy algorithm; The first regulating submodule is used to regulate the first flow rate based on the PID algorithm of the target proportional parameter, the target integral parameter, and the target differential parameter to obtain an regulated second flow rate.
10. An electronic device, comprising: A transceiver, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; characterized in that when the processor executes the program or instruction, the steps in the valve flow control method as described in any one of claims 1 to 8 are implemented.
11. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps in the valve flow control method according to any one of claims 1 to 8 are implemented.
