Gas pressure control method, storage medium, electronic device, and apparatus

文档序号:1736785 发布日期:2019-12-20 浏览:24次 中文

阅读说明:本技术 气体压力控制方法、存储介质、电子设备及装置 (Gas pressure control method, storage medium, electronic device, and apparatus ) 是由 刘刚 王远辉 郑梁 卢大鹏 王浩 朱敏燕 董玉玺 田宇 张宏科 于 2019-09-29 设计创作,主要内容包括:本发明公开了一种气体压力控制方法、存储介质、电子设备及装置,包括计算管路的第一实测压力值与预设压力值的第一压力偏差以及压力偏差变化率;将所述第一压力偏差以及压力偏差变化率进行模糊化处理,得到PID参数模糊量;根据PID参数模糊量解模糊得到PID参数值(K<Sub>I</Sub>,K<Sub>D</Sub>,K<Sub>P</Sub>);根据PID参数值(K<Sub>I</Sub>,K<Sub>D</Sub>,K<Sub>P</Sub>)控制阀门,以调节气体压力。利用本发明实施例能够使PID参数值跟随管路中的气体压力进行自适应调解,从而对阀门变化的速率进行针对性控制,达到对急剧变化的集气总管压力进行有效控制的目的,提高集气总管压力自动控制性能和装置的运行效率。(The invention discloses a gas pressure control method, a storage medium, electronic equipment and a device, which comprises the steps of calculating a first pressure deviation and a pressure deviation change rate of a first measured pressure value and a preset pressure value of a pipeline; fuzzifying the first pressure deviation and the pressure deviation change rate to obtain PID parameter fuzzy quantity; resolving the ambiguity according to the PID parameter ambiguity to obtain the PID parameter value (K) I ,K D ,K P ) (ii) a According to PID parameter value (K) I ,K D ,K P ) The valve is controlled to regulate the gas pressure. The embodiment of the invention can make PID parameter value carry out self-adaptive demodulation along with the gas pressure in the pipeline, thereby carrying out targeted control on the valve change rate, achieving the purpose of effectively controlling the pressure of the gas collection main pipe which changes rapidly, and improving the automatic control performance of the pressure of the gas collection main pipe and the operation efficiency of the device.)

1. A gas pressure control method, comprising:

calculating a first pressure deviation and a pressure deviation change rate of a first measured pressure value and a preset pressure value of the pipeline;

fuzzifying the first pressure deviation and the pressure deviation change rate to obtain PID parameter fuzzy quantity;

resolving the ambiguity according to the PID parameter ambiguity to obtain the PID parameter value (K)I,KD,KP);

According to PID parameter value (K)I,KD,KP) The valve is controlled to regulate the gas pressure.

2. The gas pressure control method of claim 1, wherein calculating a first pressure deviation and a rate of change of the pressure deviation of the first measured pressure value of the pipeline from the preset pressure value comprises:

acquiring a first actually measured pressure value of the pipeline at the current moment in real time;

acquiring a preset pressure value of a PID controller;

acquiring a second measured pressure value at a preset moment before the current moment;

subtracting the preset pressure value from the first actually measured pressure value to obtain a first pressure deviation, and subtracting the preset pressure value from the second actually measured pressure value to obtain a second pressure deviation;

a pressure deviation change rate is calculated based on the first pressure deviation, the second pressure deviation, and a predetermined time.

3. The gas pressure control method according to claim 2, characterized in that it is based on the formula

Calculating the pressure deviation change rate, wherein P is the first measured pressure value and P is the second measured pressure value*The pressure value is a preset pressure value, t is a time interval between the current moment and the preset moment, ec is a pressure deviation change rate, and e is a first pressure deviation.

4. The gas pressure control method of claim 3, wherein the first measured pressure value and the second measured pressure value are read by the DCS.

5. The gas pressure control method according to claim 1, wherein the blurring the first pressure deviation and the pressure deviation change rate to obtain a PID parameter blur amount includes:

establishing a fuzzy rule table;

converting the first deviation and the pressure deviation change rate into a first fuzzy amount and a second fuzzy amount respectively;

and judging in a fuzzy rule table according to the first fuzzy quantity and the second fuzzy quantity to obtain the PID parameter fuzzy quantity.

6. The gas pressure control method according to claim 5, wherein the first deviation and the pressure deviation change rate are each calculated by the formula:

calculating the blur amount muA(ii) a Wherein x isi,yiMeasured pressure values or pressure deviation change rates of two times before and after, biThe interval time is two times of interval.

7. The gas pressure control method of claim 5, wherein the PID parameter fuzzy amount is in accordance with the formula:

deblurring to obtain PID parameter value (K)I,KD,KP) (ii) a Wherein z is0Is the PID parameter value, mu AZ is the first pressure deviation for PID parameter fuzzy quantity.

8. The gas pressure control method according to claim 5, wherein, according to the formula:

a control valve; wherein, the delta MV (t) is the real-time variation of the valve opening; e (t) is the first pressure deviation, KP,KI,KDIs a PID parameter value.

9. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are capable of performing the gas pressure control method of any one of claims 1-8.

10. An electronic device comprising at least one processor and at least one memory, wherein at least one memory stores instruction information, and at least one processor reads the instruction information and executes the gas pressure control method according to any one of claims 1 to 8.

11. A gas pressure control apparatus, characterized by comprising: the fuzzy controller is provided with a first calculation block, a second calculation block and a third calculation block;

the first calculation block is used for calculating a first pressure deviation and a pressure deviation change rate of a first measured pressure value and a preset pressure value of the pipeline;

the second calculation block is used for fuzzifying the first pressure deviation and the pressure deviation change rate to obtain a PID parameter fuzzy quantity;

the third calculation block is used for obtaining a PID parameter value (K) according to PID parameter fuzzy quantity deblurringI,KD,KP);

The PID controller is used for controlling the PID controller according to the PID parameter value (K)I,KD,KP) The valve is controlled to regulate the gas pressure.

Technical Field

The invention relates to the technical field of gas pressure control, in particular to a gas pressure control method, a storage medium, electronic equipment and a device.

Background

At present, in the torch process, most of waste gas pressure adopts single-loop override control, when the pressure of a gas collection main pipe is higher than a set value, a valve is opened to release the pressure, but the waste gas flow rate and the total amount from a production device are uncertain, and the tank car is supplied at irregular time every day, so that the fluctuation range of the waste gas supply amount is extremely large, the pressure release valve is opened and closed untimely, and the following characteristics are shown: when the supply speed of the unknown source gas is too high, the opening speed of the valve is slow, so that the pressure is not discharged timely, the pressure is too high, the water seal can breaks the water seal, and harmful gas is discharged into the atmosphere to pollute the environment; when the pressure of the gas collection main pipe is lower than a set value, the closing rate of the valve is slow, and a large amount of waste gas enters the torch, so that the waste gas with a burning value is not recycled, the resource waste is caused, and the purposes of energy conservation and emission reduction in China are not met. Therefore, there is a need to solve the above technical problems.

Disclosure of Invention

In view of the above, the present invention provides a gas pressure control method, a storage medium, an electronic device and an apparatus to solve the above technical problems.

The invention provides a gas pressure control method, which comprises the following steps: calculating a first pressure deviation and a pressure deviation of a first measured pressure value and a preset pressure value of the pipelineA rate of change; fuzzifying the first pressure deviation and the pressure deviation change rate to obtain PID parameter fuzzy quantity; resolving the ambiguity according to the PID parameter ambiguity to obtain the PID parameter value (K)I,KD,KP) (ii) a According to PID parameter value (K)I,KD,KP) The valve is controlled to regulate the gas pressure.

Optionally, calculating a first pressure deviation and a pressure deviation change rate of the first measured pressure value of the pipeline from the preset pressure value includes: acquiring a first actually measured pressure value of the pipeline at the current moment in real time; acquiring a preset pressure value of a PID controller; acquiring a second measured pressure value at a preset moment before the current moment; subtracting the preset pressure value from the first actually measured pressure value to obtain a first pressure deviation, and subtracting the preset pressure value from the second actually measured pressure value to obtain a second pressure deviation; a pressure deviation change rate is calculated based on the first pressure deviation, the second pressure deviation, and a predetermined time.

Optionally according to a formula

Calculating the pressure deviation change rate, wherein P is the first measured pressure value and P is the second measured pressure value*The pressure value is a preset pressure value, t is a time interval between the current moment and the preset moment, ec is a pressure deviation change rate, and e is a first pressure deviation.

Optionally, the first measured pressure value and the second measured pressure value are read by the DCS.

Optionally, the blurring the first pressure deviation and the pressure deviation change rate to obtain a PID parameter fuzzy amount includes: establishing a fuzzy rule table; converting the first deviation and the pressure deviation change rate into a first fuzzy amount and a second fuzzy amount respectively; and judging in a fuzzy rule table according to the first fuzzy quantity and the second fuzzy quantity to obtain the PID parameter fuzzy quantity.

Optionally, the first deviation and the pressure deviation change rate are both expressed by the formula:

