A valve switching control method, device and medium for black water pipeline with slag

By setting up a pre-controlled turn-on-use switch and expert script controller in the slag-mounted black water pipeline valve system, automatic on-time switching and real-time monitoring are achieved, and the problems of untimely valve switching and blockage are solved, and the stability and synthesis gas quality of the system are improved.

CN115823497BActive Publication Date: 2025-03-25SUPCON TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211474255.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-23
Publication Date
2025-03-25
Estimated Expiration
2042-11-23

AI Technical Summary

Technical Problem

The prior art cannot guarantee the timely switching of valves with slag-free black water pipelines, which can easily lead to valve blockage and operational errors, affecting the system water balance and synthesis gas quality.

Method used

By setting up a first control switch and an expert script controller, the first valve and the second valve are automatically switched on time, collecting the valve parameters and liquid level and flow of external devices, determining whether the switching conditions are met, and determining whether the valve is stuck during the switching process.

Benefits of technology

The valve is switched without disturbances, which reduces the possibility of valve blockage, improves the stability of the system water balance and syngas quality, and reduces the operator's human intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115823497B_ABST
    Figure CN115823497B_ABST
Patent Text Reader

Abstract

The present invention discloses a control method for valve switching of a black water pipeline with slag, and determines whether it is necessary to switch the opening and closing of the valve group according to a preset time. Collect various parameters to determine whether the switching conditions are met. Turn off the control of the valve group by the advanced controller, and switch to the output switching control of the valve group by the expert script controller. After the valve switching is completed, the advanced controller continues the output control and repeats the above steps. The present invention performs non-disturbance timed switching of paired valves through an expert algorithm without adding any detection equipment and instruments, and automatically switches to advanced control for smooth control after the switching is completed. The control logic is clear, easy to maintain and modify, and can be adapted to different controlled objects to ensure the timeliness of valve switching. The valve ratio value is corrected in real time according to historical data to avoid valve blockage due to ash accumulation in the pipeline, reduce the impact on the water balance of the system, reduce the operator's human intervention, and improve the control accuracy without manual intervention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of coal chemical industry, and in particular relates to a valve switching control method, equipment and medium for black water pipeline with slag. Background Art

[0002] The front-end device of the coal chemical industry chain is the gasification device. After the water-coal slurry reacts in the gasifier, the synthesis gas generated by the gasifier needs to be washed and dusted. At the same time, the temperature and pressure of the synthesis gas out of the coal gasification device must be controlled within a certain range to ensure that the water-gas ratio of the synthesis gas meets the needs of subsequent devices. When washing and dusting the synthesis gas, the control valve is easily blocked due to the heavy slag in the water system, affecting the water balance of the entire system. The current solution is to require operators to manually switch the valve at regular intervals of 4 hours. This method cannot guarantee on-time and disturbance-free switching. It is difficult to operate and requires a high frequency of operation. It will affect subsequent devices and is not conducive to efficient production.

[0003] The prior art has the following defects

[0004] 1. The valve cannot be switched on time. It is easy to forget to switch or not switch on time. It will not affect production in the short term, but long-term operation will increase the possibility of valve blockage, cause valve core wear and internal leakage, and reduce the service life of the control valve.

[0005] 2. Operational errors are prone to occur and the operation intensity is high. Each production line has multiple groups of valves that need to be switched regularly as required. At the same time, the device will have multiple production lines. When the operator switches a group of valves, two operation windows are opened at the same time for synchronous addition and subtraction operations. It is easy to open the wrong operation window or cut asynchronously, which will destroy the normal water balance and affect the quality of synthesis gas.

[0006] In order to realize the automatic timed and disturbance-free switching of valves in the black water pipeline with slag, the following problems will arise: how to identify and deal with the blockage of valves during valve switching, how to correct the problem of increased deviation of the characteristics of the two valves after long-term operation, how to avoid the fluctuations in the liquid level and flow of each equipment caused by the switching process, and how to realize disturbance-free switching between advanced controller control and expert algorithm control. Summary of the invention

