Implementation method for automatically debugging optimal working parameters of outer wall type liquid level meter

文档序号:1844099 发布日期:2021-11-16 浏览:28次 中文

阅读说明:本技术 一种外壁式液位计自动调试最佳工作参数的实现方法 (Implementation method for automatically debugging optimal working parameters of outer wall type liquid level meter ) 是由 杨瑞军 于 2021-08-18 设计创作,主要内容包括:本发明提供了一种外壁式液位计自动调试最佳工作参数的实现方法,由五部分流程组成:第一部分流程是初始参数设定;第二部分流程是在设定参数下粗扫频并记录每组相关参数和检测结果;第三部分流程是对粗扫频下的记录参数和检测结果进行分析和判断并得出初步结论;第四部分流程是在第三部分初步结论的基础上进行细扫频并记录每组相关参数和检测结果;第五部分流程是对细扫频下的记录参数和检测结果进行分析和判断并得出最佳工作参数,本发明通过集成一种外壁式液位计自动调试最佳工作参数的实现方法,大幅简化了传统罐壁外检测液位计现场调试的复杂度,提高了调试效率,降低了厂家前期调试和后期维护的成本。(The invention provides a method for realizing automatic debugging of optimal working parameters of an outer wall type liquid level meter, which comprises the following five processes: the first part of the process is initial parameter setting; the second part of the process is to perform coarse frequency sweeping under set parameters and record each group of related parameters and detection results; the third part of the process is to analyze and judge the recording parameters and the detection results under the coarse scanning frequency and obtain a preliminary conclusion; the fourth process is to perform fine frequency sweeping on the basis of the preliminary conclusion of the third part and record each group of related parameters and detection results; the fifth part of the process is to analyze and judge the recording parameters and the detection results under the fine frequency sweep to obtain the optimal working parameters.)

1. The method for realizing the automatic debugging of the optimal working parameters of the outer wall type liquid level meter comprises the steps of initial parameter setting (1), coarse frequency scanning and recording related parameters and detection results (2), coarse frequency scanning recording data analysis and judgment (3), fine frequency scanning and recording related parameters and detection results (4), fine frequency scanning recording data analysis and judgment (5), and is characterized in that: firstly, setting initial parameters (1); then carrying out coarse frequency sweeping and recording related working parameters and detection results (2); then, carrying out coarse frequency sweep recording data analysis and judgment (3) to obtain relatively good working parameters preliminarily; then, under the premise of relatively good working parameters, fine frequency sweeping is carried out, and relevant working parameters and detection results are recorded (4); and finally, analyzing and judging the fine frequency sweep recorded data (5) to obtain the optimal working parameters.

2. The method for realizing automatic debugging of the optimal working parameters of the outer wall type liquid level meter according to claim 1, is characterized in that: the initial parameter setting (1) comprises an initial value setting (2-1) of a transmitting related parameter, an initial value setting (2-2) of a coarse frequency scanning related parameter, an initial value setting (2-3) of a fine frequency scanning related parameter and an initial value setting (2-4) of an automatic debugging gain, and the initial parameter setting (1) is a necessary precondition for ensuring the correct work of the whole process.

3. The method for realizing automatic debugging of the optimal working parameters of the outer wall type liquid level meter according to claim 1, is characterized in that: the coarse frequency sweeping and recording related parameters and detection results (2) comprise a coarse frequency sweeping completion judgment logic (3-1), a processing logic (3-2) for detecting effective echoes, a processing logic (3-3) for not detecting effective echoes or debugging gain reaches a maximum value, and coarse frequency sweeping frequency increase coarse frequency sweeping frequency span processing (3-4), wherein the coarse frequency sweeping is firstly used for achieving the purpose that the coarse frequency sweeping frequency span is large, and the approximate position of relatively good working parameters can be quickly positioned; meanwhile, working parameters and detection results under each coarse scanning frequency are recorded, and subsequent analysis and judgment are facilitated.

4. The method for realizing automatic debugging of the optimal working parameters of the outer wall type liquid level meter according to claim 1, is characterized in that: the coarse frequency scanning recorded data analysis and judgment (3) comprises judgment logic (4-1) for initializing relevant variables and finishing analysis of recorded data, gain size comparison logic (4-2) of the recorded data, echo blind zone size comparison logic (4-3) of the recorded data when gains are the same, data analysis counter increment logic (4-4), and logic (4-5) for obtaining better working parameters from the recorded data through index values of the better working parameters, and through comparing detection results of the coarse frequency scanning recorded data one by one, the group of parameters with the minimum debugging gain is found, or the group of parameters with the minimum echo blind zone is found when the debugging gains are the same, namely the relatively better working parameters.