calculating the blur amount muA(ii) a Wherein x isi,yiMeasured pressure values or pressure deviation change rates of two times before and after, biThe interval time is two times of interval.

Alternatively, the PID parameter fuzzy quantity is according to the formula:

deblurring to obtain PID parameter value (K)I,KD,KP) (ii) a Wherein z is0Is the PID parameter value, mu AZ is the first pressure deviation for PID parameter fuzzy quantity.

Optionally, according to the formula:

a control valve; wherein, the delta MV (t) is the real-time variation of the valve opening; e (t) is the first pressure deviation, KP,KI,KDIs a PID parameter value.

The present invention also provides a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions are capable of performing the gas pressure control method as described above.

The invention also provides electronic equipment which comprises at least one processor and at least one memory, wherein instruction information is stored in the at least one memory, and the at least one processor can execute the gas pressure control method after reading the instruction information.

The present invention also provides a gas pressure control device, comprising: the fuzzy controller is provided with a first calculation block, a second calculation block and a third calculation block; the first calculation block is used for calculating a first pressure deviation and a pressure deviation change of a first measured pressure value and a preset pressure value of the pipelineRate; the second calculation block is used for fuzzifying the first pressure deviation and the pressure deviation change rate to obtain a PID parameter fuzzy quantity; the third calculation block is used for obtaining a PID parameter value (K) according to PID parameter fuzzy quantity deblurringI,KD,KP) (ii) a The PID controller is used for controlling the PID controller according to the PID parameter value (K)I,KD,KP) The valve is controlled to regulate the gas pressure.

The gas pressure control method, the storage medium, the electronic equipment and the device provided by the invention calculate the first pressure deviation and the pressure deviation change rate in real time, the first pressure deviation and the pressure deviation change rate are subjected to fuzzification processing to obtain a group of PID parameter values, the PID parameter values are given to the PID controller to control the valve, and the PID parameter values can be subjected to self-adaptive demodulation along with the gas pressure in the pipeline, so that the change rate of the valve is subjected to targeted control, the purpose of effectively controlling the pressure of the gas collection main pipe which changes rapidly is achieved, the PID controller overcomes the interference of large-amplitude random flow in time, the automatic control performance of the pressure of the gas collection main pipe and the operation efficiency of the device are improved, and the environmental and economic benefits are improved.

Drawings

Fig. 1 is a flowchart of a gas pressure control method of an embodiment of the present invention.

Fig. 2 is a schematic diagram of a gas pressure control method according to an embodiment of the present invention.

FIG. 3 is a schematic structural diagram of a flare pressure system of an embodiment of the present invention.

Fig. 4 is a flowchart of S101 according to an embodiment of the present invention.

Detailed Description

The technical solution of the present invention is described in detail below with reference to the accompanying drawings and specific embodiments. In which like parts are designated by like reference numerals. It should be noted that the terms "front," "back," "left," "right," "upper" and "lower" used in the following description refer to directions in the drawings, and the terms "inner" and "outer" refer to directions toward and away from, respectively, the geometric center of a particular component.

Fig. 1 is a flowchart illustrating a gas pressure control method according to an embodiment of the present invention, and as shown in fig. 1, the gas pressure control method according to an embodiment of the present invention includes:

s101, calculating a first pressure deviation and a pressure deviation change rate of a first measured pressure value and a preset pressure value of a pipeline;

and the first actually measured pressure value is the pressure value in the waste gas collecting main pipe. The pressure deviation change rate refers to the ratio of the amount of change in the pressure deviation to the time taken for that amount of change.

The first pressure deviation e is equal to the first measured pressure value P-the preset pressure value P*. Wherein, the preset pressure value P*Is the preset pressure value of the PID controller.

In this embodiment, the first pressure deviation and the rate of change of the pressure deviation are calculated in real time in the first calculation block of the fuzzy controller.

S102, fuzzifying the first pressure deviation and the pressure deviation change rate to obtain a PID parameter fuzzy quantity;

and the first pressure deviation and the pressure deviation change rate are in a second calculation block in the fuzzy controller, the second calculation block fuzzifies the first pressure deviation and the pressure deviation change rate, and the actual quantity value is converted into a fuzzy quantity described by a natural language to obtain a PID parameter fuzzy quantity.

And after the first pressure deviation and the pressure deviation change rate are fuzzified, a PID parameter fuzzy quantity is obtained.

S103, resolving the fuzzy to obtain PID parameter value (K) according to the PID parameter fuzzy quantityI,KD,KP);