[0007] The technical purpose of the present invention is to provide a control method, equipment and medium for valve switching of a black water pipeline with slag, so as to solve the problems of valve blocking and low switching accuracy.

[0008] To solve the above problems, the technical solution of the present invention is:

[0009] A control method for valve switching of a black water pipeline with slag, using a first valve and a second valve respectively arranged on two mutually related pipelines, and controlling the opening and closing of the first valve and the second valve respectively through the corresponding first priority control switch and the second priority control switch to achieve automatic and timely switching, comprising the following steps: S1: judging whether it is necessary to switch the opening and closing of the first valve and the second valve according to a preset time, and if necessary, proceeding to step S2; S2: collecting parameters of the first valve and the second valve, the liquid level and flow of external devices connected to the pipelines of the first valve and the second valve, the priority control related parameters and the priority control history database to judge whether the switching conditions are met, and if so, proceeding to step S3; S3: closing the control of the first valve and the second valve by the advanced controller, and switching to the output switching control of the first valve and the second valve by the expert script controller; S4: after the switching of the first valve and the second valve is completed, the advanced controller continues the output control, and repeats steps S1 to S4.

[0010] The valve opening ratio of the first valve and the second valve is recorded in the first control history database, which specifically includes the following steps:

[0011] The first valve and the second valve are switched, and one hour after the switching is completed, the opening data of the first valve and the second valve are read respectively;

[0012] The first valve and the second valve are switched again, and one hour after the switching is completed, the opening data of the first valve and the second valve are read respectively;

[0013] The larger value of the first valve opening after two consecutive switching is divided by the larger value of the second valve opening to obtain a historical ratio value K_CAL;

[0014] And determine whether the flow setting value has changed. If it has not changed, the historical ratio value K_CAL is recorded in the latest historical ratio value in the first control historical database; if it has changed, the previous historical ratio value is read as the latest historical ratio value.

[0015] Specifically, the preset time interval for valve switching is the same as the time interval for collecting historical ratio values, which is 4 hours.

[0016] The switching between the first valve and the second valve specifically includes the following steps:

[0017] Before switching, the valve in the closed state is a closed valve, and the valve in the open state is an open valve;

[0018] Another closed valve opens 5 valve openings;

[0019] Then, based on the current ratio value K_NOW, the closed valve and the open valve are opened with equal amplitude. When the opening of the valve to be opened is less than 5, the switching process is basically completed.

[0020] According to the latest historical ratio value of the closed valve and the open valve before switching, the closed valve completes opening and the open valve completes closing.

[0021] Specifically, the current ratio value K_NOW is calculated as follows:

[0022] K_NOW=0.4*K_CAL1+0.3*K_CAL2+0.2*K_CAL3+0.1*K_CAL4

[0023] Among them, K_CAL1, K_CAL2, K_CAL3, and K_CAL4 are all historical ratio values ​​recorded in the prior control historical database, among which K_CAL1 is the latest historical ratio value, and K_CAL2, K_CAL3, and K_CAL4 are the reverse order of the entered historical ratio values.

[0024] The switching from the advanced controller to the expert script controller specifically includes the following steps:

[0025] Set the flag bit of valve switching, the flag bit is 1 or 0, corresponding to the first valve being opened and the second valve being closed, or the first valve being closed and the first valve being opened;

[0026] Change the identification bit, trigger the switching execution script, turn off the write value switch of the advanced controller, enter the expert script controller and start the switching execution switch, switch the first valve and the second valve, and after the valve switching is completed, turn off the switching execution switch and transfer to the advanced controller for control.

[0027] Preferably, further preferably, in step S3, during the switching process between the first valve and the second valve, it is also necessary to determine whether the first valve and the second valve are blocked, and the specific steps are:

[0028] Under the control of the expert script controller, the theoretical output value and field feedback value of the valve are obtained every 15 seconds, and the corresponding deviation value is calculated. Deviation value = theoretical output value - field feedback value, where the theoretical output value is the command output value of the corresponding valve, and the field feedback value corresponds to the actual valve opening of the valve;

[0029] If the deviation value is greater than 5, the valve is judged to be stuck, and a prompt pop-up alarm is given to keep the double valve position unchanged, and continue to switch after repair.

[0030] An electronic device includes a processor and a memory. The memory stores computer instructions that can be run on the processor. The processor is used to call the computer instructions in the memory to execute any of the above-mentioned control methods for switching valves in a black water pipeline with slag.

[0031] A storage medium is used to store computer instructions, wherein when the computer instructions are executed, the device where the storage medium is located is controlled to execute any of the above-mentioned control methods for switching valves in a slag-carrying black water pipeline.

[0032] Due to the adoption of the above technical solution, the present invention has the following advantages and positive effects compared with the prior art:

[0033] The present invention performs non-disturbance timed switching of paired valves through an expert algorithm without adding any detection equipment and instruments, and automatically switches to advanced control for smooth control after the switching is completed. The control logic is clear, easy to maintain and modify, and can be adapted to different controlled objects. The valves in the same pipeline can be switched on time, and the timeliness of valve switching can be guaranteed. At the same time, the valve ratio value is corrected in real time according to historical data to avoid valve blockage due to ash accumulation in the pipeline, reduce the impact of valve switching on the water balance of the system, reduce the operator's human intervention, and improve control accuracy without manual intervention. The protection of valves in the slag-carrying black water pipeline is completed without additional investment. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the following detailed description of the preferred embodiment.The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting the invention.

[0035] Figure 1 It is a flow chart of a control method for switching valves in a black water pipeline with slag according to the present invention;

[0036] Figure 2 It is a water balance process flow chart of the gasification device of the present invention;

[0037] Figure 3 A framework diagram of a control method for switching valves in a black water pipeline with slag according to the present invention;

[0038] Figure 4 It is a data collection schematic diagram for a specific implementation of the present invention. DETAILED DESCRIPTION

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0040] In order to simplify the drawings, only the parts related to the present invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".

[0041] The following is a further detailed description of a control method, device and medium for valve switching of black water pipeline with slag proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become more apparent from the following description and claims.

[0042] Example

[0043] See also Figures 1 to 4 This embodiment provides a control method for switching valves in a black water pipeline with slag, which combines an advanced control system with a DCS system to achieve timed switching of paired valves, and writes a switching program script (expert control algorithm) according to the linear characteristics of the valves and changes in the liquid level and flow rate when switching the valves. The expert control algorithm is used to achieve non-disturbance switching of the valves. At the same time, considering the normal operation of the water balance over a long period of time, the valves are controlled by an advanced controller during non-switching time.