5. The method for realizing automatic debugging of the optimal working parameters of the outer wall type liquid level meter according to claim 1, is characterized in that: the fine frequency sweep and the recording of the related parameters and the detection result (4) comprise fine frequency sweep variable initialization logic (5-1), fine frequency sweep judgment logic (5-2) whether the fine frequency sweep is finished or not, processing logic (5-3) for detecting effective echo, processing logic (5-4) for not detecting effective echo or debugging gain to reach the maximum value, fine frequency sweep frequency increase fine frequency sweep frequency span and fine frequency sweep cycle number calculator increase processing (5-5), and the purpose of using the fine frequency sweep is that the fine frequency sweep frequency span is small, and the specific position of the optimal working parameter can be positioned on the basis of relatively good working parameters obtained by coarse frequency sweep; meanwhile, the working parameters and the detection results under each fine frequency sweep frequency are recorded, so that the follow-up analysis and judgment are facilitated.

6. The method for realizing automatic debugging of the optimal working parameters of the outer wall type liquid level meter according to claim 1, is characterized in that: the fine frequency sweep recorded data analysis and judgment (5) comprises judgment logic (6-1) for initializing relevant variables and finishing analysis of recorded data, gain size comparison logic (6-2) of the recorded data, echo blind zone size comparison logic (6-3) of the recorded data when gains are the same, data analysis counter increment logic (6-4), logic (6-5) of the optimal working parameter is obtained from the recorded data through the index value of the optimal working parameter, the group of parameters with the minimum debugging gain or the group of parameters with the minimum echo blind zone when the debugging gains are the same are found through comparing the detection results of the fine frequency sweep recorded data one by one, and the optimal working parameter is the group of parameters, so that the whole process of automatically debugging the optimal working parameter is finished.

Technical Field

The invention relates to the technical field of liquid level meters, in particular to a method for realizing automatic debugging of optimal working parameters of an outer wall type liquid level meter.

Background

In the petrochemical industry, in the liquid level detection of storage tanks for high-pressure, inflammable, explosive and dangerous chemicals and the like, the field debugging of the traditional liquid level meter for detecting the outside of the tank wall is very troublesome, the professional requirement is very high, and general field instruments are difficult to successfully debug even after professional training, which is a ubiquitous problem at present. The automation degree of the instrument in field debugging is too low, and the instrument needs to be debugged by professional after-sales personnel of a manufacturer on the field, so that the cost of early debugging and later maintenance of the manufacturer is increased; on the other hand, the technical bottleneck of product export abroad is caused, the outer wall type liquid level meter integrates a method for automatically debugging the optimal working parameters, the complexity of field debugging of the traditional tank wall outer detection liquid level meter is greatly simplified, the debugging efficiency is improved, and meanwhile, the early debugging cost and the later maintenance cost of a manufacturer are greatly reduced.

Based on the above, the invention designs an implementation method for automatically debugging the optimal working parameters of the outer wall type liquid level meter, so as to solve the problems.

Disclosure of Invention

The invention aims to provide a method for realizing automatic debugging of optimal working parameters of an outer wall type liquid level meter, which greatly simplifies the complexity of field debugging of the traditional tank wall outer detection liquid level meter, improves the debugging efficiency and reduces the early debugging cost and the later maintenance cost of a manufacturer.

In order to achieve the purpose, the invention provides the following technical scheme: an implementation method for automatically debugging optimal working parameters of an outer wall type liquid level meter mainly comprises five processes, wherein the first process is initial parameter setting; the second part of the process is to perform coarse frequency sweep under set parameters (coarse frequency sweep: the frequency span of each frequency sweep is large) and record each group of related parameters and detection results; the third part of the process is to analyze and judge the recording parameters and the detection results under the coarse scanning frequency and obtain a preliminary conclusion; the fourth process is to perform fine frequency sweep (fine frequency sweep: the frequency span of each frequency sweep is small) on the basis of the preliminary conclusion of the third part and record each group of related parameters and detection results; and the fifth part of the process is to analyze and judge the recording parameters and the detection results under the fine frequency sweep and obtain the final conclusion, namely the optimal working parameters.