As shown in FIG. 2, deblurring results in the PID parameter value (K)I,KD,KP) (ii) a Will KI,KD,KPInputting into a PID controller, and adding KI,KD,KPAnd assigning a value to the PID controller.

S104, according to the PID parameter value (K)I,KD,KP) The valve is controlled to regulate the gas pressure.

As shown in fig. 3The PID controller is based on the PID parameter value (K)I,KP,KD) The pressure relief loop valve PV-006 is adjusted by utilizing the override function, so that the actual value of the pressure of the gas collection main pipe returns to be lower than the set value, and the purpose of self-adaptive adjustment is achieved.

In this embodiment, the PID controller is based on the formula:

a control valve; wherein, the delta MV (t) is the real-time variation of the valve opening; e (t) is the first pressure deviation, KP,KI,KDIs the PID parameter value (K)I,KD,KP) K in (1)P,KI,KD

The gas pressure control method provided by the embodiment of the invention can be used for obtaining a group of PID parameter values by calculating the first pressure deviation and the pressure deviation change rate in real time, fuzzifying the first pressure deviation and the pressure deviation change rate to control the valve, and endowing the PID parameter values to the PID controller to control the valve, so that the PID parameter values can be adaptively demodulated along with the gas pressure in the pipeline, the change rate of the valve is controlled in a targeted manner, the purpose of effectively controlling the pressure of a rapidly-changing gas collection main pipe is achieved, the PID controller can timely overcome the interference of large-amplitude random flow, the automatic control performance of the pressure of the gas collection main pipe and the operation efficiency of the device are improved, and the environmental and economic benefits are improved.

By adopting the gas pressure control method provided by the embodiment of the invention, the water sealing of waste gas can be reduced to 1 time/day from the original 7 times/day, the waste gas entering the atmosphere is effectively reduced, the atmospheric pollution is reduced, meanwhile, the amount of the waste gas entering a torch is greatly reduced, and the utilization efficiency of the waste gas is improved.

In the present invention, as shown in fig. 4, S101 calculates a first pressure deviation and a pressure deviation change rate between a first measured pressure value and a preset pressure value of a pipeline, specifically, includes:

s1010, acquiring a first actually measured pressure value of the pipeline at the current moment in real time;

in this embodiment, after the first measured pressure value is measured, the first measured pressure value may be read by a Distributed Control System (DCS) so as to fuzzify the measured pressure value and improve the calculation rate.

S1011, acquiring a preset pressure value of the PID controller;

s1012, acquiring a second actual measurement pressure value at a preset time before the current time;

in this embodiment, the second measured pressure value may be read by the DCS after being measured. The second measured pressure value is the pressure value 30 seconds before the first measured pressure value.

S1013, subtracting the first actually measured pressure value from a preset pressure value to obtain a first pressure deviation, and subtracting the second actually measured pressure value from the preset pressure value to obtain a second pressure deviation;

the second pressure deviation may also be calculated by the first calculation block.

And S1014, calculating a pressure deviation change rate according to the first pressure deviation, the second pressure deviation and the preset time.

In the present embodiment, according to the formula

The rate of change of pressure deviation is calculated.

Wherein P is the first measured pressure value, P*The pressure value is a preset pressure value, t is a time interval between the current moment and the preset moment, ec is a pressure deviation change rate, and e is a first pressure deviation.

The pressure deviation change rate is calculated through the pressure deviation twice, the accuracy of the pressure change rate can be improved, the opening degree of the valve can be controlled more accurately, the calculated amount can be reduced, and the calculation speed is accelerated.

Preferably, in S102, the blurring processing is performed on the first pressure deviation and the pressure deviation change rate to obtain a PID parameter fuzzy amount, specifically including:

s1021, establishing a fuzzy rule table;

according to the first pressure deviation, the second pressure deviation and the pressure deviation change rate which are calculated for multiple times, a real value discourse domain of the pressure deviation and a real value discourse domain of the pressure variation change rate can be obtained;

and obtaining a corresponding natural language discourse domain according to the real quantity value discourse domain.

And establishing a fuzzy rule table according to the pressure deviation and the natural language discourse domain of the pressure deviation change rate.

In this embodiment, the range of the real-valued domain U of the pressure deviation including the first pressure deviation and the second pressure deviation is [ -6, 6], the corresponding fuzzy set of the natural language domain U is { NB, NS, ZO, PS, PB }, and the subset elements of the natural language domain U are negative large, negative small, zero, positive small, and positive large, respectively.