[0044] First, see Figure 2 In order to better understand the technical solution of this application, the application scenario of this embodiment is described. Figure 2As shown, the crude synthesis gas, slag and incompletely reacted carbon generated by the gasifier enter the washing and cooling chamber of the gasifier for washing and cooling. After removing some of the liquid and solid particles entrained in the gas, it is sent out of the gasifier, enters the mixer and mixes with the ash water, and then enters the cyclone separator. Most of the fine ash in the gas phase enters the liquid phase and is discharged from the cyclone separator with the black water. The crude synthesis gas from the cyclone separator enters the lower part of the water washing tower, and directly contacts with the high-temperature hot water added in the middle of the tower (provided by the ash water tank pump to enter the water washing tower) and the high-temperature condensate added from the conversion section (external conversion device) in the upper part of the tower in countercurrent, washing the remaining solid particles, accompanied by the dehumidification of the crude synthesis gas, phase change and ash water heating processes. The crude synthesis gas passes through the demister at the top of the water washing tower to remove the mist entrained in the gas, and then is sent to the outside. The lower part of the water washing tower will filter the low-solid washing black water through the black water filter and send it to the gasifier quenching ring. The three streams of washing black water from the gasifier, cyclone separator, and water scrubber are successively controlled by liquid level and flow regulation and decompressed and sent to the evaporation hot water tower. The bottom of the evaporation hot water tower sends the initially concentrated black water into the flash evaporation system through the liquid level regulating valve. After flash evaporation, part of the liquid flows directly into the gray water tank, and the concentrated black water enters the clarification tank for sedimentation and concentration and enters the plate and frame filter press. The filter cake is transported outside, and the gray water in the clarification tank overflows into the gray water tank. The water in the gray water tank is sent to the gasifier, cyclone separator, water scrubber, evaporation hot water tower and other water-using units through the gray water pump for circulation. It can be seen that the water balance between the gasifier, cyclone separator, water scrubber and evaporation hot water tower is very important to the entire gasification device, and a pair of valves are provided on each connecting pipeline. Since there are many solid particles in the black water coming out, valves that are closed or not moved for a long time are prone to blockage. Therefore, in addition to the need to control the normal water balance stability in the device, it is also necessary to switch the valves on time according to regulations.

[0045] See also Figure 1 and Figure 3 In this embodiment, the first valve (hereinafter referred to as valve A) and the second valve (hereinafter referred to as valve B) on two interrelated pipelines are used to realize switching control, and the corresponding first priority control switch and the second priority control switch are used to control the opening and closing of valve A and valve B respectively to realize automatic switching on time. Under normal circumstances, when valve A is used normally, valve B is closed, and vice versa.

[0046] See also Figure 1 The complete cycle of specific valve switching control can be divided into 4 parts: 1. Use the advanced controller to control valve A and keep valve B closed; 2. Meet the switching requirements, use the expert script controller to control the closing of valve A and opening of valve B for the switching process; 3. After completing the above process, switch to the advanced controller to control valve B and keep valve A closed; 4. Meet the switching conditions, use the expert script controller to control the opening of valve A and closing of valve B. After the switching is completed, switch to the advanced controller and inherit the loop execution from time stage 1.

[0047] The detailed steps are as follows: First, in step S1, according to the preset time, it is determined whether it is necessary to switch the first valve and the second valve on and off, if necessary, proceed to step S2, otherwise it remains unchanged.

[0048] Then, in step S2, by collecting the parameters of valve A and valve B, the liquid level and flow of the external device connected to the pipeline of valve A and valve B, the related parameters of the first control and the first control history database, it is determined whether the switching condition is met. If it is met, it goes to step S3. The sources of the above-mentioned related parameters involve DCS real-time data, advanced control platform historical data, expert algorithm assigned virtual position number and its historical data. The main parameters and descriptions are shown in Table 1

[0049] Table 1

[0050]

[0051] Among them, the valve opening ratio of valve A and valve B is recorded in the prior control history database. The construction of the prior control history database specifically includes the following steps: Taking the normal operation of the current valve A open and valve B closed as an example, the first switch realizes valve A closed and valve B opened. After one hour of operation, the valve openings of valves A and B are read and recorded in the historical data. Then, the second switch is completed to open valve A and close valve B, and the valve openings of valves A and B are read and recorded in the historical data. The larger value of the valve A opening is divided by the larger value of the valve B opening with the latest two sets of data, and the operating condition setting value has not changed. The calculation result is updated to obtain the latest historical ratio value K_CAL. If the setting value changes, the historical ratio value K_CAL with the latest historical value record is read.

[0052] The current ratio value K_NOW will be used later. The current ratio value K_NOW will first control the latest 4 historical ratio values ​​K_CAL in the historical database according to the principle of proportional progression and calculate and correct them as the actual ratio for valve output. When the conditions are not met, the calculated ratio K_CAL inherits the previous value. The calculation formula for the current ratio value K_NOW is as follows

