A method, device and equipment for testing a gas shut-off valve
By using a boost control algorithm based on the pressure difference value in the test method of the gas shutdown valve, the problems of inaccurate pressure setting and poor adaptability in the prior art are solved, and more efficient pressure adjustment and adaptation are achieved.
Patent Information
- Application Number
- CN202411658370.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-11-20
AI Technical Summary
In the prior art, the pressure setting accuracy of the gas shutoff valve is low, and the adaptability to pipes of different volumes is not high, resulting in a long time to set the cutting pressure and low efficiency.
The preset boost control algorithm based on the pressure difference value is adopted, and the voltage regulator is accurately controlled to adjust the pressure in the gas pipeline to the target pressure value through the calculations of the proportional link, differential link and integral link.
It improves the accuracy of pressure setting, adapts to pipes of different volumes, reduces on-site maintenance time, and improves testing efficiency and operation and maintenance efficiency.
Smart Images

Figure CN119164638B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of testing technology, and in particular to a method, device and equipment for testing a gas shut-off valve. Background Art
[0002] The shut-off valve is a necessary component in the gas pipeline transportation process. The normal operation of the shut-off valve is related to the safety of the entire gas transportation process. The shut-off valve is usually installed in various gas gate stations, gas pressure regulating cabinets, and gas pressure regulating boxes for gas transportation. When the pressure of the gas pipeline is greater than the set value, the shut-off valve will close to protect the safety of gas use at the back end. The shut-off valve needs to be inspected and related parts replaced on a regular basis. After the parts are replaced, it is necessary to test whether the shut-off valve can be cut off normally and whether the cut-off pressure is normal.
[0003] In the past, when the shut-off valve was maintained, a bladder / air pump was mainly used to pressurize the gas pipeline. During the pressurization, the inlet valve and outlet valve of the shut-off valve would be closed. Whether the shut-off pressure setting was qualified was mainly determined by testing the shut-off pressure of the shut-off valve with a U-shaped water column tube or a pressure gauge.
[0004] Since the air pump equipment uses a fixed flow rate to pressurize the gas pipeline where the shut-off valve is located, the air pump will pressurize the pipeline at a fixed flow rate as long as it is powered on. The following problems are likely to occur during operation: (1) The cut-off pressure setting time is too long and the pressure setting is inaccurate. Since the use of a bladder / air pump for pressurization requires manual operation, the amount of gas input into the pipeline by the air pump each time is large, which can easily cause the set pressure to be too high or too low. In order to set the appropriate cut-off pressure, repeated adjustments are required to achieve the ideal cut-off pressure value; (2) The fixed flow rate pressurization is not highly adaptable to pipelines of different volumes. Ordinary air pumps do not have a dynamic flow adjustment function. If the flow rate is too high, it is easy to damage the internal components of the pressure regulator. If the flow rate is too low, it will increase the cut-off pressurization time and reduce efficiency. Summary of the invention
[0005] The embodiments of the present invention provide a method, device and equipment for testing a gas shut-off valve, which solve the technical problems in the prior art of manually using a bladder / air pump to pressurize a gas pipeline, low pressure setting accuracy and low adaptability to pipelines of different volumes.
[0006] An embodiment of the present invention provides a method for testing a gas shut-off valve, the method comprising:
[0007] Get the current pressure value in the gas pipeline;
[0008] Determining whether the current pressure value is within a preset pressure range;
[0009] If it is within the preset pressure range, the preset boost control algorithm is used to perform proportional link, differential link and integral link operations respectively based on the pressure difference to obtain the proportional link control amount, the differential link control amount and the integral link control amount, wherein the pressure difference is the difference between the current pressure value and the target pressure value, and the integral link control amount is calculated using the preset first integral parameter and the second integral parameter, which are determined according to the following conditions: the speed at which the current pressure value is adjusted to the target pressure value, the time to enter the steady state after reaching the target pressure value, and the time to maintain the steady state;
[0010] Based on the proportional link control amount, the differential link control amount, and the integral link control amount, the pressure regulator is controlled to adjust the pressure in the gas pipeline to the target pressure value to test the gas shut-off valve.
[0011] Furthermore, the integral link operation is performed using a preset boost control algorithm to obtain the integral link control quantity including:
[0012] The integral speed of different integral parameter intervals is determined by using the piecewise integral speed formula:
[0013] ,
[0014] Wherein, f(e(k)) is an integral function, e(k) is the pressure difference, A is the first integral parameter, and B is the second integral parameter;
[0015] The integral control formula is used to determine the integral link control quantity: L3=a3*(W(k)+ f(e(k))*e(k)), where L3 is the integral link control quantity, a3 is the integral coefficient, and W(k) is the historical accumulated integral quantity.
[0016] Furthermore, the proportional link is calculated by using a preset boost control algorithm to obtain the proportional link control amount including:
[0017] The proportional link control amount is determined using the proportional control formula: L1=a1*e(k), where L1 is the proportional link control amount, a1 is the proportional coefficient, and e(k) is the pressure difference.
[0018] Furthermore, the differential link operation is performed using a preset boost control algorithm to obtain the differential link control quantity including:
[0019] The differential control formula is used to determine the differential link control quantity: L2=a2*(e(k)-e(k-1)), where L2 is the differential link control quantity, a2 is the differential coefficient, e(k) is the pressure difference, and e(k-1) is the pressure difference at the previous moment.
[0020] Furthermore, before obtaining the current pressure value in the gas pipeline, the testing method further includes:
[0021] Start the boost test to determine whether there is pressure collection data;
[0022] If so, determining whether the pressure acquisition data is valid;
[0023] If valid, the step of obtaining the current pressure value is executed; otherwise, the data abnormality is recorded and the pressurization test is stopped;
[0024] If not, determining whether the collection event of the pressure collection data has timed out;
[0025] If the timeout occurs, the step of determining whether the pressure acquisition data is valid is performed; otherwise, the acquisition of the pressure acquisition data is waited for.
[0026] Furthermore, the collection of the pressure data includes:
[0027] Determine whether the preset data collection time has been reached;
[0028] If it is reached, the pressure sensor is controlled to be powered on, and a collection instruction is sent to the pressure sensor after the power-on is completed; if it is not reached, the step of waiting and repeating the step of determining whether the preset data collection time is reached;
[0029] When the pressure sensor collects the pressure collection data based on the collection instruction, detecting whether the collection instruction is executed normally;
[0030] If the execution is abnormal, the abnormal execution of the acquisition instruction is recorded, the power supply of the pressure sensor is cut off, the data acquisition process is stopped, and the pressure acquisition data is stored;
[0031] If the execution is normal, a read instruction is sent to the pressure sensor after the acquisition is completed;
[0032] When reading the pressure acquisition data acquired by the pressure sensor, detecting whether the reading instruction is executed normally;
[0033] If the execution is abnormal, the abnormal execution of the reading instruction is recorded, the power supply of the pressure sensor is cut off, the data reading process is stopped, and the pressure acquisition data is stored;
[0034] If the process is executed normally, the power supply of the pressure sensor is cut off and the pressure acquisition data is stored.
[0035] Furthermore, the testing method further comprises:
[0036] If the current pressure value is not within the preset pressure range, the pressure value is recorded as being out of limit and the pressurization test is stopped.
[0037] Furthermore, after adjusting the pressure in the gas pipeline to the target pressure value, the testing method further includes:
[0038] Determining whether the pressure value in the gas pipeline reaches the target pressure value and is in a steady state;
[0039] If so, it indicates that the pressurization is complete and the gas shut-off valve is tested;
[0040] Otherwise, the step of determining whether the pressure acquisition data is valid is executed again.
[0041] The embodiment of the present invention further provides a test device for a gas shut-off valve, the test device comprising:
[0042] A pressure sensor is used to obtain the current pressure value in the gas pipeline;
[0043] A data processor, used to determine whether the current pressure value is within a preset pressure range;
[0044] A proportional-integral-differential controller, for performing operations of a proportional link, a differential link, and an integral link respectively based on a pressure difference using a preset boost control algorithm if the pressure is within the preset pressure range, to obtain a proportional link control amount, a differential link control amount, and an integral link control amount, wherein the pressure difference is the difference between the current pressure value and the target pressure value, and the integral link control amount is calculated using a preset first integral parameter and a preset second integral parameter, wherein the first integral parameter and the second integral parameter are determined based on the following conditions: a speed at which the current pressure value is adjusted to the target pressure value, a duration of entering a steady state after reaching the target pressure value, and a duration of maintaining a steady state;
[0045] The pressure regulator is used to control the pressure regulator to adjust the pressure in the gas pipeline to the target pressure value based on the proportional link control amount, the differential link control amount, and the integral link control amount, so as to test the gas shut-off valve.
[0046] An embodiment of the present invention further provides a test device for a gas shut-off valve, wherein the test device comprises the test apparatus for a gas shut-off valve described in any of the above embodiments.
[0047] The embodiment of the present invention discloses a test method, device and equipment for a gas shut-off valve, the test method comprising: obtaining the current pressure value in the gas pipeline; judging whether the current pressure value is within a preset pressure range; if within the preset pressure range, respectively performing proportional link, differential link and integral link operations based on the pressure difference using a preset boost control algorithm to obtain a proportional link control amount, a differential link control amount and an integral link control amount; based on the proportional link control amount, the differential link control amount and the integral link control amount, controlling the pressure regulator to adjust the pressure in the gas pipeline to a target pressure value to test the gas shut-off valve. The present invention uses the pressure difference to accurately control the pressure regulator by using a proportional integral differential controller, solves the technical problems of low pressure setting accuracy and low adaptability to pipelines of different volumes in the prior art that a bladder / air pump is manually used to boost the gas pipeline, and achieves the technical effects of improving the accuracy of pressure setting, improving the adaptability of equipment, and improving the testing efficiency and operation and maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a flow chart of a method for testing a gas shut-off valve provided by an embodiment of the present invention;
[0049] Figure 2 is a flow chart of another method for testing a gas shut-off valve provided by an embodiment of the present invention;
[0050] Figure 3 is a collection flow chart of pressure collection data provided by an embodiment of the present invention;
[0051] Figure 4 It is a structural diagram of a testing device for a gas shut-off valve provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0053] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present invention are used to distinguish different objects, rather than to limit a specific order. The following embodiments of the present invention can be implemented separately, or in combination with each other, and the embodiments of the present invention do not impose specific limitations on this.
[0054] Figure 1 The present invention provides a flow chart of a method for testing a gas shut-off valve.
[0055] like Figure 1 As shown, the test method of the gas shut-off valve specifically includes the following steps:
[0056] S101, obtaining the current pressure value in the gas pipeline.
[0057] S102, determining whether the current pressure value is within a preset pressure range.
[0058] Specifically, after the shut-off valve test starts, it is first necessary to obtain the current pressure value in the gas pipeline where the shut-off valve is located, and determine whether the current pressure value is beyond the preset pressure range. Specifically, the preset pressure range includes an upper limit pressure A and a lower limit pressure B. If the current pressure value exceeds the set upper limit pressure A, the air pump boosting operation is stopped, and the abnormal state of the pressure value exceeding the upper limit is recorded; if the current pressure value is lower than the set lower limit pressure B, the air pump boosting operation is also stopped, and the abnormal state of the pressure value exceeding the lower limit is recorded; if the current pressure value is within the preset pressure range, continue to execute step S103.
[0059] S103, if it is within the preset pressure range, then based on the pressure difference, the preset boost control algorithm is used to perform proportional link, differential link and integral link operations respectively to obtain the proportional link control quantity, differential link control quantity and integral link control quantity, wherein the pressure difference is the difference between the current pressure value and the target pressure value, and the integral link control quantity is calculated using the pre-set first integral parameter and the second integral parameter, and the first integral parameter and the second integral parameter are determined based on the following conditions: the speed at which the current pressure value is adjusted to the target pressure value, the time to enter the steady state after reaching the target pressure value, and the time to maintain the steady state.
[0060] Alternatively, if Figure 1 As shown, the test method also includes:
[0061] S105, if the current pressure value is not within the preset pressure range, the pressure value is recorded as being out of limit and the pressurization test is stopped.
[0062] Specifically, if the current pressure value is within the preset pressure range, the current pressure value is subtracted from the target pressure value to obtain the pressure difference. Among them, the target pressure value is the set pressure value required to test the cut-off valve, and the tester can set it according to the test needs. After obtaining the pressure difference, the electrical signal representing the pressure difference is first processed using a digital low-pass filter to obtain a smoother pressure signal. The processed electrical signal representing the pressure difference is respectively operated in the proportional link, differential link, and integral link using the preset boost control algorithm to obtain the corresponding proportional link control amount, differential link control amount, and integral link control amount. Subsequently, the voltage regulator is controlled based on the obtained proportional link control amount, differential link control amount, and integral link control amount to achieve pressure regulation.
[0063] Among them, it was found during the test that there are two integral parameters in the calculation process of the integral link. The setting of this parameter can directly affect the effect of the final pressure regulation, including how fast the current pressure value is adjusted to the target pressure value, how long it takes to enter a steady state after reaching the target pressure value, and how long it can be maintained after entering a steady state. Based on this, the corresponding optimal integral parameters can be obtained according to the test experience or test measurement results of shut-off valves of different models in gas pipelines of different volumes, and the integral parameters (that is, the first integral parameter and the second integral parameter mentioned above) are used to participate in the determination process of the integral link control quantity, so that the obtained control quantity can control the pressure regulator more accurately.
[0064] S104, based on the proportional link control amount, the differential link control amount, and the integral link control amount, the pressure regulator is controlled to adjust the pressure in the gas pipeline to a target pressure value to test the gas shut-off valve.
[0065] Specifically, after obtaining the corresponding proportional link control amount, differential link control amount, and integral link control amount, the proportional link control amount, differential link control amount, and integral link control amount are added together to obtain the duty cycle of the pulse width modulation (PWM) signal of the voltage regulator. Based on the duty cycle, a corresponding control signal is output to control the voltage regulator to achieve precise pressure regulation.
[0066] The present invention utilizes the pressure difference to accurately control the pressure regulator by using a proportional-integral-differential controller, thereby solving the technical problems in the prior art of manually using a bladder / air pump to pressurize the gas pipeline, such as low pressure setting accuracy and low adaptability to pipelines of different volumes, and achieves the technical effects of improving pressure setting accuracy, improving equipment adaptability, and improving testing efficiency and operation and maintenance efficiency.
[0067] On the basis of the above technical solutions, S103 uses a preset boost control algorithm to perform integral link calculations to obtain integral link control quantities including:
[0068] The integral speed of different integral parameter intervals is determined by using the piecewise integral speed formula:
[0069] ,
[0070] Wherein, f(e(k)) is the integral function, e(k) is the pressure difference, A is the first integral parameter, and B is the second integral parameter;
[0071] The integral control formula is used to determine the integral link control quantity: L3=a3*(W(k)+ f(e(k))*e(k)), where L3 is the integral link control quantity, a3 is the integral coefficient, and W(k) is the historical accumulated integral quantity.
[0072] Specifically, in the integral link, the pressure difference e(k) is input into the integral link. For different pressure difference e(k), f(e(k)) is divided into three different integral speeds, and the intervals of different integral speeds are controlled by changing the first integral parameter A and the second integral parameter B. Finally, the integral operation is input to obtain the integral link control quantity. By using a preset boost control algorithm to dynamically control the integration speed, it is better adapted to the sizes of different gas pipeline cavities and realizes constant boost at different pressures.
[0073] Specifically, Figure 2 FIG. 1 is a flow chart of another method for testing a gas shut-off valve provided by an embodiment of the present invention. Figure 2 As shown, the above process of calculating the integral link control quantity can be realized by the following process:
[0074] S201, determine whether |e(k)|<B holds, if so, execute step S202, otherwise execute step S203;
[0075] S202, f(e(k))=1;
[0076] S203, determine whether |e(k)|>A+B is true, if so, execute step S204, otherwise execute step S205;
[0077] S204, f(e(k))=0;
[0078] S205, f(e(k))=(A-|e(k)|+B) / A;
[0079] S206, perform integration operation using the results of S202, S204, and S205 to obtain the integral link control quantity.
[0080] Alternatively, if Figure 2 As shown, S103 uses a preset boost control algorithm to perform proportional link calculations, and obtains proportional link control quantities including:
[0081] S207, determine the proportional link control amount using the proportional control formula: L1=a1*e(k), where L1 is the proportional link control amount, a1 is the proportional coefficient, and e(k) is the pressure difference.
[0082] Alternatively, if Figure 2 As shown, S103 uses the preset boost control algorithm to perform differential link calculations, and obtains differential link control quantities including:
[0083] S208, use the differential control formula to determine the differential link control quantity: L2=a2*(e(k)-e(k-1)), where L2 is the differential link control quantity, a2 is the differential coefficient, e(k) is the pressure difference, and e(k-1) is the pressure difference at the previous moment.
[0084] Alternatively, if Figure 2 As shown, before obtaining the current pressure value in the gas pipeline at S101, the testing method further includes:
[0085] S209, start the pressure test to determine whether there is pressure collection data;
[0086] S210, if it exists, determine whether the pressure acquisition data is valid; if it is valid, execute S101 to obtain the current pressure value, otherwise, execute S211;
[0087] S211, record data abnormality and stop the boost test;
[0088] S212, if not, determine whether the pressure data collection event has timed out, if so, execute S210 to determine whether the pressure data collection is valid, otherwise, execute S213;
[0089] S213, waiting for the collection of pressure collection data.
[0090] Specifically, after the pressurization test of the cut-off valve begins, the pressurization starts, the air pump power is turned on, and the air pump circuit starts working. First, it is determined whether there is pressure acquisition data. If not, it continues to wait for the acquisition event to time out, and after the timeout, it is forced to enter the validity judgment of the pressure acquisition data, otherwise it continues to wait for the collection of pressure acquisition data.
[0091] On the basis of the above technical solutions, Figure 3 is a flow chart of pressure data collection provided by an embodiment of the present invention, such as Figure 3 As shown, the collection of pressure data includes:
[0092] S301, determining whether a preset data collection time has been reached;
[0093] S302, if it is reached, control the pressure sensor to power on, and send a collection instruction to the pressure sensor after the power-on is completed; if it is not reached, wait and repeat the step of S301 to determine whether the preset data collection time is reached;
[0094] S303, when the pressure sensor collects pressure data based on the collection instruction, detecting whether the collection instruction is executed normally;
[0095] S304, if the execution is abnormal, record the execution abnormality of the acquisition instruction, cut off the power supply of the pressure sensor, stop the data acquisition process, and store the pressure acquisition data;
[0096] S305, if the execution is normal, sending a read instruction to the pressure sensor after the acquisition is completed;
[0097] S306, when reading the pressure data collected by the pressure sensor, detecting whether the reading instruction is executed normally;
[0098] S307, if the execution is abnormal, record the abnormal execution of the reading instruction, cut off the power supply of the pressure sensor, stop the data reading process, and store the pressure acquisition data;
[0099] S308: If the operation is performed normally, the power supply of the pressure sensor is cut off and the pressure acquisition data is stored.
[0100] Specifically, after the pressure data collection process starts, it is first determined whether the timer timing N milliseconds has arrived (that is, whether the preset data collection time has been reached). If the timing collection time has not been reached, continue waiting. If the time is greater than or equal to the set timing collection time N milliseconds, execute the subsequent process.
[0101] Specifically, after the preset data collection time is reached, the power supply of the pressure sensor is turned on, the pressure sensor is powered on and starts working, and a fixed time of M seconds is delayed to wait for the pressure sensor to be powered on; after the pressure sensor is powered on, an acquisition instruction is sent to the pressure sensor, and the pressure sensor starts collecting pressure data; when the acquisition instruction returns successfully, it means that the acquisition instruction is executed normally, that is, by obtaining the acquisition return instruction to detect whether the acquisition instruction is executed normally, if the acquisition return instruction is not received, the acquisition instruction execution exception is recorded, and the power supply of the pressure sensor is cut off, the data collection process is stopped, and the pressure collection data is stored. For the pressure collection data stored at this time, the subsequent judgment result obtained when judging its validity must be invalid.
[0102] If the acquisition instruction is executed normally, after a delay of P milliseconds, the acquisition return instruction can be received after waiting for the pressure sensor to complete data acquisition; at this time, a read instruction for the pressure acquisition data is sent to the pressure sensor. If the read instruction is executed normally, the subsequent process is executed after the reading is completed, otherwise the abnormal execution status of the read instruction is recorded, the power supply of the pressure sensor is cut off, the data reading process is stopped, and the pressure acquisition data is stored; if the read instruction is executed normally, the power supply of the pressure sensor is turned off after the reading is completed, so that the circuit of the pressure sensor is in a power-off state, which can effectively reduce the power consumption of the system; at the same time, the collected pressure acquisition data is stored, and the subsequent "boost processing thread" is notified to process the pressure data (that is, execute the subsequent shut-off valve test process); after the entire pressure acquisition data acquisition process is completed, the acquisition thread enters a dormant state to reduce system power consumption.
[0103] Alternatively, if Figure 2 As shown, after adjusting the pressure in the gas pipeline to the target pressure value in S104, the test method further includes:
[0104] S214, determining whether the pressure value in the gas pipeline has reached the target pressure value and is in a steady state;
[0105] S215, if yes, it indicates that the pressurization is completed and starts to test the gas shut-off valve; otherwise, the step of S210 to determine whether the pressure collection data is valid is executed again.
[0106] Specifically, after the pressure regulator is controlled to adjust the pressure in the gas pipeline to the target pressure value based on the proportional link control quantity, the differential link control quantity, and the integral link control quantity, and before the gas shut-off valve is tested, it is necessary to determine whether the pressure value in the gas pipeline has reached the target pressure value and is in a steady state. After it is determined that the pressure value has reached the target pressure value and is in a steady state, a prompt is given that the pressurization is completed and the gas shut-off valve is started to be tested, otherwise S210 is executed.
[0107] In the embodiment of the present invention, the test of the gas shut-off valve provided by the embodiment of the present invention has the following advantages:
[0108] (1) It realizes the effect of automatically pressurizing the gas pipeline, saving manpower;
[0109] (2) Through the special design of the integral link and the dynamic adjustment of the integral speed, the contradiction between the small integral coefficient leading to slow elimination of static error and the large integral coefficient leading to overshoot and saturation in traditional PID control and the inability to balance these two points in some scenarios is solved;
[0110] (3) It solves the problem of inaccurate pressure setting when pressurizing the gas pipeline, making the pressure setting of the shut-off valve more accurate during on-site operation and maintenance, and reducing the risk of accidental shut-off;
[0111] (4) It can adapt to gas pipelines of different diameters and volumes, reduce on-site maintenance time, and improve on-site operation and maintenance efficiency;
[0112] (5) The boost speed is effectively controlled. Constant boost speed can better protect the internal components of the voltage regulator from overshoot damage.
[0113] Figure 4 It is a structural diagram of a testing device for a gas shut-off valve provided in an embodiment of the present invention.
[0114] like Figure 4 As shown, the test device of the gas shut-off valve includes:
[0115] A pressure sensor 41 is used to obtain the current pressure value in the gas pipeline;
[0116] The data processor 42 is used to determine whether the current pressure value is within a preset pressure range;
[0117] A proportional-integral-differential controller 43 is used to perform proportional, differential and integral operations respectively based on the pressure difference using a preset boost control algorithm if the pressure is within a preset pressure range, and obtain a proportional control amount, a differential control amount and an integral control amount, wherein the pressure difference is the difference between the current pressure value and the target pressure value, and the integral control amount is calculated using a preset first integral parameter and a preset second integral parameter, and the first integral parameter and the second integral parameter are determined based on the following conditions: the speed at which the current pressure value is adjusted to the target pressure value, the time to enter a steady state after reaching the target pressure value, and the time to maintain a steady state;
[0118] The pressure regulating unit 44 is used to control the pressure regulator to adjust the pressure in the gas pipeline to a target pressure value based on the proportional link control amount, the differential link control amount, and the integral link control amount to test the gas shut-off valve.
[0119] Optionally, the proportional-integral-derivative controller 43 is specifically used for:
[0120] The integral speed of different integral parameter intervals is determined by using the piecewise integral speed formula:
[0121] ,
[0122] Wherein, f(e(k)) is the integral function, e(k) is the pressure difference, A is the first integral parameter, and B is the second integral parameter;
[0123] The integral control formula is used to determine the integral link control quantity: L3=a3*(W(k)+ f(e(k))*e(k)), where L3 is the integral link control quantity, a3 is the integral coefficient, and W(k) is the historical accumulated integral quantity.
[0124] Optionally, the proportional-integral-derivative controller 43 is further specifically used for:
[0125] The proportional control formula is used to determine the proportional link control quantity: L1=a1*e(k), where L1 is the proportional link control quantity, a1 is the proportional coefficient, and e(k) is the pressure difference.
[0126] Optionally, the proportional-integral-derivative controller 43 is further specifically used for:
[0127] The differential control formula is used to determine the differential link control quantity: L2=a2*(e(k)-e(k-1)), where L2 is the differential link control quantity, a2 is the differential coefficient, e(k) is the pressure difference, and e(k-1) is the pressure difference at the previous moment.
[0128] Optionally, before the pressure sensor 41 acquires the current pressure value in the gas pipeline, the testing device further includes:
[0129] The collection time determination unit is used to start the boost test and determine whether there is pressure collection data; if so, determine whether the pressure collection data is valid; if so, execute the step of obtaining the current pressure value, otherwise, record the data abnormality and stop the boost test; if not, determine whether the collection event of the pressure collection data has timed out; if so, execute the step of determining whether the pressure collection data is valid, otherwise, wait for the collection of the pressure collection data.
[0130] Optionally, the testing device further includes a collection control unit, which is used to control the pressure sensor 41 to collect pressure data. The collection control unit is specifically used to:
[0131] Determine whether the preset data collection time has been reached; if reached, control the pressure sensor 41 to power on, and send a collection instruction to the pressure sensor 41 after the power-on is completed; if not reached, wait and repeat the steps of determining whether the preset data collection time has been reached; when the pressure sensor 41 collects pressure collection data based on the collection instruction, detect whether the collection instruction is executed normally; if the execution is abnormal, record the execution abnormality of the collection instruction, cut off the power of the pressure sensor 41, stop the data collection process, and store the pressure collection data; if the execution is normal, send a read instruction to the pressure sensor 41 after the collection is completed; when reading the pressure collection data collected by the pressure sensor 41, detect whether the read instruction is executed normally; if the execution is abnormal, record the execution abnormality of the read instruction, cut off the power of the pressure sensor 41, stop the data reading process, and store the pressure collection data; if the execution is normal, cut off the power of the pressure sensor 41, and store the pressure collection data.
[0132] Optionally, if the data processor 42 determines that the current pressure value is not within the preset pressure range, the acquisition control unit is further configured to record that the pressure value exceeds the limit and stop the pressurization test.
[0133] Optionally, after adjusting the pressure in the gas pipeline to the target pressure value, the pressure regulating unit 44 is further used to:
[0134] Determine whether the pressure value in the gas pipeline has reached the target pressure value and is in a steady state;
[0135] If so, it indicates that the pressurization is complete and the gas shut-off valve is tested;
[0136] Otherwise, the step of the collection time determination unit determining whether the pressure collection data is valid is re-executed.
[0137] The testing device for the gas shut-off valve provided in the embodiment of the present invention can execute the testing method for the gas shut-off valve provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.
[0138] An embodiment of the present invention further provides a test device for a gas shut-off valve, and the test device includes the test device for a gas shut-off valve in any of the above embodiments.
[0139] The testing equipment for the gas shut-off valve provided in the embodiment of the present invention includes the testing device for the gas shut-off valve in the above embodiment. Therefore, the testing equipment for the gas shut-off valve provided in the embodiment of the present invention also has the beneficial effects described in the above embodiment, which will not be described in detail here.
[0140] In the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0141] Finally, it should be noted that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for testing a gas shut-off valve, characterized in that: The test method includes: Get the current pressure value in the gas pipeline; Determining whether the current pressure value is within a preset pressure range; If it is within the preset pressure range, the preset boost control algorithm is used to perform proportional link, differential link and integral link operations respectively based on the pressure difference to obtain the proportional link control amount, the differential link control amount and the integral link control amount, wherein the pressure difference is the difference between the current pressure value and the target pressure value, and the integral link control amount is calculated using the preset first integral parameter and the second integral parameter, which are determined according to the following conditions: the speed at which the current pressure value is adjusted to the target pressure value, the time to enter the steady state after reaching the target pressure value, and the time to maintain the steady state; Based on the proportional link control amount, the differential link control amount, and the integral link control amount, the pressure regulator is controlled to adjust the pressure in the gas pipeline to the target pressure value to test the gas shut-off valve.
2. The method for testing a gas shut-off valve according to claim 1, characterized in that: The integral link operation is performed using a preset boost control algorithm to obtain the integral link control quantity including: The integral speed of different integral parameter intervals is determined by using the piecewise integral speed formula: , Wherein, f(e(k)) is an integral function, e(k) is the pressure difference, A is the first integral parameter, and B is the second integral parameter; The integral control formula is used to determine the integral link control quantity: L3=a3*(W(k)+ f(e(k))*e(k)), where L3 is the integral link control quantity, a3 is the integral coefficient, and W(k) is the historical accumulated integral quantity.
3. The method for testing a gas shut-off valve according to claim 1, characterized in that: The proportional link is calculated by using the preset boost control algorithm to obtain the proportional link control quantity including: The proportional link control amount is determined using the proportional control formula: L1=a1*e(k), where L1 is the proportional link control amount, a1 is the proportional coefficient, and e(k) is the pressure difference.
4. The method for testing a gas shut-off valve according to claim 1, characterized in that: The differential link operation is performed using the preset boost control algorithm to obtain the differential link control quantity including: The differential control formula is used to determine the differential link control quantity: L2=a2*(e(k)-e(k-1)), where L2 is the differential link control quantity, a2 is the differential coefficient, e(k) is the pressure difference, and e(k-1) is the pressure difference at the previous moment.
5. The method for testing a gas shut-off valve according to claim 1, characterized in that: Before obtaining the current pressure value in the gas pipeline, the testing method further includes: Start the boost test to determine whether there is pressure collection data; If so, determining whether the pressure acquisition data is valid; If valid, the step of obtaining the current pressure value is executed; otherwise, the data abnormality is recorded and the pressurization test is stopped; If not, determining whether the collection event of the pressure collection data has timed out; If the timeout occurs, the step of determining whether the pressure acquisition data is valid is performed; otherwise, the acquisition of the pressure acquisition data is waited for.
6. The method for testing a gas shut-off valve according to claim 5, characterized in that: The collection of the pressure data includes: Determine whether the preset data collection time has been reached; If it is reached, the pressure sensor is controlled to be powered on, and a collection instruction is sent to the pressure sensor after the power-on is completed; if it is not reached, the step of waiting and repeating the step of determining whether the preset data collection time is reached; When the pressure sensor collects the pressure collection data based on the collection instruction, detecting whether the collection instruction is executed normally; If the execution is abnormal, the abnormal execution of the acquisition instruction is recorded, the power supply of the pressure sensor is cut off, the data acquisition process is stopped, and the pressure acquisition data is stored; If the execution is normal, a read instruction is sent to the pressure sensor after the acquisition is completed; When reading the pressure acquisition data acquired by the pressure sensor, detecting whether the reading instruction is executed normally; If the execution is abnormal, the abnormal execution of the reading instruction is recorded, the power supply of the pressure sensor is cut off, the data reading process is stopped, and the pressure acquisition data is stored; If the process is executed normally, the power supply of the pressure sensor is cut off and the pressure acquisition data is stored.
7. The method for testing a gas shut-off valve according to claim 1, characterized in that: The test method also includes: If the current pressure value is not within the preset pressure range, the pressure value is recorded as being out of limit and the pressurization test is stopped.
8. The method for testing a gas shut-off valve according to claim 5, characterized in that: After adjusting the pressure in the gas pipeline to the target pressure value, the testing method further includes: Determining whether the pressure value in the gas pipeline reaches the target pressure value and is in a steady state; If so, it indicates that the pressurization is complete and the gas shut-off valve is tested; Otherwise, the step of determining whether the pressure acquisition data is valid is executed again.
9. A gas shut-off valve testing device, characterized in that: The testing device comprises: A pressure sensor is used to obtain the current pressure value in the gas pipeline; A data processor, used to determine whether the current pressure value is within a preset pressure range; A proportional-integral-differential controller, for performing operations of a proportional link, a differential link, and an integral link respectively based on a pressure difference using a preset boost control algorithm if the pressure is within the preset pressure range, to obtain a proportional link control amount, a differential link control amount, and an integral link control amount, wherein the pressure difference is the difference between the current pressure value and the target pressure value, and the integral link control amount is calculated using a preset first integral parameter and a preset second integral parameter, wherein the first integral parameter and the second integral parameter are determined based on the following conditions: a speed at which the current pressure value is adjusted to the target pressure value, a duration of entering a steady state after reaching the target pressure value, and a duration of maintaining a steady state; The pressure regulator is used to control the pressure regulator to adjust the pressure in the gas pipeline to the target pressure value based on the proportional link control amount, the differential link control amount, and the integral link control amount, so as to test the gas shut-off valve.
10. A gas shut-off valve testing device, characterized in that: The testing equipment comprises the testing device for the gas shut-off valve as claimed in claim 9 above.
Citation Information
Patent Citations
Voltage regulation and current regulation control method based on SVR algorithm
CN117803861A
Gas stop valve detector
CN220891249U