The initial parameter setting of the first part of the process relates to the working parameters of the outer wall type liquid level meter, namely the emission period, the emission frequency, the emission duration, the emission intensity, the coarse sweep frequency span, the fine sweep frequency span, the coarse sweep frequency termination frequency and the automatic debugging gain. The initial value of the emission period is 100ms, the initial value of the emission frequency is 50KHz, the initial value of the emission duration is 10 emission frequencies, the initial value of the emission intensity is 8 (high intensity), the frequency span of the coarse sweep frequency is 50KHz, the frequency span of the fine sweep frequency is 5KHz, the frequency of the coarse sweep stop is 500KHz, and the initial value of the automatic debugging gain is 0.

And in the second part of the process, coarse frequency sweeping is carried out under set parameters, and each group of related parameters and detection results are recorded.

The flow of coarse scan detection and recording is as follows:

1. and detecting by using the first part of initial parameters, wherein the debugging gain can be automatically adjusted according to the echo intensity in the detection process, and the detection is not completed until the effective echo is detected or the gain is adjusted to be maximum. Recording current working parameters and detection results, wherein the recorded detection results comprise debugging gain and echo blind areas;

2. and other parameters are kept unchanged, the frequency parameter is increased by the frequency span of the coarse frequency sweep of 50KHz, then the detection is carried out, the debugging gain in the detection process can be automatically adjusted according to the echo intensity, and the detection is not completed until the effective echo is detected or the gain is adjusted to be maximum. Recording current working parameters and detection results, wherein the recorded detection results comprise debugging gain and echo blind areas;

3. and repeating the detection and recording process of 2 until the frequency parameter is more than the coarse frequency sweep termination frequency of 500KHz, and ending the detection and recording of the second coarse frequency sweep.

And the third part of the process analyzes and judges the recording parameters and the detection results under the coarse scanning frequency and obtains a preliminary conclusion.

The process of analyzing and judging the detection result under the coarse frequency sweep is as follows:

1. comparing the debugging gain values of each group of recorded detection results respectively, wherein the smaller the debugging gain value is, the stronger the echo signal is;

2. if the comparison result in 1 has the condition that the debugging gain values are all very small and the same, then the comparison of the echo blind areas is carried out; when the debugging gains are all small and the same, the echo blind area is smaller, which shows that the echo signal is not only very strong, but also better in comparison with the matching of the tank wall.

3. Corresponding working parameters are extracted from record indexes with small debugging gain and small echo blind areas of the detection result, and a preliminary conclusion under coarse frequency scanning, namely relatively good working parameters, is obtained.

And the fourth process carries out fine frequency sweep on the basis of the preliminary conclusion of the third part and records each group of related parameters and detection results.

The flow of fine scan detection and recording is as follows:

1. and calculating the initial value of the frequency of the fine sweep frequency and the cycle number of the fine sweep frequency by taking the initial working parameter obtained by the third part as the basic parameter of the fourth part, and clearing a counter of the cycle number of the fine sweep frequency.

2. And other parameters are kept unchanged, the frequency parameter is increased by the fine sweep frequency span of 5KHz, then the detection is carried out, the debugging gain in the detection process can be automatically adjusted according to the echo intensity, and the detection is not completed until the effective echo is detected or the gain is adjusted to be maximum. Recording the current working parameters and the detection result, wherein the recorded detection result comprises a debugging gain and an echo blind area, and meanwhile, adding one to a fine sweep frequency counter;

3. and repeating the detection and recording process of the step 2 until the fine sweep frequency counter is larger than the cycle number of the fine sweep frequency, and finishing the detection and recording of the fourth fine sweep frequency.

And the fifth part of the process analyzes and judges the recording parameters and the detection results under the fine frequency sweep and obtains the final conclusion, namely the optimal working parameters.

The flow of analysis and judgment of the detection result under the fine frequency sweep is as follows:

1. comparing the debugging gain values of each group of recorded detection results respectively, wherein the smaller the debugging gain value is, the stronger the echo signal is;

2. if the comparison result in 1 has the condition that the debugging gain values are all very small and the same, then the comparison of the echo blind areas is carried out; when the debugging gains are all very small and the same, the echo blind area is smaller, which shows that the echo signal is not only very strong, but also is very well matched with the tank wall. (Note: if there are two or more of the same records with the lowest debug gain and the lowest echo hole, then one set of operating parameters can be arbitrarily chosen! this is a small probability event but needs to be explicitly how to handle it).

3. And extracting corresponding working parameters from the record indexes with small detection result debugging gain and small echo blind areas to obtain the final conclusion under the fine frequency sweep, namely the optimal working parameters.

And then, the outer wall type liquid level meter stores the optimal working parameters into the nonvolatile memory and detects the liquid level according to the optimal working parameters.