[0053] K_NOW=0.4*K_CAL1+0.3*K_CAL2+0.2*K_CAL3+0.1*K_CAL4

[0054] Among them, K_CAL1, K_CAL2, K_CAL3, and K_CAL4 are all historical ratio values ​​recorded in the prior control history database. The later the entry time, the higher the weight. K_CAL1 is the latest historical ratio value, and the entry order of K_CAL1, K_CAL2, K_CAL3, and K_CAL4 is from late to early.

[0055] Next, in step S3, the advanced controller is turned off to control valve A and valve B, and the output switching control of valve A and valve B is switched to the expert script controller. During the switching process, it is necessary to ensure that both valves and the controlled flow circuit are put into the advanced control use switch to ensure the normal use of the advanced control. In addition, the output and feedback deviation of the two valves is less than 5 to ensure that the valves are not blocked.

[0056] Specifically, the implementation of switching between valve A and valve B includes the following steps: according to the characteristics of different equipment and valves, taking valve A open and valve B closed as an example, valve A is normally closed before switching, and valve B operates normally according to the flow or liquid level requirements. When switching valves, since the same valve position of valve A has little effect on the pipeline flow in the initial opening stage, valve A first opens 5 valve positions, and then enters the same valve opening with equal amplitude. According to the current ratio value K_NOW, valve A is converted and output to ensure that the flow fluctuation of the two valves will not be too large. For example, if K_NOW is 0.8 at this moment, it can be determined that the linear characteristics of valve A opening 40 and valve B opening 50 are close, and it can also be understood that the flowability of valve B is not as good as valve A; when valve A and valve B are cut, a time sequence valve A opens 4 valve positions, and valve B correspondingly closes 5 valve positions. When the opening of valve B is less than 5, it is determined that the switching process is basically completed. Then the output of valve A is calculated based on the opening of valve A and valve B before switching and the current ratio value K_NOW, and valve B is closed as required, thus completing the valve switching. Then the advanced controller is used to control the fine-tuning of the liquid level or flow to reach the target value.

[0057] In the switching process, it is necessary to pay attention to prevent jamming in real time. Preferably, further preferably, in step S3, during the switching process between the first valve and the second valve, it is also necessary to determine whether the first valve and the second valve are jammed, and the specific steps are:

[0058] Under the control of the expert script controller, the theoretical output value and on-site feedback value of the valve are obtained every 15 seconds, and the corresponding deviation value is calculated, and the deviation value = theoretical output value - on-site feedback value. The theoretical output value refers to the command output value given by the control system to the on-site valve, and the on-site feedback value is the feedback signal of the actual valve position opening on site. It can ensure that the actual action of the valve can better track the output command and ensure the effective execution of the command. When the deviation value is greater than 5, it is judged that the valve is stuck, and the double valve position is kept unchanged. A prompt pop-up window alarm is given. After the operator recovers from emergency treatment, the first control switch is put into operation to continue the valve switching process.

[0059] The above describes the switching between the overall valves. Now, the disturbance-free switching from the advanced controller to the expert script controller is described in detail: Set the flag bit STATE of the valve A / B switching. When the flag bit STATE is 1, it is defined as valve A running and valve B closed. When the flag bit changes from 0 to 1, the switching execution script is triggered, the advanced controller write value switch is turned off, the expert controller is entered and the switching execution switch A_RUN is enabled, and the switching is performed according to the switching process. When valve A is opened, valve B is closed, and other conditions are met, the execution switch A_RUN is turned off, the advanced controller write value switch is turned on, and the advanced controller control is transferred. When the flag bit is 0, the above program is executed according to valve A closing and valve B running. By locking the flag bit, the execution switch and the two valve states, it is ensured that the single output of the two controllers avoids switching abnormalities.

