Disclosure of Invention
The invention aims to solve the technical problem that the quality of bromine is influenced because the chlorine adding amount cannot be accurately controlled in the bromine distillation process in the prior art, and provides a chlorine adding control method and device based on visual identification in the bromine distillation process.
The invention adopts the following specific technical scheme:
a chlorine adding control method based on visual identification in a bromine distillation process comprises the following specific steps:
determining the optimal color depth interval of the corresponding reactant in the distillation tower and the opening range of a control valve on a chlorine feeding pipe according to the optimal bromine quality in the bromine distillation process in advance;
in the operation process of the bromine distillation process, monitoring the color depth of reactants in the distillation tower in real time by a visual identification method, and judging whether the current color depth of the reactants is in the optimal color depth interval; and if the color depth of the current reactant deviates from the optimal color depth interval, adjusting the opening of the control valve within the opening range of the control valve to recover the color of the current reactant to the optimal color depth interval.
It should be noted that the color depth in the present invention refers to the degree of color depth, which can be represented by the color depth value.
Preferably, if the current color depth of the reactant is in the optimal color depth interval, executing a pre-judgment control process; the pre-judging control flow is as follows:
and continuously monitoring the color depth of the reactants in the distillation tower, judging the change trend of the color depth, and if the color of the reactants in the distillation tower continuously increases or decreases, adjusting the opening of the current control valve according to the direction for preventing the trend until the color of the reactants in the distillation tower does not continuously increase or decrease.
Preferably, the color depth of the reactant in the distillation column is determined by a numerical signal obtained by identifying the reactant by imaging with a visual identification method.
Further, the method for judging the color depth change trend of the reactants in the distillation tower comprises the following steps:
monitoring the color depth of reactants in the distillation tower at intervals in continuous time intervals, judging that the color of the reactants in the distillation tower continuously deepens or lightens when the color depths of N continuous monitoring time intervals are deepened or lightened in a consistent way, and judging that the color of the reactants in the distillation tower is in a fluctuation state when the color depths of N continuous monitoring time intervals are deepened or lightened in an inconsistent way without adjusting the opening degree of a control valve; said N is at least 2.
Preferably, the control relationship between the color depth of the reactant and the opening of the control valve on the chlorine feeding pipe is as follows: when the color needs to be darkened, the opening degree of the control valve is reduced; when the color needs to be lightened, the opening degree of the control valve is increased.
Preferably, the method for determining the optimal color depth interval comprises the following steps:
taking the best state when best bromine quality can be produced in the running process of the bromine distillation process as a reference, obtaining an image of a reactant in the distillation tower in the best state, and then processing the image by the visual identification method to obtain the numerical signal size corresponding to the color depth of the reactant in the image; and respectively expanding the numerical value signals to two sides of the numerical value to form a numerical value range by taking the numerical value signals as a reference, wherein the numerical value range is used for representing an optimal color depth interval.
Further, the method for determining the opening range of the control valve comprises the following steps:
and determining the opening degree value of the control valve on the chlorine feeding pipe in the state according to the optimal state, and respectively expanding the opening degree value to two sides of the numerical value according to the early test operation experience by taking the opening degree value as a reference to form the opening degree range of the control valve on the chlorine feeding pipe.
Preferably, when the reactant color depth deviates from the optimal color depth interval and the opening of the control valve needs to be adjusted, the operation needs to be stably performed for a certain time after each adjustment action is performed, then the current reactant color depth is monitored and judged again, and whether the next adjustment action is performed or not is determined according to the judgment result.
Another objective of the present invention is to provide an automatic control system for implementing the chlorination control method according to any one of the above embodiments, the system includes an industrial vision recognition system, a data conversion module, an upper computer control system, and a control execution system;
the industrial vision recognition system is used for recognizing the color depth of reactants in the distillation tower;
the data conversion module is used for carrying out analog-to-digital conversion on the identified color depth of the reactant and transmitting the color depth of the reactant to the upper computer control system;
the upper computer control system is used for processing the received color depth data and sending a control valve opening adjusting instruction to the control execution system according to a judgment result;
and the control execution system is used for correspondingly adjusting the opening of the control valve on the chlorine feeding pipe according to the received adjusting instruction.
Preferably, the distillation tower body is provided with a transparent visual port, the industrial visual identification system is arranged at the visual port, and images of reactants in the distillation tower are acquired through the visual port and the color depth of the reactants is identified; and a supplementary lighting source for assisting the imaging of reactants in the tower is also arranged at the visible port.
Firstly, setting an optimal reference value for the identified color depth, and when the on-site color fading identification value is higher than the optimal reference value, indicating that the chlorine adding amount is in an excessive state, making a judgment by an upper computer control system, and reducing the opening degree of a chlorine regulating valve; otherwise, the valve opening of the chlorine regulating valve is increased.
The invention controls the chlorine adding amount through visual identification, can eliminate the influence of human factors and ensures the yield and quality of bromine. Meanwhile, the automatic system realizes automatic control of the chlorine adding amount in the distillation link, and can strip out the operating personnel from the post of the on-site regulating valve, thereby not only saving manpower and financial resources, but also meeting the requirements of modern safety production.
Detailed Description
The invention will be further elucidated and described with reference to the drawings and the detailed description. The technical features of the embodiments of the present invention can be combined correspondingly without mutual conflict.
Fig. 1 shows an overall bromine distillation process apparatus provided in a preferred embodiment of the present invention. The main body of the equipment is a distillation tower, and the interior of the distillation tower is used for carrying out distillation purification reaction of chlorine and steam. Two transparent visual windows are oppositely arranged on the side wall of the tower body of the distillation tower, one visual window is used for installing an industrial visual recognition system, and the other visual window is provided with a light supplementing light source for supplementing light to the reactant inside the tower body, so that the image acquired by the industrial visual recognition system is clearer. The industrial visual recognition system can be realized by adopting corresponding equipment in the prior art, is not specially limited, and only needs to be capable of recognizing the color depth of the reactant in the image.
The bottom of the distillation tower is connected with a steam feeding pipe and a chlorine feeding pipe, the chlorine feeding pipe is provided with a flow meter 1 and a regulating valve 1, the steam feeding pipe is provided with a flow meter 2 and a regulating valve 2, and the two sets of flow meters and the regulating valves can respectively regulate and meter chlorine and steam input into the distillation tower. In the embodiment, in the process of the process operation, the feeding amount of the steam is set according to needs and then is kept at a preset fixed value for a long time, and the feeding amount of the chlorine is mainly adjusted by the adjusting valve 1. The feed ratio of chlorine to steam affects the depth of color of the internal reactants, resulting in too dark a reactant when chlorine is not added sufficiently and too light a reactant when chlorine is added excessively. The key point of the invention is that an industrial visual identification system arranged at the position of a visual window is utilized to monitor the color depth of reactants in real time, then the color depth is taken as a reference, and the chlorine introduction amount is subjected to feedback control, so that the mixture ratio of the reactants and the chlorine is in an optimal state, and the best quality of bromine is ensured. Mother liquor enters from the top of the distillation tower, finished products are discharged from the top, and waste liquid is discharged from the bottom of the distillation tower.
The following describes a specific implementation of the chlorine addition control method based on visual identification in the bromine distillation process of the present invention, taking the apparatus shown in fig. 1 as an example.
In the method, the operation state of the best bromine quality in the bromine distillation process is determined by taking the quality of the produced bromine as a standard according to historical tests or manual operation experience in advance, and then the best color depth corresponding to the reactant image in the tower when the best bromine quality can be obtained is determined. And the color depth of the reactant in the distillation tower is determined by using the magnitude of a numerical signal obtained by identifying the imaging of the reactant by a visual identification method. The visual recognition method described herein is used to recognize the color depth information in the image. The color depth, i.e. the depth information, can convert the image color information acquired by the visual acquisition into a color depth value through a color depth conversion algorithm. The specific conversion algorithm may be implemented in any feasible manner in the prior art, for example, the gray value is calculated based on R, G, B, and the color depth information is displayed in gray scale, or other corresponding algorithms, which are not limited. Generally speaking, the darker the color, the smaller the value of the color depth value, which represents insufficient chlorine addition; conversely, the lighter the color, the greater the value of the color depth value, and the chlorine is added in excess.
The determined optimum color depth is a value, and the color depth of the reactant is fluctuated because the internal reaction itself fluctuates in the actual process, although the subsequent process can be judged and adjusted based on the value. Overall, the optimal color depth of the reactants that produce the best bromine quality can be set to an approximate range, more operationally than a single value. Therefore, a certain range of expansion can be performed based on the above-mentioned optimal color depth value. One preferred implementation is: obtaining an image of a reactant in a distillation tower in an optimal state based on the optimal state when the optimal bromine quality can be produced in the operation process of a bromine distillation process, and then performing color depth value conversion processing on the image by a visual identification method to obtain the magnitude of a numerical signal corresponding to the color depth of the reactant in the image; and respectively expanding the numerical value signals to two sides of the numerical value to form a numerical value range by taking the numerical value signals as a reference, wherein the numerical value range is used for representing an optimal color depth interval. In the actual operation process, the values of the extension ranges on the two sides need to be determined based on field process experience or multiple times of optimization, and the reasonability and accuracy of the optimal color depth interval are ensured.
In addition, since the control valve on the chlorine gas feeding pipe, i.e. the regulating valve 1, needs to take on the function of changing the chlorine gas feeding amount, a maximum valve opening range of the regulating valve needs to be preset during specific execution, and the opening is quickly adjusted according to the maximum valve opening range as a reference. Therefore, a preferred implementation is: and determining the opening degree value of the control valve on the chlorine feeding pipe in the state according to the determined running state with the optimal bromine quality, and respectively expanding the opening degree value to two sides of the value according to the early test operation experience by taking the opening degree value as a reference to form the opening degree range of the control valve on the chlorine feeding pipe. Similarly, the specific extension range needs to be determined based on field process experience or multiple optimization, the maximum regulation and control interval of the valve is reasonably set, and a certain regulation margin needs to be reserved if necessary, so that unnecessary over-regulation is avoided while wide-range regulation is ensured.
The determined optimal color depth interval of the reactants in the distillation tower and the opening range of the control valve on the chlorine feeding pipe can be stored in an upper computer in advance to be used as reference data for subsequent judgment and control. Although the approximate opening range of the valve can be determined empirically, the reaction process has volatility due to instability of raw material feeding difference, temperature, pressure and acid concentration in the distillation column, and the reaction equilibrium point cannot be found quantitatively. The following describes in detail how to implement dynamic automatic control of chlorination based on visual recognition during the process run.
And in the operation process of the bromine distillation process, monitoring the color depth of the reactant in the current distillation tower in real time by a visual identification method. It should be noted that, in order to ensure the data contrast, the visual recognition method used herein needs to be consistent with the method used for determining the reference data (the optimal color depth interval, the valve opening range). For the color depth value of the reactant in the current distillation tower obtained in the real-time monitoring process, whether the color depth of the current reactant is in the determined optimal color depth interval needs to be judged, and the judgment results are divided into two types: if the color depth of the current reactant deviates from the optimal color depth interval, adjusting the opening of the control valve within the determined opening range of the control valve to recover the color of the current reactant to the optimal color depth interval; and if the current color depth of the reactants does not deviate from the optimal color depth interval, the current chlorine adding amount is considered to be appropriate, and the valve opening degree is not adjusted. The control relationship between the color depth of the reactant and the opening degree of a control valve on the chlorine feeding pipe is as follows: when the color needs to be darkened, the opening degree of a control valve is reduced, and the addition amount of chlorine is reduced; when the color needs to be lightened, the opening degree of the control valve is increased, and the addition amount of the chlorine gas is increased.
In the specific valve opening adjustment process, the opening adjustment step length of each time can be determined according to actual needs, and can be a fixed value or a non-fixed value. Step length value is reasonably designed, and too large results in too large single adjustment amplitude and too violent internal reaction fluctuation, so that the adjustment to an optimal value is difficult; however, too small step size also easily results in too long adjustment time and low efficiency. And because the adjustment of the chlorine adding amount has certain asynchronism with the color conversion of reactants, a preferred realization mode is as follows: when the color depth of the reactant deviates from the optimal color depth interval and the opening of the control valve needs to be adjusted, the reactant needs to stably run for a certain time (the specific time can be adjusted) after the adjustment action is executed each time, then the current color depth of the reactant is monitored and judged again, and whether the next adjustment action is carried out or not is determined according to the judgment result. If the current reactant color depth returns to the optimal color depth interval after the adjustment, the adjustment can be stopped on the next step, and if the current reactant color depth does not return to the optimal color depth interval after the adjustment, the valve opening can be continuously changed according to the adjustment direction of the color depth on the next step, and the adjustment needs to be restarted again when the adjustment is excessive once.
And indicating that the overall reaction is in a better state for the condition that the currently monitored color depth of the reactant is within the optimal color depth interval. In fact, however, the aforesaid determined optimum colour depth interval has a certain amplitude in itself, so that even if the current colour lies within this interval, it does not represent that the amount of chlorine added is perfectly proportional to the optimum ratio. Due to the hysteresis of the bromine extraction reaction observed by the color in the distillation column, the addition of chlorine is different in time from the color change of the reactants, and if chlorine is actually present in a little excess or deficiency, the current color gradually deviates from the optimal interval with the passage of time even if the current color is in the optimal interval. If the current color depth of the reactant is within the optimal color depth range, no valve opening adjustment is performed at all, which may result in the quality of the actually generated bromine being not optimal and the raw material being wasted. Therefore, the present invention can further provide a preferred implementation manner based on the above-mentioned process, that is, if the current color depth of the reactant is in the optimal color depth interval, a pre-determination control process needs to be executed to eliminate the influence of the control hysteresis. The specific process of the prejudgment control flow is as follows:
when the current color depth of the reactant is in the optimal color depth interval, the color depth of the reactant in the distillation tower needs to be continuously monitored at regular intervals, and besides whether the current color depth is in the optimal color depth interval or not, the change trend of the color depth in a certain monitoring time period needs to be judged. If the color of the reactant in the distillation tower continuously increases or decreases, the opening of the current control valve is adjusted according to the direction for preventing the trend until the color of the reactant in the distillation tower does not continuously increase or decrease. If no continuous deepening or shallowing tendency occurs, there is no need to adjust the valve opening of the chlorine feed pipe. The continuous deepening or lightening trend means that the color depth of the reactant at the later time point is deepened relative to the color depth of the reactant at the previous time point at a plurality of continuous monitoring time points; or at several successive monitoring time points, the color depth of the reactant at the latter time point becomes lighter relative to the former time point. If part of the time period is deepened and part of the time period is shallowed, the time period can be regarded as only fluctuation, and the continuity trend does not appear.
From the concrete implementation point of view, the method for judging the color depth change trend of the reactants in the distillation tower can be realized by adopting the following modes:
and monitoring the color depth of the reactant in the distillation tower at intervals in continuous time intervals, judging that the color of the reactant in the distillation tower continuously deepens (or lightens) when the color depths of N continuous monitoring time intervals are deepened (or lightened) in a consistent way, and judging that the color of the reactant in the distillation tower is in a fluctuation state when the color depths of N continuous monitoring time intervals are deepened or lightened in an inconsistent way without adjusting the opening degree of a control valve. The trend refers to the trend of color change at the front and back monitoring time points, namely, the color changes from light to light or from light to dark. In this process, N takes a natural number of at least 2. However, when N is only 2, the sample is too small to distinguish inevitable fluctuations in the reaction, and such fluctuations are easily recognized as color changes due to an unreasonable chlorine addition amount, so that the auxiliary judgment can be performed in combination with the absolute amount of color depth change. Of course, N can also consider that the value setting is larger to accurately identify the trend, but N cannot be too large, so that the problems that the identification flow is too long and the adjustment sensitivity is reduced are prevented.
In the control method, data needs to be continuously monitored and then feedback-regulated, so that a matched automatic control system is needed to realize automatic operation of the method, and the manual operation amount is reduced. One implementation of the automatic control system is given below. As shown in fig. 2, the automatic control system includes an industrial vision recognition system a, a data conversion module B, a host computer control system C, and a control execution system D.
The industrial vision recognition system A is installed at a visible port of the distillation tower, a light supplementing light source is placed at the opposite visible port and is completely covered by a glass fiber reinforced plastic cover, and field components are installed in the glass fiber reinforced plastic cover. The industrial vision recognition system is capable of taking a reactant image of the internal chlorine and water vapor through the imaging system and then recognizing the reactant color depth within the distillation column.
The data conversion module B is arranged between the industrial vision system and the upper computer control system and is arranged according to the field working condition environment. And the data conversion module is used for carrying out analog-to-digital conversion on the identified color depth of the reactant and transmitting the digital signal to the upper computer control system.
And the upper computer control system C is used for processing the received color depth data, judging whether the color depth of the current reactant is in the optimal color depth interval or not, and sending a control valve opening adjusting instruction to the control execution system according to the judgment result, wherein the specific judgment process and the valve control information given according to the judgment result are as described above. The upper computer control system mainly comprises an industrial personal computer and a display screen, is installed in the central control room, and displays video parameters identified by upper computer software on the display screen in real time. Meanwhile, data parameters and control instructions identified by the upper computer system can be transmitted to the control execution system in real time, so that automatic control is realized. The aforementioned prejudgment control process can also be executed as a module by the upper computer control system.
The control execution system D can adopt a DCS system and the like and is used for accurately and correspondingly adjusting the opening of the adjusting valve 1 on the chlorine feeding pipe according to the received adjusting instruction.
The following further illustrates the process of the present invention in a specific embodiment to better understand the essence of the invention for those skilled in the art.
1. First, according to the manual operation experience, the optimal color depth of the reactant is found according to the quality of the bromine product, and the optimal color depth is converted into a color depth value, such as 34. The valve opening information, e.g. 50, for the best color is recorded. The darker the field color is, the smaller the color depth value is, which represents that the chlorine is insufficiently added; conversely, chlorine is added in excess.
2. After the optimal color depth is recognized as a numerical signal through system recognition, an optimal color depth interval is set based on the expansion of the numerical value to two sides, for example: 30-38. Meanwhile, a valve regulation and control interval, such as 48-52 (the value is the maximum regulation and control interval of the valve judged by field process experience) is set based on the valve opening corresponding to the optimal color, and in order to ensure the regulation and control reliability, a margin is reserved in the background, namely the actual valve opening adjustable range is 47-53.
3. And starting to automatically operate the whole automatic control system, monitoring the color depth of the reactant in the distillation tower in real time by a visual identification method, and judging whether the current color depth of the reactant is in the optimal color depth interval. If the color depth of the current reactant deviates from the range of 30-38, the opening of the control valve is adjusted within the range of 48-52, so that the color of the current reactant is restored to the optimal color depth range.
For example, when the color value leaves the optimal interval of 30-38, for example, the value is 29, the opening of the touch valve is reduced by 0.5, the control is stopped when the color value returns to the optimal interval of 30-38 after stable operation for 20 seconds, and the control is continued if the color value does not return to the optimal interval of 30-38; if there is a situation where the spot color is far from the optimal interval of 30-38: for example, at a value of 10, the valve is not adjusted as sharply, but is incremented from 0.5, increased by 0.5, stabilized for 20 seconds, and increased by 1 (maximum primary adjustment amount of 1) until the optimum range of 30-38 is returned.
4. In principle, when the color value is in the range of 30-38, the opening of the regulating valve is not needed, but in the embodiment, a prejudgment function is provided, when the color value is always in an increasing trend, the chlorine is considered to be in an excessive trend, and then the chlorine valve is automatically regulated in a small range, for example, the opening of the valve is reduced by 0.5 each time until the trend is eliminated.
Every time the valve opening is adjusted, all parameters at the moment are recorded for reference of subsequent adjustment. As shown in fig. 3, at the next time (the time interval 10s before and after), the color changes from dark to light, which indicates that the valve opening effect has been effective, and the color depth value has a rising trend (a threshold value of the rising amount may also be set, and a value below the threshold value may be regarded as merely fluctuating), but does not reach the upper reference value. The value of "parameter 1" is referred to at this time, and the valve opening adjustment value (possibly a closing trend) at this time is given. The specific adjustment value and the adjustment direction can be used for establishing a valve opening adjustment rule in advance based on manual operation record data and used as an internal database for reference. Due to the hysteresis of the reaction process, the judgment can be made in advance through the method, so that the reaction enters a relative equilibrium stage, namely a stage that the valve does not need to act and the reaction can be carried out in an optimal condition range all the time. Of course, fig. 3 shows only two monitoring time points to determine the trend, and more monitoring time points may be actually set.
The prejudgment function is to eliminate the lag caused by the violent color change and the violent valve regulation and control, and to stabilize the valve opening in a reasonable range to ensure the stable product quality.
In this embodiment, after the control system operates, the use effect is as follows:
1. eliminating the influence of human factors. Different people have individual difference to the color judgement, especially seriously influence artifical to the color judgement evening, and lead to the tired state to delay in time operation easily, lead to chlorine addition volume improper.
2. The timeliness and the accuracy of the chlorine adding amount are guaranteed after the automatic system operates, in addition, in the aspect of bromine quality, the method stabilizes the chlorine radical content of a product within 0.05 percent, meets the requirement of GB/T2021-1991, reduces the bromine content of distillation waste discharge in the aspect of extraction rate, and stabilizes the bromine content in the waste discharge within 0.2 kilogram of each cubic discharge liquid.
3. Greatly reducing the labor intensity of operators, reducing the staff for adjusting the valve of the distillation post and saving the labor cost.
4. Meets the requirements of safety and environmental protection, realizes the separation of personnel and the site, ensures the production safety and reduces the emission of chlorine gas at the same time.
The above-described embodiments are merely preferred embodiments of the present invention, which should not be construed as limiting the invention. Various changes and modifications may be made by one of ordinary skill in the pertinent art without departing from the spirit and scope of the present invention. Therefore, the technical scheme obtained by adopting the mode of equivalent replacement or equivalent transformation is within the protection scope of the invention.