The method has the advantages that the complexity of field debugging of the traditional tank wall outer detection liquid level meter is greatly simplified, the debugging efficiency is improved, and the early debugging cost and the later maintenance cost of a manufacturer are reduced by integrating the method for realizing the automatic debugging of the optimal working parameters of the outer wall type liquid level meter.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.

FIG. 1 is a general flow chart of an implementation method for automatically adjusting optimal working parameters of an external wall type liquid level meter.

FIG. 2 is a flow chart of initial parameter setting of an implementation method for automatically debugging optimal working parameters of an external wall type liquid level meter.

FIG. 3 is a flow chart of coarse frequency sweep and recording of relevant parameters and detection results of an implementation method for automatically debugging optimal working parameters of an external wall type liquid level meter.

FIG. 4 is a flow chart of coarse sweep frequency recorded data analysis and judgment of an implementation method for automatically debugging optimal working parameters of an external wall type liquid level meter.

FIG. 5 is a flow chart of fine frequency sweep and recording of relevant parameters and detection results of an implementation method for automatically debugging optimal working parameters of an external wall type liquid level meter.

FIG. 6 is a flow chart of fine sweep frequency recorded data analysis and judgment of an implementation method for automatically debugging optimal working parameters of an external wall type liquid level meter.

In the drawings, the components represented by the respective reference numerals are listed below:

1. setting initial parameters 2, carrying out coarse frequency sweep and recording related parameters and detection results 3, carrying out coarse frequency sweep recording data analysis and judgment 4, carrying out fine frequency sweep and recording related parameters and detection results 5, and carrying out fine frequency sweep recording data analysis and judgment.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1, a general flow chart of a method for implementing automatic debugging of optimal working parameters of an external wall type liquid level meter includes initial parameter setting 1, coarse frequency sweep and recording related parameters and detection results 2, coarse frequency sweep recording data analysis and judgment 3, fine frequency sweep and recording related parameters and detection results 4, and fine frequency sweep recording data analysis and judgment 5.

Referring to fig. 2, an initial parameter setting flow chart of an implementation method for automatically debugging optimal working parameters of an external wall type liquid level meter includes setting an initial value of a transmission related parameter 2-1, setting an initial value of a coarse frequency sweep related parameter 2-2, setting an initial value of a fine frequency sweep related parameter 2-3, and setting an initial value of an automatic debugging gain 2-4.

Referring to fig. 3, a flow chart of rough frequency sweep and recording related parameters and detection results of an implementation method for automatically debugging optimal working parameters of an external wall type liquid level meter includes a logic 3-1 for judging whether the rough frequency sweep is completed, a logic 3-2 for processing effective echoes, a logic 3-3 for processing the effective echoes or the debugging gains reach the maximum values, and a processing 3-4 for increasing the frequency span of the rough frequency sweep.

Referring to fig. 4, a flow chart of coarse frequency scanning recorded data analysis and judgment of an implementation method for automatically debugging optimal working parameters of an external wall type liquid level meter includes a judgment logic 4-1 for initializing relevant variables and finishing analysis of recorded data, a comparison logic 4-2 for gain size of the recorded data, a comparison logic 4-3 for echo blind area size of the recorded data when gains are the same, a data analysis counter is increased by a logic 4-4, and a logic 4-5 for better working parameters is obtained from the recorded data through index values of the better working parameters.

Referring to fig. 5, a flow chart of fine frequency sweep and recording related parameters and detection results of an implementation method for automatically debugging optimal working parameters of an external wall type liquid level meter includes fine frequency sweep variable initialization logic 5-1, fine frequency sweep judgment logic 5-2, processing logic 5-3 for detecting effective echoes, processing logic 5-4 for not detecting effective echoes or debugging gains reaching the maximum value, fine frequency sweep frequency increase fine frequency sweep frequency span and fine frequency sweep cycle number calculator increase processing 5-5.

Referring to fig. 6, a flow chart of analyzing and judging fine frequency sweep recording data of an implementation method for automatically debugging optimal working parameters of an external wall type liquid level meter includes a judgment logic 6-1 for initializing relevant variables and finishing analyzing the recording data, a comparison logic 6-2 for comparing the gain of the recording data, a comparison logic 6-3 for comparing the size of an echo blind area of the recording data when gains are the same, a data analysis counter is added with a logic 6-4, and a logic 6-5 for obtaining the optimal working parameters from the recording data according to the index values of the optimal working parameters.

In the description herein, references to the description of "one embodiment," "an example," "a specific example" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise embodiments disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种水利工程水库管理用水位测量装置

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类