[0060] Finally, in step S4, after the switching between valve A and valve B is completed, the advanced controller continues to control the output of the opened valve and continuously repeats the above steps S1 to S4.

[0061] The following is an introduction to the specific logic using the liquid level as an example according to the above process.

[0062] Use an advanced controller to control valve A and keep valve B closed: At this time, the main parameters should be as follows:

[0063] STATE=1 (current running status);

[0064] A_SW=1(valve A first controls the switch);

[0065] B_SW=1(valve B controls the switch first);

[0066] A_E I<5 (valve A opening deviation);

[0067] B_E I<5 (valve B opening deviation);

[0068] B_RUN=0 (close A and open B valve execution switch);

[0069] A_WRI TESW = 1 (Advanced controller valve A write value switch);

[0070] B_WRI TESW = 1 (Advanced controller valve B write value switch);

[0071] B_OUT = B_M IN (valve B output = valve B minimum control output);

[0072] A_OUT>A_M IN (valve A output>valve A pilot control output minimum value);

[0073] A_OUT < A_MAX (Output of Valve A < Maximum output of the prior control of Valve A);

[0074] Valve B is triggered to open through the STATE value switch associated with the set value switch of the advanced controller loop parameter MV. At this time, the controlled liquid level is stably controlled by the advanced controller. Each device meets the stable demand of the water balance, and relevant parameters such as time are updated every 30 s.

[0075] To meet the switching requirements, use the expert script controller to control the closing of Valve A and the opening of Valve B during the switching process: When HOUR_NOW is not equal to HOUR_OLD and the remainder of HOUR_NOW (the current hour) divided by 4 is 1, this moment can be 1 o'clock, 5 o'clock, 9 o'clock, etc., at the whole hour moment, meeting the switching requirements, trigger the execution statement to change the STATE value from 1 to 0, calculate SUM = A_OUT + B_OUT (valve summation), calculate the current ratio K_NOW (the current ratio of the valve), and read four historical stored calculated ratios (K_CAL1, K_CAL2, K_CAL3, K_CAL4). For example, if the switching time this time is 17:00, and the previous switching times are 13:00, 9:00, 5:00, 1:00 respectively, then K_CAL1 is the value calculated at 14:00, K_CAL2 is the value calculated at 10:00, K_CAL3 is the value calculated at 6:00, and K_CAL4 is the value calculated at 2:00. K_NOW = 0.4 * K_CAL1 + 0.3 * K_CAL2 + 0.2 * K_CAL3 + 0.1 * K_CAL4, completing the correction of the current ratio. After judging the basic conditions, execute B_OUT = B_OUT + 5.5, A_WRITESW = 0, B_WRITESW = 0, B_RUN = 1, write the relevant calculation parameters into the system. In the next operation cycle, judge whether it meets the basic safety requirements. If it does not meet, pause and pop up an alarm. If it meets, execute B_OUT = B_OUT + 5 / K_NOW, A_OUT = A_OUT - 5, write the value once per cycle, and loop until A_OUT < 5.5 is considered that the valve switching is basically completed. At this time, B_OUT = SUM / K_NOW, A_OUT = 0.01 (the valve is closed when it is closed to 0.01), B_RUN = 0. In the next cycle, when A_OUT < 0.51, open A_WRITESW = 1, B_WRITESW = 1 to complete the transition from expert algorithm control to advanced controller control. The expert algorithm controller executes according to a 15 s cycle.

[0076] Control valve B using an advanced controller and keep valve A closed: At this time, the operating conditions of the main parameters should be: STATE = 0, A_SW = 1, B_SW = 1, A_E I < 5, B_E I < 5, A_RUN = 0, BA_WR I TESW = 1, B_WR I TESW = 1, A_OUT = A_M IN, B_OUT > B_M I N, B_OUT < B_MAX. Valve A is triggered to open by associating the STATE value with the set value switch of the MV parameter in the advanced controller loop. At this time, the controlled liquid level is stably controlled by the advanced controller. Each device meets the requirements of stable water balance, and relevant parameters such as time are updated every 30s in a cycle.