The range of a real-quantity value discourse domain U of the pressure deviation change rate ec is [ -3, 3], a corresponding fuzzy set of a natural language discourse domain U is { NB, NM, NS, ZO, PS, PM, PB }, and the elements of the subset in the natural language discourse domain U are respectively large negative, medium negative, small negative, zero, small positive, medium positive and large positive.

Table 1 is obtained from the natural language domain of pressure deviation and rate of change of pressure deviation.

TABLE 1

The fuzzy rule in table 1 can be written into the fuzzy controller by writing a control condition statement, such as: PB and ec, and OH, wherein z0 is OH;

If e=PB and ec=NM,then z0=OM;

……

35 control words, such as If e and ec, PB, then z0 and OB, implement the determination function.

S1022, converting the first deviation and the pressure deviation change rate into a first fuzzy amount and a second fuzzy amount respectively;

in this embodiment, the first deviation and the pressure deviation change rate are both expressed by the following formula:

calculating the blur amount muA

Wherein x isi,yiMeasured pressure values or pressure deviation change rates of two times before and after, biThe time interval is the time interval between the first measured pressure value and the second measured pressure value. In this embodiment, biAnd may be 30 seconds.

And S1023, judging in a fuzzy rule table according to the first fuzzy quantity and the second fuzzy quantity to obtain PID parameter fuzzy quantity.

For example, in table 1, if the first blurring amount is PB and the second blurring amount is ZO, the corresponding PID parameter blurring amount is OS.

Further, in S103, the PID parameter fuzzy amount is calculated according to the formula:

deblurring to obtain PID parameter value (K)I,KD,KP) (ii) a Wherein z is0Is the PID parameter value, mu AFor PID parameter fuzzy quantity, z is a first pressure deviation, wherein z belongs to [ -6, 6 [)]The real value of (1).

Embodiments of the present invention further provide a computer-readable storage medium storing computer-executable instructions, where the computer-executable instructions may execute the gas pressure control method described above.

The embodiment of the present invention further provides an electronic device, which includes at least one processor and at least one memory, where instruction information is stored in the at least one memory, and the at least one processor can execute the gas pressure control method as described above after reading the instruction information.

The computer storage medium and the electronic device provided by the embodiment of the invention calculate the first pressure deviation and the pressure deviation change rate in real time, the first pressure deviation and the pressure deviation change rate are subjected to fuzzification processing to obtain a group of PID parameter values, the PID parameter values are given to the PID controller to control the valve, and the PID parameter values can be subjected to adaptive demodulation along with the gas pressure in the pipeline, so that the change rate of the valve is subjected to targeted control, the purpose of effectively controlling the pressure of the rapidly-changing gas collection main pipe is achieved, the PID controller timely overcomes the interference of large-amplitude random flow, the automatic control performance of the pressure of the gas collection main pipe and the operation efficiency of the device are improved, and the environmental and economic benefits are improved.

Based on the same inventive concept, an embodiment of the present invention further provides a gas pressure control apparatus, including: a fuzzy controller and a PID controller.

The fuzzy controller has a first calculation block, a second calculation block, and a third calculation block. Wherein, the three calculation blocks can use Delta V calculation blocks.

The first calculation block is used for calculating a first pressure deviation and a pressure deviation change rate of a first measured pressure value and a preset pressure value of the pipeline;

the second calculation block is used for fuzzifying the first pressure deviation and the pressure deviation change rate to obtain a PID parameter fuzzy quantity;

the third calculation block is used for obtaining a PID parameter value (K) according to PID parameter fuzzy quantity deblurringI,KD,KP);

The PID controller is used for controlling the PID controller according to the PID parameter value (K)I,KD,KP) The valve is controlled to regulate the gas pressure.

The gas pressure control device provided by the embodiment of the invention can be used for calculating the first pressure deviation and the pressure deviation change rate in real time, fuzzifying the first pressure deviation and the pressure deviation change rate to obtain a group of PID parameter values, endowing the PID parameter values to the PID controller to control the valve, and enabling the PID parameter values to be adaptively demodulated along with the gas pressure in the pipeline, so that the change rate of the valve is controlled in a targeted manner, the purpose of effectively controlling the pressure of a rapidly-changed gas collection main pipe is achieved, the PID controller can timely overcome the interference of large-amplitude random flow, the automatic control performance of the pressure of the gas collection main pipe and the operation efficiency of the device are improved, and the environmental and economic benefits are improved.

The technical solutions of the present invention have been described in detail with reference to specific embodiments, which are used to help understand the ideas of the present invention. The derivation and modification made by the person skilled in the art on the basis of the specific embodiment of the present invention also belong to the protection scope of the present invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种多激励源下管道振动的多通道主动控制系统及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!