[0077] Meet the switching requirements and use the expert script controller to control the closing of valve B and the opening of valve A during the switching process: When HOUR_NOW is not equal to HOUR_OLD and the remainder of HOUR_NOW divided by 4 is 1, at this moment, it can be 1 o'clock, 5 o'clock, 9 o'clock, etc., at the whole hour moment, meet the switching requirements, trigger the execution statement to change the STATE value from 0 to 1, calculate SUM = A_OUT + B_OUT, calculate the ratio K_NOW, and the method is the same as above. After judging the basic conditions, execute A_OUT = A_OUT + 5.5, A_WRI TESW = 0, B_WRI TESW = 0, A_RUN = 1, write the relevant calculation parameters into the system. In the next operation cycle, judge whether the basic safety requirements are met. If not, pause and pop up an alarm. When met, execute A_OUT = A_OUT + 5 * K_NOW, B_OUT = B_OUT - 5, write the value once per cycle, and loop until B_OUT < 5.5 is considered that the valve switching is basically completed. At this time, A_OUT = SUM * K_NOW, B_OUT = 0.01 (the valve is considered closed when it is closed to 0.01), A_RUN = 0. In the next cycle, when B_OUT < 0.51, A_WRI TESW = 1, B_WRI TESW = 1 to complete the transition from expert algorithm control to advanced controller control. Complete the loop of the entire execution cycle. The expert algorithm controller executes according to a 15s cycle.

[0078] In addition to the above 4 valve switching operation cycles, the calculation ratio K_CAL is also calculated one hour after the switching. The calculation method is to calculate according to whether SV_APC has changed one hour after the switching trigger. If there is no change, read the historical values of A_OUT and B_OUT at the current moment and the current moment - 4 hours for calculation. The calculation formula is K_CAL = MAX(A_OUT(T), A_OUT(T - 4h)) / MAX(B_OUT(T, B_OUT(T - 4h)). When SV_APC changes, the calculation ratio K_CAL = K_CAL(T - 4h) to complete the real-time calculation of the ratio value of the two valves.

[0079] Furthermore, this embodiment also provides an electronic device, which includes a processor and a memory, wherein the memory stores computer instructions that can be executed on the processor, and the processor is used to call the computer instructions in the memory to execute the control method for switching valves in the slag-carrying black water pipeline as described above.

[0080] In addition, this embodiment also provides a storage medium, which is used to store computer instructions, wherein when the computer instructions are executed, the device where the storage medium is located is controlled to execute the control method for switching valves in the slag-carrying black water pipeline as described above.

[0081] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, if these changes fall within the scope of the claims of the present invention and their equivalents, they still fall within the protection scope of the present invention.

Claims

1. A control method for valve switching of a black water pipeline with slag, using a first valve and a second valve respectively arranged on two interrelated pipelines, and controlling the opening and closing of the first valve and the second valve respectively through the corresponding first first control switch and the second first control switch to achieve automatic switching on time, characterized in that: The steps include: S1: according to the preset time, determine whether it is necessary to switch the first valve and the second valve on and off, if necessary, proceed to step S2; S2: Collect the parameters of the first valve and the second valve, the liquid level and flow rate of the external device connected to the first valve and the second valve pipeline, the related parameters of the first control and the first control history database to determine whether the switching conditions are met, and if so, proceed to step S3; S3: turning off the control of the first valve and the second valve by the advanced controller, and switching to the output switching control of the first valve and the second valve by the expert script controller; S4: After the first valve and the second valve are switched, the advanced controller continues to output control and repeats steps S1 to S4; The valve opening ratio of the first valve and the second valve is recorded in the pre-control history database, which specifically includes the following steps: S21: Switching the first valve and the second valve, and reading the opening data of the first valve and the second valve respectively one hour after the switching is completed; S22: Switching the first valve and the second valve again, and reading the opening data of the first valve and the second valve respectively one hour after the switching is completed; S23: dividing the larger value of the first valve opening after two consecutive switches by the larger value of the second valve opening to obtain a historical ratio value K_CAL; And determine whether the flow setting value has changed. If not, the historical ratio value K_CAL is recorded in the latest historical ratio value in the first control historical database; if changed, the previous historical ratio value is read as the latest historical ratio value.

2. The control method for valve switching of black water pipeline with slag according to claim 1 is characterized in that: The preset time interval for valve switching is the same as the interval for collecting historical ratio values, which is 4 hours.

3. The control method for valve switching of black water pipeline with slag according to claim 1 is characterized in that: The switching between the first valve and the second valve specifically includes the following steps: Before switching, the valve in the closed state is a closed valve, and the valve in the open state is an open valve; Open the closed valve to 5 valve openings; Then, based on the current ratio value K_NOW, calculation is performed to make the closed valve and the open valve open with equal amplitude, and when the opening of the open valve is less than 5, the switching process is partially completed; According to the latest historical ratio value of the closed valve and the open valve before switching, the closed valve is opened and the open valve is closed. At this time, the opening of the open valve is less than 0.01, and the switching process is completed; Among them, the current ratio value K_NOW is calculated as follows K_NOW=0.4*K_CAL1+0.3* K_CAL2+0.2*K_CAL3+0.1* K_CAL4 Among them, K_CAL1, K_CAL2, K_CAL3, and K_CAL4 are all historical ratio values ​​recorded in the prior control history database, among which K_CAL1 is the latest historical ratio value, and K_CAL2, K_CAL3, and K_CAL4 are the reverse order of the entered historical ratio values.

4. The control method for switching valves in a black water pipeline with slag according to claim 1 is characterized in that: The switching of the advanced controller to the expert script controller specifically comprises the following steps: Set a flag bit for valve switching, the flag bit is 1 or 0, corresponding to the first valve being opened and the second valve being closed, or the first valve being closed and the second valve being opened; when the opening of the first valve is less than 0.01, the first valve is considered to be closed; when the opening of the second valve is less than 0.01, the second valve is considered to be closed; The flag bit is changed to trigger the switching execution script, the write value switch of the advanced controller is turned off, the expert script controller is entered and the switching execution switch is started to switch the first valve and the second valve. After the valve switching is completed, the switching execution switch is turned off and the control is transferred to the advanced controller.

5. The control method for switching valves in a black water pipeline with slag according to claim 1 is characterized in that: In step S3, during the switching process between the first valve and the second valve, it is also necessary to determine whether the first valve and the second valve are blocked, and the specific steps are as follows: Under the control of the expert script controller, the theoretical output value and the on-site feedback value of the valve are obtained every 15 seconds, and the corresponding deviation value is calculated, the deviation value = the theoretical output value - the on-site feedback value, wherein the theoretical output value is the command output value of the corresponding valve, and the on-site feedback value corresponds to the actual valve opening of the valve; If the deviation value is greater than 5, the valve is judged to be stuck, and a prompt pop-up alarm is given to keep the double valve position unchanged, and continue to switch after repair.

6. An electronic device, characterized in that: The electronic device includes a processor and a memory, the memory stores computer instructions that can be run on the processor, and the processor is used to call the computer instructions in the memory to execute the control method for switching valves in a slag-carrying black water pipeline as described in any one of claims 1-5.

7. A storage medium, characterized in that: The storage medium is used to store computer instructions, wherein when the computer instructions are executed, the device where the storage medium is located is controlled to execute the control method for switching valves in a slag-carrying black water pipeline according to any one of claims 1-5.

Citation Information

Patent Citations

  • Heating station double-valve switching prediction method and device, control equipment and storage medium

    CN115031287A