Ultrasonic liquid level meter and cyclic measurement method thereof
By constructing the [t0-td, t0+td] interval in an ultrasonic liquid level meter and analyzing the echo time difference and combining the air temperature, the problem of secondary and multiple echo interference in the full liquid level meter is solved, and the problem of ultrasonic liquid level meter is realized. Highly accurate liquid level measurement.
Patent Information
- Application Number
- CN202210607201.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-05-31
AI Technical Summary
Existing ultrasonic level meters are susceptible to obstacles and secondary and multiple echo interference in liquid level measurement. Especially when the container approaches full liquid level, the air distance of ultrasonic waves propagates becomes smaller, resulting in incomplete energy attenuation. , which forms secondary or even multiple echo interference, affecting the measurement accuracy.
Using ultrasonic level meter and its cyclic measurement method, two sets of measurement modes are defined and constructed, and the [t0-td, t0+td] interval is constructed based on the starting time difference variable t0 and the time difference td of the empirical change speed of liquid level. The echo time difference is filtered out, and the effective time difference is selected, combined with the current air temperature, the liquid level depth is calculated by the formula of the selected mode, and fixed obstacles and secondary and multiple echo interference are automatically eliminated.
It realizes intelligent and accurate measurement under harsh working conditions, improves measurement accuracy and stability, adapts to environments in different working conditions, and reduces measurement errors.
Smart Images

Figure CN115014463B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of liquid level measurement, and in particular to an ultrasonic liquid level meter and a cyclic measurement method thereof. Background Art
[0002] With the popularization of automated production in society and the promotion of Internet of Things technology, liquid level meters have become an essential component in the field of liquid depth monitoring and sensing; compared with magnetic levitation, capacitance, pressure, radio frequency admittance, tuning fork, electric contact, and connected trough liquid level meters, ultrasonic liquid level meters have the uniqueness of non-contact measurement. Compared with radar level meters, which also belong to non-contact measurement, ultrasonic liquid level meters have a higher cost performance; therefore, they have been used more and more widely in chemical, steel, electricity, food, mining, warehousing, water treatment, papermaking, light industry, pharmaceuticals, municipal administration, water conservancy monitoring and other fields; at present, the existing ultrasonic liquid level meter measurement method is easily interfered by obstacles and secondary and multiple echoes, and has certain defects; for example, Chinese Patent No. CN202010330950.6 discloses a waveform recognition type ultrasonic liquid level meter and its measurement method. The essence of this invention is to increase the amplification factor to explore the echo with the longest time difference, and at the same time screen The invention shields echoes with shorter time differences. Although the correct echo signals are analyzed and determined by scanning the echo signals within the full range, the accuracy of the data is guaranteed, and the application scope of the ultrasonic level meter is expanded, the invention ignores the fact that ultrasonic propagation ranging is the essence of mechanical wave reflection and energy attenuation. When the container is close to the full liquid level state, for example, due to the rise in liquid level, the liquid reflection surface is closer to the ultrasonic probe, such as 1.1 meters away, because the air distance of ultrasonic propagation becomes smaller, the energy cannot be completely attenuated at one time, and then reflects back and forth between the liquid surface and the ultrasonic probe, forming secondary or even multiple echo interference. The ultrasonic level meter increases the amplification factor and records the secondary or even multiple echoes with the longest acquisition time difference as measurement data, while shielding the correct single echo of the liquid surface with a shorter time difference as an obstacle, and thus cannot measure the correct liquid level value. For this reason, we propose an ultrasonic level meter and a cyclic measurement method thereof. Summary of the invention
[0003] The object of the present invention is to provide an ultrasonic level meter and a cyclic measurement method thereof, which utilizes the characteristics of relative invariance and relative change in the measurement process of the ultrasonic level meter, and proposes: through the combination of normal measurement mode, full level measurement mode and mode 1 and mode 2, based on the determined starting time difference variable t0 and the time difference t0 of the liquid level empirical change speed d and the average value of the subsequent effective time difference t s , t0 is assigned cyclically and progressively, and [t0-t d , t0+t d] interval to track and analyze the echo time difference, screen out the effective time difference, and calculate the average value of the effective time difference t s , combined with the current air temperature, the liquid level depth of the measured liquid is calculated by selecting the formula corresponding to the mode; to solve the defects existing in the prior art.
[0004] In order to achieve the above object, the present invention adopts the following technical solutions:
[0005] A cyclic measurement method of an ultrasonic level meter, the specific steps of the measurement method are as follows:
[0006] Step (1) defining and constructing two sets of measurement modes: defining and constructing two sets of different measurement working modes, namely mode 1 and mode 2, according to the measurement information required to be collected by the ultrasonic level meter under different working conditions, and realizing cyclic measurement based thereon;
[0007] Step (2) Liquid level state search and determination and analysis interval construction: according to the preset time length (such as within 90 seconds), multiple groups of ultrasonic waves are emitted into the container, and the time difference of the echo is continuously searched. If the time difference of the searched echo has a relative change, the starting time difference t is obtained. p , and after completing step (3), jump to step (4); otherwise, after completing step (3), jump to step (6); at the same time, based on the determined starting time difference variable t0 and the time difference t of the liquid level experience change speed d and the average value of the subsequent effective time difference t s , construct [t0-t d , t0+t d ] echo tracking and analysis interval, and then t0 is cyclically and progressively assigned to track and analyze the echo time difference;
[0008] Step (3) constructing a fixed obstacle memory library: obtaining the time difference of the continuous search echo in step (2); if the time difference of the searched echo has a relative change, then recording each fixed obstacle inside the container based on the time difference of other unchanged echoes to form a fixed obstacle memory library; conversely, if the time difference of the searched echo has no relative change, then assigning an initial value of 0 to each value in the fixed obstacle time difference memory library;
[0009] Step (4) Default mode 1 for cyclic measurement: obtain the measurement information required for mode 1, use a combination of normal measurement mode + full liquid level measurement mode, and based on [t0-t d , t0+t d ] echo tracking analysis interval, and the calculation formula corresponding to mode 1, to perform cyclic measurement of the liquid depth in the container, and at the same time update the fixed obstacle memory library in real time;
[0010] Step (5) Manual real-time judgment of measurement results: The user judges the measurement results of mode 1 in real time. If the measurement results of mode 1 are correct, the cyclic measurement through mode 1 is continued. Otherwise, through manual intervention, jump to step (6);
[0011] Step (6) Enable mode 2 for cyclic measurement: obtain the measurement information required for mode 2, use a combination of normal measurement mode + full liquid level measurement mode, and based on [t0-t d , t0+t d ] and the calculation formula corresponding to mode 2, the liquid depth in the container is measured cyclically, and the fixed obstacle memory library is updated in real time:
[0012] It should be noted that: Mode 2 will also be manually judged in real time during the cyclic measurement. If the measurement result of Mode 2 is correct, the cyclic measurement will continue through Mode 2. Otherwise, it will be judged that the equipment is faulty.
[0013] Furthermore, the measurement information in step (1) includes mode 1 measurement information and mode 2 measurement information, wherein the mode 1 measurement information includes the installation height H, the time difference t of the liquid level empirical change speed, and the time difference t of the liquid level empirical change speed. d and the current air temperature T; the measurement information of mode 2 includes the installation height H, the current liquid level depth L0, the time difference t of the liquid level experience change speed d and current air temperature T;
[0014] Furthermore, when the above-mentioned modes 1 and 2 are working, the ultrasonic level meter needs to monitor the air temperature and the air height between the ultrasonic level meter transducer probe and the surface of the measured medium in the container in real time, and calculate the liquid depth by the calculation formula corresponding to mode 1 and the calculation formula corresponding to mode 2 using the collected data. The specific calculation formula is as follows:
[0015]
[0016]
[0017] L=HA (3)
[0018]
[0019]
[0020]
[0021] Where V represents the propagation speed of ultrasound in the air, T represents the air temperature, A represents the air height between the ultrasonic transducer probe and the surface of the measured medium, t represents the time difference between the ultrasonic emission and the reception of an echo, L represents the liquid depth, H represents the installation height of the ultrasonic level meter (the vertical distance from the ultrasonic level meter probe to the bottom of the container after installation and fixation), L0 represents the current depth of the measured medium, t q Represents the time difference between the ultrasonic emission corresponding to L0 and the reception of an echo;
[0022] The ultrasonic level meter constructs measurement mode 1 according to calculation formula (4) and measurement mode 2 according to calculation formula (5).
[0023] Furthermore, the liquid level state search and determination in step (2) is intended to obtain the first echo signal at any time point whose time difference will change relatively and the time difference t corresponding to the echo signal. p (That is, determine whether the current liquid level is relatively static or relatively changing within the preset time. If it changes relatively, the time difference t is successfully identified. p ); Specifically, the ultrasonic level meter continuously transmits ultrasonic waves into the container within a preset time, such as 90 seconds, and at the same time continuously searches for echo signals, timing when transmitting and when receiving echoes, and the echo time difference can be obtained by comparing the first echo signal whose time difference will change relatively and the time difference t corresponding to the echo signal. p During the search, the pulse excitation voltage gradually transitions from the lower limit of the normal range to the upper limit, and the amplification factor of the echo processing circuit gradually transitions from the lower limit to the upper limit. When the pulse excitation voltage and the amplification factor of the echo processing circuit reach the upper limit, they will automatically transition from the lower limit to the upper limit.
[0024] Furthermore, the analysis interval in step (2) is constructed based on the determined starting time difference variable t0 and the time difference t of the liquid level experience change speed in mode 1 and mode 2. d and the average value of the subsequent effective time difference t s , construct [t0-t d , t0+t d ] echo tracking analysis interval, and then t0 is cyclically and progressively assigned; the initial value of the determined starting time difference variable t0 is specifically the time difference t corresponding to the air height at the initial liquid level depth under mode 1 p , or in mode 2, after measuring the initial current liquid level depth L0, the corresponding air height time difference t is calculated by formula (6) q ;
[0025] Furthermore, the time difference t of the liquid level empirical change speed dSpecifically, it is the amplitude of the air change above the liquid surface obtained by multiplying a certain liquid level change speed by a certain time. The time corresponding to the ultrasonic wave propagating back and forth in the amplitude of the air change is t d , such as t d It can be obtained by multiplying 1s by the empirical change speed of the artificially placed liquid level. Specifically, the speed multiplied by 1s is the amplitude of the liquid level rise or fall, which also corresponds to the amplitude of the air change above the liquid surface. The amplitude of the air change is combined with the speed of the ultrasonic wave in the air, and is calculated by the distance and speed. Finally, the calculated value can be appropriately amplified.
[0026] For example, if the empirical change speed is 0.5m / s, multiply it by 1s to get the amplitude of the liquid level rise or fall of 0.5 meters. Because there is a corresponding relationship between the amplitude change of air height and liquid level depth, the amplitude of the air height change is also 0.5 meters. The time difference between the ultrasonic emission, reflection and sound wave propagation corresponding to the change of air amplitude of 0.5 meters is: 2*0.5 / V is obtained by transformation according to formula (2), formula (7), and then according to formula (1), V=331.45*(1+T / 273.15) 1 / 2 , we can find the value of formula (7), and characterize the value to get t d ;
[0027] Furthermore, the average value of the effective time difference t S By [t0-t d , t0+t d ] The effective time difference identified in the interval is averaged, and the specific calculation formula for the average value is as follows:
[0028] (t1+t2+t3+…+t k ) / k=t s (8)
[0029] Among them, t S Represents the average value of the effective time difference.
[0030] Furthermore, the specific construction process of the fixed obstacle memory library in step (3) is as follows:
[0031] a1: The ultrasonic level meter continuously transmits ultrasonic waves into the container within a preset time, such as 90 seconds, and the ultrasonic level meter transducer probe receives the reflected ultrasonic waves in real time;
[0032] a2: Collect the time difference between the time when the reflected ultrasonic wave is received by the ultrasonic level meter transducer probe and the time when the ultrasonic wave is emitted, emit the ultrasonic wave once at a fixed interval, and record the time difference of its return to generate multiple sets of time difference sets;
[0033] a3: Extract the relatively unchanged time differences in each group of time difference sets, and integrate and classify the extracted time differences to construct a fixed obstacle time difference memory library t bn ={t b1 ,t b2 ,t b3 …t bn}, and record the current air temperature T bn ={T b1 , T b2 , T b3 …T bn}, and they correspond one to one with each group of data in the fixed obstacle time difference memory library, wherein the initial value of each value in the fixed obstacle time difference memory library is 0 before being assigned a recorded value; if within a preset time length, such as 90s, the measured liquid level has been relatively still, that is, within this time length, the searched time difference is relatively unchanged, then the recorded value of each value in the fixed obstacle time difference memory library is assigned 0; if there is a relative change in the time difference of the searched echo, then based on the time difference of other relatively unchanged echoes, the fixed obstacles inside the container are recorded according to the method described in the previous part of this paragraph.
[0034] Furthermore, the cyclic measurement process of mode 1 in step (4) is specifically as follows:
[0035] Step (A) Normal measurement mode: that is, at the resonant frequency, the ultrasonic level meter uses a voltage in the normal power range for excitation emission, and the specific measurement process is as follows:
[0036] A1.1: Obtain the vertical distance from the ultrasonic level meter transducer probe to the bottom of the container, i.e. the installation height H, the air temperature T, and the time difference t of the liquid level empirical change speed d , and based on the preset time length, such as 90s search period, the t p Get the best excitation voltage and amplification factor, and set t p Assign a value to t in formula (4), and the ultrasonic level meter calculates the liquid level depth L according to formula (4);
[0037] A1.2: t p It is the time difference corresponding to the first echo signal whose time difference will change relatively, which is determined by the program during the preset time search period. The value of L calculated by default is correct.
[0038] It should be noted that even if the value of L calculated at this time is incorrect, that is, t p If the value is incorrect, the subsequent t0 will be incorrect, which will cause the value of the subsequently calculated liquid level depth L to be incorrect. In step (5), the user will find the error at any time point and go to step (6);
[0039] A1.3: The t p Assign to t0, use [t0-t d , t0+t d ] interval to track and analyze the echo time difference;
[0040] A2: Each measurement is separated by a specific time, which corresponds to t d At a specific time, such as an interval of 1 second, the air temperature value is collected and updated before each measurement. At the same time, the pulse excitation voltage and the echo processing circuit amplification factor are within the range of ±30% of the value used in the most recent correct measurement. During each transmission, timing is performed at the same time, and timing is also performed when the echo is received. Multiple pulses are transmitted each time, such as 3 groups of 8 pulses of ultrasonic waves each. After transmission, f time differences will be obtained;
[0041] A3: The time difference t of each fixed obstacle in the fixed obstacle memory library bn Convert to the value corresponding to the current air temperature, and compare the collected f echo time differences with the converted t bn Compare and eliminate the interference time differences of the memorized fixed obstacles. After elimination, assign the number of remaining time differences to n;
[0042] Furthermore, the specific process of eliminating the interference time difference is as follows:
[0043] A3.1: Determine the time difference memory of fixed obstacles t bn ={t b1 ,t b2 ,t b3 ,…,t bn} whether there is a value greater than 0;
[0044] A3.2: If it does not exist, assign the value of f to n and jump to A4; if it does exist, retrieve the non-zero recorded value in the fixed obstacle time difference memory bank and convert the recorded value to the time difference value t of the obstacle corresponding to the current air temperature. bn , and at the same time according to t bn ±2% (±2% has fully covered the measurement error range of the ultrasonic level meter) to construct the numerical interval [0.98t bn , 1.02t bn ];
[0045] A3.3: Set f time differences in [0.98t bn , 1.02t bn ] to compare and identify within the range;
[0046] A3.4: If the time difference does not exist within the interval, assign the value of f to n and jump to A4; if it does, determine t bn Is it in [t0-t d , t0+t d ]In the interval:
[0047] A3.5: If not, it will directly fall into [0.98t bn , 1.02t bn ] remove all the time differences in the interval, assign the number of remaining time differences to n, and jump to A4; if in [t0-t d , t0+t d ], arrange the values of f time differences in ascending order, and take the largest time difference value t max , and judge t max Whether it falls into [t0-t d , t0+t d ]Interval range;
[0048] A3.6: If it does not fall into the range, the value is second only to t max The second time difference value of , and judge whether the value falls into [t0-t d , t0+t d ] interval range, and repeat this cycle until a value falls within the range of [t0-t d , t0+t d ] interval range; if the smallest time difference is not within the interval range, it is determined as tracking loss and jumps to A10; if it falls within the interval range, it will be judged as [t0-t d , t0+t d ]The time difference between the intervals is assigned to t z , according to t z ±1% range to construct a set of numerical intervals [0.99t z , 1.01t z ], and judge t bn Whether it falls within this range;
[0049] A3.7: If it does not fall into, it will directly fall into [0.98t bn , 1.02t bn ] All time differences in the interval are eliminated, the number of remaining time differences is assigned to n, and jump to A4; if it falls into, it means t bn The corresponding fixed obstacle is very close to the real liquid surface. The obstacle and the real liquid surface are in the overlapping area. No processing is done and the value of f is assigned to n.
[0050] A4: The remaining n time differences are in [t0-t d, t0+t d ] interval range for comparison and identification, obtain k time differences falling within the above interval range, and process the values of n and k. The specific processing formula is as follows:
[0051] nk=m (9)
[0052] (n≥X)&&(m≤Y) (10)
[0053] Among them, when n≥X, the output is 1, otherwise the output is 0, when m≤Y, the output is 1, otherwise the output is 0. In the ultrasonic level meter, X and Y can be set manually, for example, X=3, Y=0, formula (10)=1, indicating that there is no lack of wave and no interference, formula (10)=0, indicating that there is a lack of wave or interference;
[0054] A5: judge whether there is a missing wave or an interference wave by formula (10). If not, jump to step A6; otherwise, jump to step A8;
[0055] A6: Calculate the average value t of the k time differences obtained according to the above formula (8): S ;
[0056] A7: t S Assign a value to t in the above formula (4), and automatically calculate the liquid level depth L according to formula (4), and then calculate the average value of the effective time difference t S Re-assign t0 and return to step A2 for cyclic measurement. If there is a missing wave or interference during the cyclic measurement, jump to step A8.
[0057] A8: Check to determine whether there is a lack of wave or an interference wave. If there is a lack of wave, jump to A10, otherwise jump to A9;
[0058] Furthermore, the troubleshooting formula is as follows:
[0059] n≥X (11)
[0060] (n≥X)&&1 (12)
[0061] Where: if n≥X, then output 1, otherwise output 0;
[0062] If formula (12) = 0, it means that the total number of valid echoes received is less than X, for example, X = 3, and it is judged that there is no echo; if formula (12) = 1, it means that there is no echo, but there is interference;
[0063] A9: Perform interference analysis to determine whether it is not tracked, obstacle interference, secondary or multiple echo interference, or obstacle superimposed secondary or multiple echo interference:
[0064] Furthermore, the specific steps of the interference analysis described in A9 are as follows:
[0065] b1: If an echo falls within the interval [t0-t d , t0+t d ], and the other echoes fall within the interval [t0-t d , t0+t d ], falling on the left side of the interval [t0-t d , t0+t d ] corresponds to the reflection surface of the real liquid level, and the time difference within [t0-t d , t0+t d ] The echo on the left outer side of the interval is caused by the interference of new obstacles, because the time difference of the interference echo is <(t0-t d ), so it is judged that the interference echo is caused by the reflection of the object above the liquid level, so it is an obstacle. The time difference corresponding to the interference echo is eliminated, and the value of the air temperature at this time is recorded. The fixed obstacle memory library is updated, and then the fixed obstacle memory library is updated according to formula (8). d , t0+t d ] to find the average value of the time difference within t S , then return to step A7;
[0066] b2: If an echo falls within the interval [t0-t d , t0+t d ], and the other echoes fall within the interval [t0-t d , t0+t d ], falling on the right side of the interval [t0-t d , t0+t d ] corresponds to the reflection surface of the real liquid level, and the echo falls in the interval [t0-t d , t0+t d ] On the right side, there is secondary multiple echo interference, because the value of the interference echo time difference is > (t0+t d ), so the time difference of the interference echo is greater than the time difference of the real liquid level surface reflection. Because the object below the liquid level cannot reflect, it is judged that the interference echo is a secondary echo or multiple echoes, and the liquid level is in the full level state. The full level state measurement mode is automatically enabled and jumps to step (B A);
[0067] b3: If an echo falls within the interval [t0-t d , t0+t d ], and some other echoes fall within the interval [t0-t d , t0+t d ], some fall on the left side of the interval [t0-t d , t0+td ], falling on the right side of the interval [t0-t d , t0+t d ] corresponds to the reflection surface of the real liquid level. First, according to the method in b1, the time difference of the newly appeared obstacle is eliminated and the fixed obstacle memory library is updated. According to b2, it can be known that the liquid level is in the full level state, and the full level state measurement method is automatically enabled to jump to step (B A);
[0068] b4: If all echoes do not fall within the interval [t0-t d , t0+t d ], that is, the tracking interval is lost, and if it is not tracked, it will jump to A10 for lost wave processing;
[0069] Furthermore, the obstacle removal described in b1 simultaneously updates the fixed obstacle memory library, and the specific process is as follows:
[0070] b1.1: When there exists a d , t0+t d ] Multiple time differences t corresponding to other echoes on the left side b When the air temperature is recorded, the air temperature at that time is recorded, and the air temperature at that time is recorded. b The values were sorted and classified, and the values with a difference of 1% were classified into the same category.
[0071] b1.2: Calculate multiple time differences t in the same class b The average value is then assigned to the first t value of 0 in the fixed obstacle time difference memory bank. bn And ensure that the values of the fixed obstacle time difference memory bank are not equal to each other (converted to the same temperature for comparison), and assign the value of the air temperature recorded at this time to the T corresponding to the number. bn ;
[0072] A10: Wave loss or missing wave processing. When the echo is not tracked or the wave is lost or missing, the correct t0 measured last time is kept and re-measured. At the same time, it is judged whether the re-measurement result meets the conditions. If it meets the conditions, the current result is output and the next round of cyclic measurement is carried out. If it does not meet the conditions, it is judged that there is a machine failure and the user is prompted by executing the fail-safe module.
[0073] Furthermore, the specific processing steps for the missing wave and the lost wave described in A10 are as follows:
[0074] c1: The ultrasonic level meter maintains the correct t0 measured last time. At the same time, the pulse excitation voltage and the echo processing circuit amplification factor gradually transition from the lower limit of the normal range to the upper limit. Nine groups of continuous measurements with different excitation voltages and amplification factors are quickly performed to obtain multiple time differences.
[0075] c2: After removing the time difference of the fixed obstacle in memory, the remaining w time differences are obtained in [t0-13t d , t0+13t d ] interval for comparison and identification, and then the z time differences obtained within the interval are processed. The specific judgment formula is as follows:
[0076] w≥12 (13)
[0077] z / w*100%≥66% (14)
[0078] (w≥12)&&(z / w*100%≥66%) (15)
[0079] Among them, when w ≥ 12, output 1, otherwise output 0; when z / w*100% ≥ 66%, output 1, otherwise output 0;
[0080] c3: When formula (15) is 1, the retest is successful, and the average value of z time differences is calculated by formula (8) S , return to A7; when formula (15) is 0, the retest fails, the ultrasonic level meter starts the fail-safe mode, and outputs the corresponding control signal according to the safety requirements originally input by the user in advance;
[0081] Step (B) Full liquid level measurement method: that is, the ultrasonic level meter transmitting circuit adopts non-resonant frequency, low excitation voltage and low energy to drive the ultrasonic transducer to measure the full liquid level. The specific process is as follows:
[0082] A1: According to the interference analysis results, b2 or b3 falls into [t0-t d , t0+t d ], and the average value t is calculated by formula (8) S , t S Assign a value to t in formula (4), and automatically calculate the liquid level depth L according to formula (4), and then use the average value t S Assign value to t0;
[0083] A2: Each measurement is separated by a specific time, which corresponds to t d At a specific time, such as an interval of 1 second, the ultrasonic level meter automatically measures and updates the air temperature value before transmitting ultrasonic waves each time, and simultaneously uses a non-resonant frequency and a special low excitation voltage to transmit a specified number of pulse ultrasonic waves;
[0084] A3: By using non-resonant frequency and special low excitation voltage to emit a specified number of pulsed ultrasonic waves, low-energy mechanical vibration ultrasonic waves are obtained, so that the ultrasonic waves decay completely after one reflection, without secondary or multiple reflections, and multiple echo time differences are obtained at the same time. The fixed obstacle time differences are eliminated according to A3.1-A3.7, and then [t0-t d , t0+t d ] Remove new fixed obstacles in the interval and update the fixed obstacle memory according to b1.1-b1.2;
[0085] A4: Determine the number n of the remaining multiple echo time differences. If n≥X, jump to A5; if n<X, jump to A10;
[0086] A5: Calculate the average value of the remaining multiple echo time differences using formula (8): S , and the average value t S Assign a value to t in formula (4), and automatically calculate the liquid level depth L according to formula (4), and then use the average value t S Reassign the value to t0;
[0087] A6: Judge t0. When t0 is greater than or equal to the preset time (for example, 13.5ms) again, the liquid level leaves the full level state. At this time, the ultrasonic level meter resumes normal measurement mode and jumps to A2. When t0 is less than the preset time (for example, 13.5ms), return to step A2.
[0088] Furthermore, in step (6), Mode 2 is similar to Mode 1 in that both are combined measurements using the normal measurement mode + the measurement mode under full liquid state. The difference is that Mode 1 only requires the input of H and t d , and use the time difference t corresponding to the air height of the initial liquid level automatically searched p , the mode 2 needs to input H, L0 and t d ; H and L0 in Mode 2 are both directly determined manually, so the time difference t of the air height corresponding to the current liquid level depth L0 is calculated by formula (6): q The correctness of is indirectly determined by humans; Mode 1 has less workload, and H can be obtained according to the design and installation drawings. H and t are compared in a comfortable place (such as an office). d The numerical value is input into the ultrasonic level meter, and the workload of mode 2 is large. For example, if 500 ultrasonic level meters are installed in a project, a total of 500 current liquid level depth measurements need to be performed at various scattered installation sites; therefore, mode 2 is used as a backup solution for mode 1 in special working conditions to supplement the solution of t in mode 1. pIn the case of an extremely low probability error or because the liquid surface remains stationary during the preset search period, t cannot be obtained. p ;
[0089] Furthermore, the cyclic measurement process of Mode 2 is specifically as follows:
[0090] Step (A-B) Normal measurement method: that is, at the resonant frequency, the ultrasonic level meter uses a voltage in the normal power range for excitation and emission, and the specific measurement process is as follows:
[0091] A B1.1: The vertical distance from the ultrasonic level meter transducer probe to the bottom of the container, i.e. the installation height H, and the time difference t of the liquid level empirical change speed d , the user obtains the current liquid level depth L0 through manual measurement and inputs it through the key module; at the same time, the current air temperature value is measured and recorded, and the time difference t of the air height at the current liquid level depth is calculated according to L0 through the above formula (6) q ;
[0092] One thing needs to be explained: q The source of the calculation data is H and L0 which have been directly determined by humans, so t q The correctness is indirectly determined by humans. The value of L0 is the correct depth value of the current liquid level, and the current optimal excitation voltage and amplification factor are automatically calculated based on the maximum measurement range and the value of L0.
[0093] A B1.2: The t q Assign to t0, use [t0-t d , t0+t d ] interval to track and analyze the echo time difference;
[0094] A B2: Before transmitting ultrasonic measurement, the temperature of the air is automatically measured and updated. The pulse excitation voltage and the echo processing circuit amplification factor are within the range of ±30% of the values used in the last correct measurement. At the resonant frequency, multiple pulses are transmitted each time, such as 3 groups of 8 pulses of ultrasonic waves each. After the transmission, f time differences are obtained;
[0095] A B3: Eliminate the interference time difference in the fixed obstacle memory library;
[0096] A B4: The remaining n time differences are in [t0-t d , t0+t d ] to compare and identify within the interval, obtain k time differences falling within the above interval, and process the values of n and k;
[0097] A B5: Determine whether there is a missing wave or an interference wave. If not, jump to step A B6; otherwise, jump to step A B8;
[0098] Party A B6: Calculate the average value t of the obtained k time differences according to the aforementioned formula (8). s ;
[0099] Party A B7: Assign t s to t in the aforementioned formula (5), automatically calculate the liquid level depth L according to formula (5), and then re-assign the average value t of the effective time difference of this time s to t0 and return to Party A B2 for cyclic measurement; if there is a missing wave or interference during the cyclic measurement process, jump to step Party A B8;
[0100] Party A B8: Conduct a check to determine whether it is a missing wave or an interference wave. If it is a missing wave, jump to Party A B10; otherwise, jump to Party A B9;
[0101] Party A B9: Conduct interference analysis to determine whether it is non-tracking, obstacle interference, secondary or multiple echo interference, or obstacle superposition of secondary or multiple echo interference:
[0102] If it is non-tracking, jump to Party A B10 for missing wave processing;
[0103] If it is obstacle interference, eliminate the obstacle, update the obstacle memory bank, and then calculate t s , and then return to Party A B7;
[0104] If it is secondary or multiple echo interference, jump to step (Party B B);
[0105] If it is obstacle superposition of secondary or multiple echo interference, first eliminate the obstacle, update the obstacle memory bank, and then jump to step (Party B B);
[0106] Party A B10: Deal with missing waves. When there is a phenomenon of non-tracking, missing wave or missing wave of the echo, maintain the correct t0 measured last time and conduct a retest; at the same time, judge whether the retest result meets the conditions. If it meets, the retest is successful, and calculate the average value t of the effective time difference through formula (8) s , return to Party A B7; if it does not meet, judge it as a machine failure and prompt the user by executing the fault safety module;
[0107] Step (Party B B) full liquid level measurement method: That is, the ultrasonic liquid level gauge transmitting circuit uses a non-resonant frequency and a low excitation voltage to drive the ultrasonic transducer with low energy for full liquid level measurement. The specific process is as follows:
[0108] Party B B1: According to the interference analysis result, calculate the average value t of the time differences falling within [t0 - t d , t0 + t d in Party A B9 through formula (8) S , and assign tS Assign a value to t in formula (5), and automatically calculate the liquid level depth L according to formula (5), and then use the average value t S Assign value to t0;
[0109] B2: Each measurement is separated by a specific time, which corresponds to t d At a specific time, such as an interval of 1 second, the ultrasonic level meter automatically measures and updates the air temperature value before transmitting ultrasonic waves each time, and simultaneously uses a non-resonant frequency and a special low excitation voltage to transmit a specified number of pulse ultrasonic waves;
[0110] B3: By using non-resonance frequency and special low excitation voltage to emit a specified number of pulsed ultrasonic waves, low-energy mechanical vibration ultrasonic waves are obtained, so that the ultrasonic waves are completely attenuated after one reflection, and no secondary or multiple reflections occur. At the same time, multiple echo time differences are obtained, the time differences of fixed obstacles are eliminated, and the fixed obstacle memory bank is updated;
[0111] B4: Determine the number n of the remaining multiple echo time differences. If n≥X, jump to B5; if n<X, jump to B10;
[0112] B5: Calculate the average value of the remaining multiple echo time differences using formula (8): S , and the average value t S Assign a value to t in formula (5), and automatically calculate the liquid level depth L according to formula (5), and then use the average value t S Reassign the value to t0;
[0113] B6: Judge t0. When t0 is greater than or equal to the preset time (for example, 13.5ms) again, the liquid level leaves the full level state. At this time, the ultrasonic level meter resumes normal measurement mode and jumps to B2. When t0 is less than the preset time (for example, 13.5ms), return to step B2.
[0114] An ultrasonic liquid level meter, comprising:
[0115] The key module is used to transmit user commands and values to the single-chip microcomputer processing module;
[0116] The temperature module is used to measure the current air temperature and input the air temperature to the single chip processing module;
[0117] The obstacle storage module is used to store the time difference of the fixed obstacle and the corresponding air temperature at that time;
[0118] A single-chip microcomputer processing module is used to receive the user instructions, numerical values and current air temperature, and call a measurement mode that meets the user's requirements, and calculate the corresponding ultrasonic propagation speed under the current air temperature, and generate a corresponding measurement square wave signal according to the measurement mode, and then record the echo time of the square wave signal, and calculate the depth of the liquid level according to the time difference between the echo time point and the emission time point and the current air temperature through the mode required by the user. The liquid level depth and other related parameters are controlled and output to the LCD display module, and the signal output communication module is controlled according to the liquid level depth and the requirements specified by the user;
[0119] The transmitting module is used to receive the measuring square wave signal transmitted by the single-chip processing module, and oscillate according to the square wave signal to generate high-power high-voltage electric pulses of the same frequency and quantity;
[0120] The echo receiving and processing module is used to amplify, filter, rectify and compare the received low-voltage electrical signal to generate a pulse square wave and feed it back to the single-chip processing module;
[0121] An integrated ultrasonic transducer for transmitting and receiving, used for converting the high-voltage electrical pulse into mechanical energy ultrasonic waves of the same frequency and quantity, transmitting the mechanical energy ultrasonic waves to the liquid level reflection surface through air propagation, and converting the mechanical energy ultrasonic waves reflected from the liquid level reflection surface into weak low-voltage electrical signals of the same frequency and quantity;
[0122] An obstacle updating module, used for updating the time difference of the fixed obstacles in the obstacle storage module in real time;
[0123] The LCD display module is used to provide a user interface display, receive the calculation results, and inform the user of the results through text words and numerical display;
[0124] The signal output communication module is used to inform the user of the measurement results of the liquid level depth and other related parameters through electrical signals.
[0125] Compared with the prior art, the present invention has the following beneficial effects:
[0126] The present application discloses an ultrasonic level meter and a cyclic measurement method thereof, which uses a normal measurement mode, a full level measurement mode and a combination of mode 1 and mode 2 to determine the starting time difference variable t0 and the time difference t0 of the liquid level empirical change speed. d , t0 is assigned cyclically and progressively, and [t0-t d , t0+t d ] interval to track and analyze the echo time difference, screen out the effective time difference, and calculate the average value of the effective time difference t S, combined with the current air temperature, the liquid level depth of the measured liquid is calculated by the formula corresponding to the selected mode; the present invention can automatically eliminate the interference of fixed obstacles such as pipelines and mixer blades and automatically eliminate the interference of secondary and multiple echoes, can adapt to harsh working conditions, and realize intelligent and precise measurement, which greatly increases the working condition applicability of the ultrasonic level meter and improves the accuracy and stability of the measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0127] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.
[0128] Figure 1 This is an overall flow chart of a cyclic measurement method of an ultrasonic level meter proposed by the present invention;
[0129] Figure 2 A schematic diagram of the installation site working conditions of an ultrasonic level meter proposed by the present invention;
[0130] Figure 3 This is an overall flow chart of Mode 1 and Mode 2 of an ultrasonic level meter proposed by the present invention;
[0131] Figure 4 This is a schematic diagram of the overall structure of an ultrasonic liquid level meter proposed in the present invention. DETAILED DESCRIPTION
[0132] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0133] Reference Figure 1 and Figure 3 This embodiment discloses a cyclic measurement method of an ultrasonic level meter, and the specific steps of the measurement method are as follows:
[0134] Step (1) defining and constructing two sets of measurement modes: defining and constructing two sets of different measurement working modes, namely mode 1 and mode 2, according to the measurement information required to be collected by the ultrasonic level meter under different working conditions, and realizing cyclic measurement based thereon;
[0135] Specifically, the measurement information includes mode 1 measurement information and mode 2 measurement information, wherein the mode 1 measurement information includes the installation height H, the time difference t of the liquid level empirical change speed, and the d and the current air temperature T; the measurement information of mode 2 includes the installation height H, the current liquid level depth L0, the time difference t of the liquid level experience change speed d and current air temperature T;
[0136] Specifically, when the above modes 1 and 2 are working, the ultrasonic level meter needs to monitor the air temperature and the air height between the ultrasonic level meter transducer probe and the surface of the measured medium in the container in real time, and calculate the liquid depth by the calculation formula corresponding to mode 1 and mode 2 using the collected data. The specific calculation formula is as follows:
[0137]
[0138]
[0139] L=HA (3)
[0140]
[0141]
[0142]
[0143] Where V represents the propagation speed of ultrasound in the air, T represents the air temperature, A represents the air height between the ultrasonic transducer probe and the surface of the measured medium, t represents the time difference between the ultrasonic emission and the reception of an echo, L represents the liquid depth, H represents the installation height of the ultrasonic level meter (the vertical distance from the ultrasonic level meter probe to the bottom of the container after installation and fixation), L0 represents the current depth of the measured medium, t q Represents the time difference between the ultrasonic emission corresponding to L0 and the reception of an echo;
[0144] The ultrasonic level meter constructs measurement mode 1 according to calculation formula (4) and measurement mode 2 according to calculation formula (5).
[0145] Step (2) Liquid level state search and determination and analysis interval construction: according to the preset time length (such as within 90 seconds), multiple groups of ultrasonic waves are emitted into the container, and the time difference of the echo is continuously searched. If the time difference of the searched echo has a relative change, the starting time difference t is obtained. p , and after completing step (3), jump to step (4); otherwise, after completing step (3), jump to step (6); at the same time, based on the determined starting time difference variable t0 and the time difference t of the liquid level experience change speed d and the average value of the subsequent effective time difference t s , construct [t0-t d , t0+t d ] echo tracking and analysis interval, and then t0 is cyclically and progressively assigned to track and analyze the echo time difference;
[0146] Specifically, the purpose of the liquid level state search is to obtain the first echo signal at any time point whose time difference will change relatively and the time difference t corresponding to the echo signal. p (That is, determine whether the current liquid level is relatively static or relatively changing within the preset time. If it changes relatively, the time difference t is successfully identified. p ); Specifically, the ultrasonic level meter continuously transmits ultrasonic waves into the container within a preset time, such as 90 seconds, and at the same time continuously searches for echo signals, timing when transmitting and when receiving echoes, and the echo time difference can be obtained by comparing the first echo signal whose time difference will change relatively and the time difference t corresponding to the echo signal. p During the search, the pulse excitation voltage gradually transitions from the lower limit of the normal range to the upper limit, and the amplification factor of the echo processing circuit gradually transitions from the lower limit to the upper limit. When the pulse excitation voltage and the amplification factor of the echo processing circuit reach the upper limit, they will automatically transition from the lower limit to the upper limit.
[0147] Specifically, the analysis interval is constructed based on the determined starting time difference variable t0 and the time difference t0 of the liquid level empirical change speed in mode 1 and mode 2. d and the average value of the subsequent effective time difference t s , construct [t0-t d , t0+t d ] echo tracking analysis interval, and then t0 is cyclically and progressively assigned; the initial value of the determined starting time difference variable t0 is specifically the time difference t corresponding to the air height at the initial liquid level depth under mode 1 p , or in mode 2, after measuring the initial current liquid level depth L0, the corresponding air height time difference t is calculated by formula (6) q ;
[0148] Specifically, the time difference t of the liquid level empirical change speed d Specifically, it is the amplitude of the air change above the liquid surface obtained by multiplying a certain liquid level change speed by a certain time. The time corresponding to the ultrasonic wave propagating back and forth in the amplitude of the air change is t d , such as t d It can be obtained by multiplying 1s by the empirical change speed of the artificially placed liquid level. Specifically, the speed multiplied by 1s is the amplitude of the liquid level rise or fall, which also corresponds to the amplitude of the air change above the liquid surface. The amplitude of the air change is combined with the speed of the ultrasonic wave in the air, and is calculated by the distance and speed. Finally, the calculated value can be appropriately amplified.
[0149] For example, if the empirical change speed is 0.5m / s, multiply it by 1s to get the amplitude of the liquid level rise or fall of 0.5 meters. Because there is a corresponding relationship between the amplitude change of air height and liquid level depth, the amplitude of the air height change is also 0.5 meters. The time difference between the ultrasonic emission, reflection and sound wave propagation corresponding to the change of air amplitude of 0.5 meters is: 2*0.5 / V is obtained by transformation according to formula (2), formula (7), and then according to formula (1), V=331.45*(1+T / 273.15) 1 / 2 , we can find the value of formula (7), and characterize the value to get t d ;
[0150] Specifically, the average value of the effective time difference t S By [t0-t d , t0+t d ] The effective time difference identified in the interval is averaged, and the specific calculation formula for the average value is as follows:
[0151] (t1+t2+t3+…+t k ) / k=t s (8)
[0152] Among them, t S Represents the average value of the effective time difference.
[0153] Step (3) constructing a fixed obstacle memory library: obtaining the time difference of the continuous search echo in step (2); if the time difference of the searched echo has a relative change, then recording each fixed obstacle inside the container based on the time difference of other unchanged echoes to form a fixed obstacle memory library; conversely, if the time difference of the searched echo has no relative change, then assigning an initial value of 0 to each value in the fixed obstacle time difference memory library;
[0154] Specifically, the specific construction process of the fixed obstacle memory library is as follows:
[0155] a1: The ultrasonic level meter continuously transmits ultrasonic waves into the container within a preset time, such as 90 seconds, and the ultrasonic level meter transducer probe receives the reflected ultrasonic waves in real time;
[0156] a2: Collect the time difference between the time when the reflected ultrasonic wave is received by the ultrasonic level meter transducer probe and the time when the ultrasonic wave is emitted, emit the ultrasonic wave once at a fixed interval, and record the time difference of its return to generate multiple sets of time difference sets;
[0157] a3: Extract the relatively unchanged time differences in each group of time difference sets, and integrate and classify the extracted time differences to construct a fixed obstacle time difference memory library t bn ={tb1 ,t b2 ,t b3 …t bn}, and record the current air temperature T bn ={T b1 , T b2 , T b3 …T bn}, and they correspond one to one with each group of data in the fixed obstacle time difference memory library, wherein the initial value of each value in the fixed obstacle time difference memory library is 0 before being assigned a recorded value; if within a preset time length, such as 90s, the measured liquid level has been relatively still, that is, within this time length, the searched time difference is relatively unchanged, then the recorded value of each value in the fixed obstacle time difference memory library is assigned 0; if there is a relative change in the time difference of the searched echo, then based on the time difference of other relatively unchanged echoes, the fixed obstacles inside the container are recorded according to the method described in the previous part of this paragraph.
[0158] Step (4) Default mode 1 for cyclic measurement: obtain the measurement information required for mode 1, use a combination of normal measurement mode + full liquid level measurement mode, and based on [t0-t d , t0+t d ] echo tracking analysis interval, and the calculation formula corresponding to mode 1, to perform cyclic measurement of the liquid depth in the container, and at the same time update the fixed obstacle memory library in real time;
[0159] Specifically, the cyclic measurement process of mode 1 is as follows:
[0160] Step (A) Normal measurement mode: that is, at the resonant frequency, the ultrasonic level meter uses a voltage in the normal power range for excitation emission, and the specific measurement process is as follows:
[0161] A1.1: Obtain the vertical distance from the ultrasonic level meter transducer probe to the bottom of the container, i.e. the installation height H, the air temperature T, and the time difference t of the liquid level empirical change speed d , and based on the preset time length, such as 90s search period, the t p Get the best excitation voltage and amplification factor, and set t p Assign a value to t in formula (4), and the ultrasonic level meter calculates the liquid level depth L according to formula (4);
[0162] A1.2: t p It is the time difference corresponding to the first echo signal whose time difference will change relatively, which is determined by the program during the preset time search period. The value of L calculated by default is correct.
[0163] It should be noted that even if the value of L calculated at this time is incorrect, that is, tp If the value is incorrect, the subsequent t0 will be incorrect, which will cause the value of the subsequently calculated liquid level depth L to be incorrect. In step (5), the user will find the error at any time point and go to step (6);
[0164] A1.3: The t p Assign to t0, use [t0-t d , t0+t d ] interval to track and analyze the echo time difference;
[0165] A2: Each measurement is separated by a specific time, which corresponds to t d At a specific time, such as an interval of 1 second, the air temperature value is collected and updated before each measurement. At the same time, the pulse excitation voltage and the echo processing circuit amplification factor are within the range of ±30% of the value used in the most recent correct measurement. During each transmission, timing is performed at the same time, and timing is also performed when the echo is received. Multiple pulses are transmitted each time, such as 3 groups of 8 pulses of ultrasonic waves each. After transmission, f time differences will be obtained;
[0166] A3: The time difference t of each fixed obstacle in the fixed obstacle memory library bn Convert to the value corresponding to the current air temperature, and compare the collected f echo time differences with the converted t bn Compare and eliminate the interference time differences of the memorized fixed obstacles. After elimination, assign the number of remaining time differences to n;
[0167] Specifically, the specific process of eliminating the interference time difference is as follows:
[0168] A3.1: Determine the time difference memory of fixed obstacles t bn ={t b1 ,t b2 ,t b3 ,…,t bn} whether there is a value greater than 0;
[0169] A3.2: If it does not exist, assign the value of f to n and jump to A4; if it does exist, retrieve the non-zero recorded value in the fixed obstacle time difference memory bank and convert the recorded value to the time difference value t of the obstacle corresponding to the current air temperature. bn , and at the same time according to t bn ±2% (±2% has fully covered the measurement error range of the ultrasonic level meter) to construct the numerical interval [0.98t bn , 1.02t bn ];
[0170] A3.3: Set f time differences in [0.98tbn , 1.02t bn ] to compare and identify within the range;
[0171] A3.4: If the time difference does not exist within the interval, assign the value of f to n and jump to A4; if it does, determine t bn Is it in [t0-t d , t0+t d ]In the interval:
[0172] A3.5: If not, it will directly fall into [0.98t bn , 1.02t bn ] remove all the time differences in the interval, assign the number of remaining time differences to n, and jump to A4; if in [t0-t d , t0+t d ], arrange the values of f time differences in ascending order, and take the largest time difference value t max , and judge t max Whether it falls into [t0-t d , t0+t d ]Interval range;
[0173] A3.6: If it does not fall into the range, the value is second only to t max The second time difference value of , and determine whether the value falls within [t0-t d , t0+t d ] interval range, and repeat this cycle until a value falls within the range of [t0-t d , t0+t d ] interval range; if the smallest time difference is not within the interval range, it is determined as tracking loss and jumps to A10; if it falls within the interval range, it will be judged as [t0-t d , t0+t d ]The time difference between the intervals is assigned to t z , according to t z ±1% range to construct a set of numerical intervals [0.99t z , 1.01t z ], and judge t bn Whether it falls within this range;
[0174] A3.7: If it does not fall into, it will directly fall into [0.98t bn , 1.02t bn ] All time differences in the interval are eliminated, the number of remaining time differences is assigned to n, and jump to A4; if it falls into, it means t bnThe corresponding fixed obstacle is very close to the real liquid surface. The obstacle and the real liquid surface are in the overlapping area. No processing is done and the value of f is assigned to n.
[0175] A4: The remaining n time differences are in [t0-t d , t0+t d ] interval range for comparison and identification, obtain k time differences falling within the above interval range, and process the values of n and k. The specific processing formula is as follows:
[0176] nk=m (9)
[0177] (n≥X)&&(m≤Y) (10)
[0178] Among them, when n≥X, the output is 1, otherwise the output is 0, when m≤Y, the output is 1, otherwise the output is 0. In the ultrasonic level meter, X and Y can be set manually, for example, X=3, Y=0, formula (10)=1, indicating that there is no lack of wave and no interference, formula (10)=0, indicating that there is a lack of wave or interference;
[0179] A5: judge whether there is a missing wave or an interference wave by formula (10). If not, jump to step A6; otherwise, jump to step A8;
[0180] A6: Calculate the average value t of the k time differences obtained according to the above formula (8): S ;
[0181] A7: t S Assign a value to t in the above formula (4), and automatically calculate the liquid level depth L according to formula (4), and then calculate the average value of the effective time difference t S Re-assign t0 and return to step A2 for cyclic measurement. If there is a missing wave or interference during the cyclic measurement, jump to step A8.
[0182] A8: Check to determine whether there is a lack of wave or an interference wave. If there is a lack of wave, jump to A10, otherwise jump to A9;
[0183] Specifically, the troubleshooting formula is as follows:
[0184] n≥X (11)
[0185] (n≥X)&&1 (12)
[0186] Where: if n≥X, then output 1, if n≥X, then output 0;
[0187] If formula (12) = 0, it means that the total number of valid echoes received is less than X, for example, X = 3, and it is judged that there is no echo; if formula (12) = 1, it means that there is no echo, but there is interference;
[0188] A9: Perform interference analysis to determine whether it is not tracked, obstacle interference, secondary or multiple echo interference, or obstacle superimposed secondary or multiple echo interference:
[0189] Specifically, the specific steps of the interference analysis described in A9 are as follows:
[0190] b1: If an echo falls within the interval [t0-t d , t0+t d ], and the other echoes fall within the interval [t0-t d , t0+t d ], falling on the left side of the interval [t0-t d , t0+t d ] corresponds to the reflection surface of the real liquid level, and the time difference within [t0-t d , t0+t d ] The echo on the left outer side of the interval is caused by the interference of new obstacles, because the time difference of the interference echo is <(t0-t d ), so it is judged that the interference echo is caused by the reflection of the object above the liquid level, so it is an obstacle. The time difference corresponding to the interference echo is eliminated, and the value of the air temperature at this time is recorded. The fixed obstacle memory library is updated, and then the fixed obstacle memory library is updated according to formula (8). d , t0+t d ] to find the average value of the time difference within t S , then return to step A7;
[0191] b2: If an echo falls within the interval [t0-t d , t0+t d ], and the other echoes fall within the interval [t0-t d , t0+t d ], falling on the right side of the interval [t0-t d , t0+t d ] corresponds to the reflection surface of the real liquid level, and the echo falls in the interval [t0-t d , t0+t d ] On the right side, there is secondary multiple echo interference, because the value of the interference echo time difference is > (t0+t d ), so the time difference of the interference echo is greater than the time difference of the real liquid level surface reflection. Because the object below the liquid level cannot reflect, it is judged that the interference echo is a secondary echo or multiple echoes, and the liquid level is in the full level state. The full level state measurement mode is automatically enabled and jumps to step (B A);
[0192] b3: If an echo falls within the interval [t0-t d , t0+td ], and some other echoes fall within the interval [t0-t d , t0+t d ], some fall on the left side of the interval [t0-t d , t0+t d ], falling on the right side of the interval [t0-t d , t0+t d ] corresponds to the reflection surface of the real liquid level. First, according to the method in b1, the time difference of the newly appeared obstacle is eliminated and the fixed obstacle memory library is updated. According to b2, it can be known that the liquid level is in the full level state, and the full level state measurement method is automatically enabled to jump to step (B A);
[0193] b4: If all echoes do not fall within the interval [t0-t d , t0+t d ], that is, if the tracking interval is lost, if it is not tracked, it will jump to A10 for lost wave processing;
[0194] Specifically, the obstacle removal described in b1 simultaneously updates the fixed obstacle memory library, and the specific process is as follows:
[0195] b1.1: When there exists a d , t0+t d ] Multiple time differences t corresponding to other echoes on the left side b When the air temperature is recorded, the air temperature at that time is recorded, and the air temperature at that time is recorded. b The values were sorted and classified, and the values with a difference of 1% were classified into the same category.
[0196] b1.2: Calculate multiple time differences t in the same class b The average value is then assigned to the first t value of 0 in the fixed obstacle time difference memory bank. bn And ensure that the values of the fixed obstacle time difference memory bank are not equal to each other (converted to the same temperature for comparison), and assign the value of the air temperature recorded at this time to the T corresponding to the number. bn ;
[0197] A10: Wave loss or missing wave processing. When the echo is not tracked or the wave is lost or missing, the correct t0 measured last time is kept and re-measured. At the same time, it is judged whether the re-measurement result meets the conditions. If it meets the conditions, the current result is output and the next round of cyclic measurement is carried out. If it does not meet the conditions, it is judged that there is a machine failure and the user is prompted by executing the fail-safe module.
[0198] Specifically, the specific processing steps for the missing wave and the lost wave described in A10 are as follows:
[0199] c1: The ultrasonic level meter maintains the correct t0 measured last time. At the same time, the pulse excitation voltage and the echo processing circuit amplification factor gradually transition from the lower limit of the normal range to the upper limit. Nine groups of continuous measurements with different excitation voltages and amplification factors are quickly performed to obtain multiple time differences.
[0200] c2: After removing the time difference of the fixed obstacle in memory, the remaining w time differences are obtained in [t0-13t d , t0+13t d ] interval for comparison and identification, and then the z time differences obtained within the interval are processed. The specific judgment formula is as follows:
[0201] w≥12 (13)
[0202] z / w*100%≥66% (14)
[0203] (w≥12)&&(z / w*100%≥66%) (15)
[0204] Among them, when w ≥ 12, output 1, otherwise output 0; when z / w*100% ≥ 66%, output 1, otherwise output 0;
[0205] c3: When formula (15) is 1, the retest is successful, and the average value of z time differences is calculated by formula (8) S , returns to AT; when formula (15) is 0, the retest fails, the ultrasonic level meter starts the fail-safe mode, and outputs the corresponding control signal according to the safety requirements originally input by the user in advance;
[0206] Step (B) Full liquid level measurement method: that is, the ultrasonic level meter transmitting circuit adopts non-resonant frequency, low excitation voltage and low energy to drive the ultrasonic transducer to measure the full liquid level. The specific process is as follows:
[0207] A1: According to the interference analysis results, b2 or b3 falls into [t0-t d , t0+t d ], and the average value t is calculated by formula (8) S , t S Assign a value to t in formula (4), and automatically calculate the liquid level depth L according to formula (4), and then use the average value t S Assign value to t0;
[0208] A2: Each measurement is separated by a specific time, which corresponds to t d At a specific time, such as an interval of 1 second, the ultrasonic level meter automatically measures and updates the air temperature value before transmitting ultrasonic waves each time, and simultaneously uses a non-resonant frequency and a special low excitation voltage to transmit a specified number of pulse ultrasonic waves;
[0209] A3: By using non-resonant frequency and special low excitation voltage to emit a specified number of pulsed ultrasonic waves, low-energy mechanical vibration ultrasonic waves are obtained, so that the ultrasonic waves decay completely after one reflection, without secondary or multiple reflections, and multiple echo time differences are obtained at the same time. The fixed obstacle time differences are eliminated according to A3.1-A3.7, and then [t0-t d , t0+t d ] Remove new fixed obstacles in the interval and update the fixed obstacle memory according to b1.1-b1.2;
[0210] A4: Determine the number n of the remaining multiple echo time differences. If n≥X, jump to A5; if n<X, jump to A10;
[0211] A5: Calculate the average value of the remaining multiple echo time differences using formula (8): S , and the average value t S Assign a value to t in formula (4), and automatically calculate the liquid level depth L according to formula (4), and then use the average value t s Reassign the value to t0;
[0212] A6: Judge t0. When t0 is greater than or equal to the preset time (for example, 13.5ms) again, the liquid level leaves the full level state. At this time, the ultrasonic level meter resumes normal measurement mode and jumps to A2. When t0 is less than the preset time (for example, 13.5ms), return to step A2.
[0213] Step (5) Manual real-time judgment of measurement results: The user judges the measurement results of Mode 1 in real time. If the measurement results of Mode 1 are correct, the cyclic measurement through Mode 1 is continued. Otherwise, through manual intervention, jump to step (6).
[0214] Step (6) Enable mode 2 for cyclic measurement: obtain the measurement information required for mode 2, use a combination of normal measurement mode + full liquid level measurement mode, and based on [t0-t d , t0+t d ] and the calculation formula corresponding to mode 2, the liquid depth in the container is measured cyclically, and the fixed obstacle memory library is updated in real time:
[0215] It should be noted that: the mode 2 will also be judged manually in real time during the cyclic measurement. If the measurement result of the mode 2 is correct, the cyclic measurement will continue through the mode 2. Otherwise, it will be judged that the equipment is faulty.
[0216] Specifically, the mode 2 is similar to the mode 1 in that both are combined measurements using the normal measurement mode + the measurement mode under full liquid state. The difference is that the mode 1 only needs to input H and t d , and use the time difference t corresponding to the air height of the initial liquid level automatically searched p , the mode 2 needs to input H, L0 and t d ; H and L0 in Mode 2 are both directly determined manually, so the time difference t of the air height corresponding to the current liquid level depth L0 is calculated by formula (6): q The correctness of is indirectly determined by humans; Mode 1 has less workload, and H can be obtained according to the design and installation drawings. H and t are compared in a comfortable place (such as an office). d The numerical value is input into the ultrasonic level meter, and the workload of mode 2 is large. For example, if 500 ultrasonic level meters are installed in a project, a total of 500 current liquid level depth measurements need to be performed at various scattered installation sites; therefore, mode 2 is used as a backup solution for mode 1 in special working conditions to supplement the solution of t in mode 1. p In the case of an extremely low probability error or because the liquid surface remains stationary during the preset search period, t cannot be obtained. p ;
[0217] Specifically, the cyclic measurement process of mode 2 is as follows:
[0218] Step (A-B) Normal measurement method: that is, at the resonant frequency, the ultrasonic level meter uses a voltage in the normal power range for excitation and emission, and the specific measurement process is as follows:
[0219] A B1.1: The vertical distance from the ultrasonic level meter transducer probe to the bottom of the container, i.e. the installation height H, and the time difference t of the liquid level empirical change speed d , the user obtains the current liquid level depth L0 through manual measurement and inputs it through the key module; at the same time, the current air temperature value is measured and recorded, and the time difference t of the air height at the current liquid level depth is calculated according to L0 through the above formula (6) q ;
[0220] One thing needs to be explained: q The source of the calculation data is H and L0 which have been directly determined by humans, so t q The correctness is indirectly determined by humans. The value of L0 is the correct depth value of the current liquid level, and the current optimal excitation voltage and amplification factor are automatically calculated based on the maximum measurement range and the value of L0.
[0221] A B1.2: The t q Assign to t0, use [t0-t d , t0+td interval to track and analyze the echo time difference;
[0222] B2 of Party A: Before transmitting ultrasonic waves for measurement, automatically measure and update the temperature of the air. The pulse excitation voltage and the amplification factor of the echo processing circuit are within the range of ±30% of the values used in the most recent correct measurement. At the resonance frequency, multiple pulses are transmitted each time, for example, 3 groups of 8 pulses of ultrasonic waves are transmitted per minute. After transmission, f time differences are obtained;
[0223] B3 of Party A: Eliminate the interference time differences in the fixed obstacle memory bank;
[0224] B4 of Party A: Compare and identify the remaining n time differences within the range of [t0 - t d , t0 + t d to obtain k time differences that fall within the above range, and process the values of n and k;
[0225] B5 of Party A: Determine whether there is a missing wave or an interference wave. If not, jump to step B6 of Party A; otherwise, jump to B8 of Party A;
[0226] B6 of Party A: Calculate the average value t of the k time differences obtained according to the aforementioned formula (8) S ;
[0227] B7 of Party A: Assign t S to t in the aforementioned formula (5), and automatically calculate the liquid level depth L according to formula (5). Then, re-assign the average value t S of the effective time differences of this time to t0, and return to B2 of Party A for cyclic measurement; if there is a missing wave or interference during the cyclic measurement, jump to step B8 of Party A;
[0228] B8 of Party A: Conduct a check to determine whether it is a missing wave or an interference wave. If it is a missing wave, jump to B10 of Party A; otherwise, jump to B9 of Party A;
[0229] B9 of Party A: Conduct interference analysis to determine whether it is non-tracking, obstacle interference, secondary or multiple echo interference, or obstacle superposition of secondary or multiple echo interference:
[0230] If it is non-tracking, jump to B10 of Party A for missing wave processing;
[0231] If it is obstacle interference, eliminate the obstacle and update the obstacle memory bank, then calculate t S , and then return to B7 of Party A;
[0232] If it is secondary or multiple echo interference, jump to step (B of Party B);
[0233] If the obstacle is superimposed with secondary or multiple echo interference, the obstacle is first removed and the obstacle memory is updated, and then the process jumps to step (B);
[0234] A Bi0: Wave loss or missing wave processing. When the echo is not tracked or the wave is lost or missing, keep the correct t0 measured last time and re-measure. At the same time, judge whether the re-measurement result meets the conditions. If so, the re-measurement is successful, and the average value of the effective time difference t is calculated by formula (8). S , return to B7; if not, it is judged that it is a machine failure, and the user is prompted by executing the fail-safe module;
[0235] Step (B) Full liquid level measurement method: that is, the ultrasonic level meter transmitting circuit adopts non-resonant frequency, low excitation voltage and low energy to drive the ultrasonic transducer to measure the full liquid level. The specific process is as follows:
[0236] B1: According to the interference analysis results, the value of B9 in [t0-t d , t0+t d The time difference within ] is calculated by formula (8) to obtain the average value t S , t S Assign a value to t in formula (5), and automatically calculate the liquid level depth L according to formula (5), and then use the average value t S Assign value to t0;
[0237] B2: Each measurement is separated by a specific time, which corresponds to t d At a specific time, such as an interval of 1 second, the ultrasonic level meter automatically measures and updates the air temperature value before transmitting ultrasonic waves each time, and simultaneously uses a non-resonant frequency and a special low excitation voltage to transmit a specified number of pulse ultrasonic waves;
[0238] B3: By using non-resonance frequency and special low excitation voltage to emit a specified number of pulsed ultrasonic waves, low-energy mechanical vibration ultrasonic waves are obtained, so that the ultrasonic waves are completely attenuated after one reflection, and no secondary or multiple reflections occur. At the same time, multiple echo time differences are obtained, the time differences of fixed obstacles are eliminated, and the fixed obstacle memory bank is updated;
[0239] B4: Determine the number n of the remaining multiple echo time differences. If n≥X, jump to B5; if n<X, jump to B10;
[0240] B5: Calculate the average value of the remaining multiple echo time differences using formula (8): S , and the average value t S Assign a value to t in formula (5), and automatically calculate the liquid level depth L according to formula (5), and then use the average value t SReassign the value to t0;
[0241] B6: Judge t0. When t0 is greater than or equal to the preset time (for example, 13.5ms) again, the liquid level leaves the full level state. At this time, the ultrasonic level meter resumes normal measurement mode and jumps to B2. When t0 is less than the preset time (for example, 13.5ms), return to step B2.
[0242] Reference Figure 4 , this embodiment discloses an ultrasonic liquid level meter, comprising:
[0243] The key module is used to transmit user commands and values to the single-chip microcomputer processing module;
[0244] The temperature module is used to measure the current air temperature and input the air temperature to the single chip processing module;
[0245] The obstacle storage module is used to store the time difference of the fixed obstacle and the corresponding air temperature at that time;
[0246] A single-chip microcomputer processing module is used to receive the user instructions, numerical values and current air temperature, and call a measurement mode that meets the user's requirements, and calculate the corresponding ultrasonic propagation speed under the current air temperature, and generate a corresponding measurement square wave signal according to the measurement mode, and then record the echo time of the square wave signal, and calculate the depth of the liquid level according to the time difference between the echo time point and the emission time point and the current air temperature through the mode required by the user. The liquid level depth and other related parameters are controlled and output to the LCD display module, and the signal output communication module is controlled according to the liquid level depth and the requirements specified by the user;
[0247] The transmitting module is used to receive the measuring square wave signal transmitted by the single-chip processing module, and oscillate according to the square wave signal to generate high-power high-voltage electric pulses of the same frequency and quantity;
[0248] The echo receiving and processing module is used to amplify, filter, rectify and compare the received low-voltage electrical signal to generate a pulse square wave and feed it back to the single-chip processing module;
[0249] An integrated ultrasonic transducer for transmitting and receiving, used for converting the high-voltage electrical pulse into mechanical energy ultrasonic waves of the same frequency and quantity, transmitting the mechanical energy ultrasonic waves to the liquid level reflection surface through air propagation, and converting the mechanical energy ultrasonic waves reflected from the liquid level reflection surface into weak low-voltage electrical signals of the same frequency and quantity;
[0250] An obstacle updating module, used for updating the time difference of the fixed obstacles in the obstacle storage module in real time;
[0251] The LCD display module is used to provide a user interface display, receive the calculation results, and inform the user of the results through text words and numerical display;
[0252] The signal output communication module is used to inform the user of the measurement results of the liquid level depth and other related parameters through electrical signals.
[0253] Reference Figure 2-3 This embodiment will specifically describe the working principle of an ultrasonic level meter of the present application in combination with actual working conditions:
[0254] Actual working conditions on site: air temperature 25℃, container depth 4.7m, ultrasonic level meter transducer probe vertical distance from container bottom 4.8m, there is a pipe inside the container, the pipe is 1.2m vertical distance from ultrasonic level meter transducer probe, that is, installation height H = 4.8m, obstacle B1 = 1.2m, and there is some liquid inside the container. After manual measurement, the liquid level depth is 1.05m, and the actual speed of the container liquid level rise and fall is about 0.034m / s (that is, about 2m per minute);
[0255] In this embodiment, the liquid inside the container is water. To ensure sufficient tracking speed, the liquid level empirical change speed is selected as 0.5 m / s.
[0256] In this embodiment, the ultrasonic level meter of the present invention has a range of R=5 meters, a blind area of 0.5 meters, a measurement error of 0.5%, and is installed at the position of working condition 2;
[0257] After power on, the user selects mode 2 of the ultrasonic level meter to work. The ultrasonic level meter guides the user to input the installation height H, the current liquid level depth L0 of the liquid, and the liquid level empirical change speed, and converts the user-input liquid level empirical change speed into the corresponding t d , while measuring the air temperature and assigning the air temperature value to T;
[0258] It should be noted that the values of H and L0 are the correct values directly determined by humans; the ultrasonic level meter is based on the user's input and the current temperature, and according to t q =(H-L0)*2 / 331.45*(1+T / 273.15) 1 / 2 Calculate t q is equal to 0.02166s, which is t q The correctness is indirectly determined manually; at the same time, the optimal excitation voltage Vpp (700V) and amplification factor of 1000 times are automatically calculated according to the installation height (H=4.8 meters) and L0 (1.05 meters); to ensure that the tracking speed is sufficient, the liquid level experience change speed is selected as 0.5m / s, and the corresponding t of the tracking speed of 0.5m / s is dis 0.00334s, t d The value is 0.00334; at the same time, the ultrasonic level meter is set to measure once per second;
[0259] t q 0.02166 of t0, and use [t0-t d , t0+t d ] to track and analyze the echo;
[0260] It should be noted that there are five types of echo tracking and analysis in this interval:
[0261] All echo time differences do not fall within the interval [t0-t d , t0+t d ], that is, the tracking interval loses the wave;
[0262] There are echo time differences falling within the interval [t0-t d , t0+t d ], and all other echo time differences fall within the interval [t0-t d , t0+t d ], that is, there is an obstacle above the liquid surface;
[0263] There is an echo time difference falling within the interval [t0-t d , t0+t d ], and all other echo time differences fall within the interval [t0-t d , t0+t d ], because objects below the liquid surface cannot reflect sound waves, there can only be secondary or multiple echo interference;
[0264] There are echo time differences falling within the interval [t0-t d , t0+t d ], some other echo time differences fall within the interval [t0-t d , t0+t d ], some fall on the left side of the interval [t0-t d , t0+t d ] is on the right outside, that is, obstacles are superimposed with secondary and multiple echo interference;
[0265] All echo time differences fall within the interval [t0-t d , t0+t d ]Inside;
[0266] The ultrasonic level meter measures the renewal air temperature. At a resonance frequency of 40kHz, the excitation voltage Vpp varies between 490V and 910V, the amplification factor varies between 700 and 1300 times, and 3 groups of 8 pulse ultrasonic waves with a fixed interval of 250ms are emitted. After emission, 18 time differences (t1, t2, t3, ... t 18 ), where t at 0.00693s bn Get 10, t at 0.0216s n Get 8;
[0267] After judgment, the fixed obstacle time difference memory library t b1 ,t b2 …t bn There is no value greater than 0, so the value of the number of echoes, 18, is assigned to n;
[0268] Set n (n=18) time differences in [t0-t d , t0+t d ] That is, the comparison and identification is carried out within the interval of [0.01832, 0.025], and it is found that there are k (k = 8) time differences falling within this interval;
[0269] The values of n and k are processed, and the specific processing formula is as follows:
[0270] nk=m (9)
[0271] (n≥X)&&(m≤Y) (10)
[0272] Among them, when n≥X, the output is 1, and the output is 0; when m≤Y, the output is 1, and the output is 0. In this ultrasonic level meter, X=3, Y=0; formula (10)=1, indicating that there is no lack of waves and no interference, formula (10)=0, indicating that there is a lack of waves or interference;
[0273] After processing, the result according to formula (10) is equal to 0, indicating that there is a missing wave or interference;
[0274] According to formula (9), we know that m is equal to 10, which is greater than 0 (Y); and n ≥ 3 (X), so we can judge that: there is no missing wave; there is an echo time difference falling within [t0-t d , t0+t d ] is in the interval [0.01832, 0.025], but there are also echo time differences that do not fall within the interval [t0-t d , t0+t d ] That is, in the interval [0.01832, 0.025], it is known that interference echo has appeared;
[0275] After comparative analysis of the interference, it is known that the time differences of the other 10 echoes fall within the interval [t0-t d , t0+t d ] is the left outer side of [0.01832, 0.025]. Because the interference echo time difference is <0.01832, it is judged that the interference echo is caused by the reflection of the object above the liquid level and is an obstacle.
[0276] Therefore, directly eliminate the d , t0+t d ] That is, the time difference t between the other echoes on the left side of [0.01832, 0.025] and its b , and record the air temperature at this time as 25°C, and calculate the time difference t of the echoes from these obstacles. b The values are arranged and classified by size. The values with a gap of 1% are classified into the same category. This measurement only obtains one obstacle time difference classification. Then the 10 time differences in this category are classified into the same category. b The average value is calculated to get 0.00693s, and then 0.00693 is assigned to t in the fixed obstacle time difference memory bank. b1 At the same time, the recorded air temperature of 25°C is assigned to T b1 , so as to remember, compare and identify obstacles in subsequent measurements;
[0277] The obtained k (k=8) time differences are further processed to obtain the average value: (t1+t2+t3+…+t8) / 8=t S , this measurement t S The value is: 0.0216, when the average value of the time difference of this measurement is obtained S (0.0216) and then t S The value of is assigned to t in formula (5) under mode 2, L = L0-331.45*(1+T / 273.15) 1 / 2 *(tt q ) / 2, after substituting the numerical value, we get: L=1.05-331.45*(1+25 / 273.15) 1 / 2 *(0.0216-0.02166) / 2, calculated L = 1.06 meters;
[0278] Then t S The value of 0.0216 is assigned to t0, and the [t0-t d , t0+t d ] The new echo tracking analysis interval is measured repeatedly until L = 3.5 meters is measured, corresponding to t0 = 0.00751, and air height A = 4.8-3.5 = 1.3m;
[0279] At this time, the ultrasonic level meter measures the updated air temperature. At a resonance frequency of 40kHz, the excitation voltage and the amplification factor vary within the range of ±30% of the center value of the last normal measurement. Three groups of 8 pulse ultrasonic waves with a fixed interval of 250ms are emitted. After emission, 50 time differences (t1, t2, t3, ... t 50 ), where t at 0.00693s bn There are 18, t at 0.00733s n There are 18, t at 0.01621s x There are 9, t at 0.02375s y There are 5;
[0280] After judging, there is a value greater than 0 in the fixed obstacle time difference memory bank, and t b1 0.00693, and call T b1 , knowing that the air temperature was 25℃, after comparison, the temperature values are the same and no conversion is required. t b1 ;
[0281] Press the b1 The value of 0.00693 is used to construct the numerical interval: [0.00679, 0.00707], that is, the range of 0.00693±2%. The 50 time differences obtained are compared and identified in the interval [0.00679, 0.00707], and it is found that 18 time differences fall within this interval;
[0282] Then judge t b1 Does 0.00693 fall into the new [t0-t d , t0+t d ] That is, the echo tracking interval of [0.00417, 0.01085], the result falls into, arrange the 50 time difference values in order from small to large, and take the last (largest) value as t max , judge t max Whether it falls into the interval [0.00417, 0.01085], the t obtained at the beginning max Located in y It does not fall into the interval [0.00417, 0.01085];
[0283] Continue to take the value just below t max The second value of is determined to see if it falls within the interval [0.00417, 0.01085]. The second largest value does not fall within this interval either.
[0284] And so on, until t nThe largest value, 0.00734, falls in the interval [0.00417, 0.01085];
[0285] The fastest time difference value 0.00734 that is judged to be in the interval [0.00417, 0.01085] is assigned to t z , construct the numerical interval according to 0.00734: [0.00725, 0.00741], that is, t z ±1% range, judge t b1 Does 0.00693 of fall into the interval [0.00725, 0.00741]? The result is not (that is, the obstacle and the real liquid surface have not entered the overlapping area);
[0286] Directly fall into t b1 All 18 time differences in the range of 0.00693±2%, i.e., [0.00679, 0.00707], are eliminated (excluding memorized fixed obstacles);
[0287] The remaining n (n = 50-18 = 32) time differences are added to the new [t0-t d , t0+t d ] that is, the interval [0.00417, 0.01085] is used for comparison and identification, and it is found that there are k (k = 18) time differences falling within this interval;
[0288] The values of n and k are processed, and the specific processing formula is as follows:
[0289] nk=m (9)
[0290] (n≥X)&&(m≤Y) (10)
[0291] Among them, when n≥X, the output is 1, otherwise the output is 0, when m≤Y, the output is 1, otherwise the output is 0. In this ultrasonic level meter, X=3, Y=0; formula (10)=1, indicating that there is no lack of wave and no interference, formula (10)=0, indicating that there is a lack of wave or interference;
[0292] After processing, the result according to formula (10) is equal to 0, indicating that there is a missing wave or interference;
[0293] According to formula (9), we know that m is equal to 14, which is greater than 0 (Y); at the same time, n ≥ 3 (X), so we can judge that: there is no missing wave; there is an echo time difference falling within [t0-t d , t0+t d ], but there are also echo time differences that do not fall within the range of [t0-t d , t0+t d ] interval, it is known that interference echo has appeared;
[0294] After comparative analysis of the interference, it is known that the other 14 echo time differences fall within the interval [t0-t d , t0+t d ] is the right outer side of [0.00417, 0.01085]. Because the value of the interference echo time difference is > 0.01085, and because the objects below the liquid surface cannot reflect the sound wave, it is judged that there can only be secondary or multiple echo interference, and the full liquid level measurement mode is enabled;
[0295] The average value of k (k=18) time differences falling in the interval [0.00417, 0.01085] is: (t1+t2+t3+…+t 18 ) / 18=t S , this measurement t S The value of t is: 0.00733. S The value of is assigned to t in formula (5) under mode 2. After substituting the value, L = 3.53 meters is calculated. Then t S The value of (0.00733) is assigned to t0;
[0296] The ultrasonic level meter measures the renewal air temperature. At a non-resonant frequency of 50kHz, the excitation voltage is 70% of the lower limit of the normal range. Three groups of 8 pulse ultrasonic waves with a fixed interval of 250ms are emitted. The non-resonant and low-voltage excitation is used to reduce the emission mechanical energy of the ultrasonic level meter transducer probe. In this way, multiple echoes and secondary echoes disappear automatically.
[0297] The ultrasonic level meter obtains 36 time differences (t1, t2, t3, ... t 36 ), where t at 0.00693s bn Obtained 18, t at 0.00725s n 18 were obtained;
[0298] After judging, there is a value greater than 0 in the fixed obstacle time difference memory bank, and t b1 0.00693, and call T b1 , knowing that the air temperature was 25℃, after comparison, the temperature values are the same and no conversion is required. t b1 ;
[0299] Press the b1 The value of 0.00693 is used to construct the numerical interval: [0.00679, 0.00707], that is, the range of 0.00693±2%. The 36 time differences obtained are compared and identified in the interval [0.00679, 0.00707], and it is found that 18 time differences fall within this interval;
[0300] Then judge tb1 Does 0.00693 fall into the new [t0-t d , t0+t d ] That is, the interval [0.00399, 0.01067], the result falls into, arrange the 36 time difference values in order from small to large, and take the last (largest) value as t max , judge t max Whether it falls into the new [t0-t d , t0+t d ] is the interval [0.00399, 0.01067], and the result is t max Located in this interval;
[0301] The value of the fastest time difference that is judged to belong to the interval [0.00399, 0.01067], 0.00732, is assigned to t z , construct the numerical interval according to 0.00732: [0.00725, 0.00739], that is, t z ±1% range, judge t b1 Does 0.00693 of fall into the interval [0.00725, 0.00739]? The result is not (that is, the obstacle and the real liquid surface have not entered the overlapping area);
[0302] Directly fall into t b1 All 18 time differences in the range of 0.00693±2%, i.e., [0.00679, 0.00707], are eliminated (excluding memorized fixed obstacles);
[0303] The remaining n (n = 36 - 18 = 18) time differences are added to the new [t0 - t d , t0+t d ] that is, the interval [0.00399, 0.01067] is used for comparison and identification, and it is found that there are k (k=18) time differences falling within this interval;
[0304] The values of n and k are processed, and the specific processing formula is as follows:
[0305] nk=m (9)
[0306] (n≥X)&&(m≤Y) (10)
[0307] Among them, when n≥X, the output is 1, otherwise the output is 0, when m≤Y, the output is 1, otherwise the output is 0. In this ultrasonic level meter, X=3, Y=0; formula (10)=1, indicating that there is no lack of wave and no interference, formula (10)=0, indicating that there is a lack of wave or interference;
[0308] After processing, the result of formula (10) is equal to 1, which means there is no missing wave and no interference;
[0309] The k (k=18) time differences are averaged: (t1+t2+t3…+t 18 ) / 18=t S , this measurement t S The value of t is: 0.00725. S The value of is assigned to t in formula (5) under mode 2. After substituting the value, L = 3.55 meters is calculated. Then t S The value of (0.00725) is assigned to t0;
[0310] Determine whether t0 ≥ 0.0135 (13.5ms), the result is no;
[0311] Continue to use the full liquid level measurement method, and repeat the cycle until t0 is ≥ 0.0135 again;
[0312] When t0 is greater than or equal to 0.0135 again, the liquid level leaves the full level state, that is, the liquid level is about 2 meters away from the ultrasonic level meter probe (the attenuation of ultrasonic wave in the air is proportional to the square of the distance), the ultrasonic level meter resumes the normal excitation emission mode, that is, it works in the normal excitation voltage range at the resonant frequency, and uses the normal measurement method for cyclic measurement;
[0313] Repeat the above steps to perform [t0-t d , t0+t d ]The echo tracking analysis interval is constructed in a loop, and cyclic measurement is implemented based on it.
[0314] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A cyclic measurement method of an ultrasonic level meter, characterized in that: The specific steps of this measurement method are as follows: Step (1) defining and constructing two sets of measurement modes: defining and constructing two sets of different measurement working modes, namely mode 1 and mode 2, according to the measurement information required to be collected by the ultrasonic level meter under different working conditions, and realizing cyclic measurement based thereon; Step (2) Liquid level state search and determination and analysis interval construction: multiple groups of ultrasonic waves are emitted into the container according to the preset duration, and the time difference of the echoes is continuously searched. If the time difference of the searched echoes has a relative change, the starting time difference t is obtained. p , and after completing step (3), jump to step (4); otherwise, after completing step (3), jump to step (6); at the same time, based on the determined starting time difference variable t0 and the time difference t of the liquid level experience change speed d and the average value of the subsequent effective time difference t s , construct [t0-t d , t0+t d ] echo tracking and analysis interval, and then t0 is cyclically and progressively assigned to track and analyze the echo time difference; Step (3) constructing a fixed obstacle memory library: obtaining the time difference of the continuous search echo in step (2); if the time difference of the searched echo has a relative change, then recording each fixed obstacle inside the container based on the time difference of other unchanged echoes to form a fixed obstacle memory library; conversely, if the time difference of the searched echo has no relative change, then assigning an initial value of 0 to each value in the fixed obstacle time difference memory library; Step (4) Default mode 1 for cyclic measurement: obtain the measurement information required for mode 1, use a combination of normal measurement mode + full liquid level measurement mode, and based on [t0-t d , t0+t d ] and the corresponding calculation formula for mode 1 Circularly measuring the depth of the liquid in the container and updating the fixed obstacle memory bank in real time; Step (5) Manual real-time judgment of measurement results: The user judges the measurement results of mode 1 in real time. If the measurement results of mode 1 are correct, the cyclic measurement through mode 1 is continued. Otherwise, through manual intervention, jump to step (6); Step (6) Enable mode 2 for cyclic measurement: obtain the measurement information required for mode 2, use a combination of normal measurement mode + full liquid level measurement mode, and based on [t0-t d , t0+t d ] and the corresponding calculation formula for mode 2 The liquid depth in the container is measured cyclically, and the fixed obstacle memory is updated in real time.
2. The ultrasonic level meter cyclic measurement method according to claim 1, characterized in that: The measurement information in step (1) includes mode 1 measurement information and mode 2 measurement information, wherein the mode 1 measurement information includes the installation height H, the time difference t of the liquid level empirical change speed, and the liquid level empirical change speed. d and the current air temperature T; the measurement information of mode 2 includes the installation height H, the current liquid level depth L0, the time difference t of the liquid level experience change speed d and the current air temperature T.
3. The ultrasonic level meter cyclic measurement method according to claim 1, characterized in that: The purpose of the liquid level state search and determination in step (2) is to obtain the first echo signal at any time point whose time difference will change relatively and the time difference t corresponding to the echo signal. p ; The analysis interval of step (2) is constructed based on the determined starting time difference variable t0 and the time difference t of the liquid level experience change speed in mode 1 and mode 2 d and the average value of the subsequent effective time difference t s , construct [t0-t d , t0+t d ] echo tracking analysis interval, and then t0 is cyclically and progressively assigned; the initial value of the determined starting time difference variable t0 is specifically the time difference t corresponding to the air height at the initial liquid level depth under mode 1 p , or in mode 2, after measuring the initial current liquid level depth L0, by formula (6) Calculate the time difference t corresponding to the air height q .
4. The ultrasonic level meter cyclic measurement method according to claim 1, characterized in that: The specific construction process of the fixed obstacle memory library in step (3) is as follows: a1: The ultrasonic level meter continuously transmits ultrasonic waves into the container within a preset time, and the ultrasonic level meter transducer probe receives the reflected ultrasonic waves in real time; a2: Collect the time difference between the time when the reflected ultrasonic wave is received by the ultrasonic level meter transducer probe and the time when the ultrasonic wave is emitted, emit the ultrasonic wave once at a fixed interval, and record the time difference of its return to generate multiple sets of time difference sets; a3: Extract the relatively unchanged time differences in each group of time difference sets, and integrate and classify the extracted time differences to construct a fixed obstacle time difference memory library t bn ={t b1 ,t b2 ,t b3 …t bn }, and record the current air temperature T bn ={T b1 , T b2 , T b3 …T bn }, and correspond one to one with each group of data in the fixed obstacle time difference memory library, wherein the initial value of each value in the fixed obstacle time difference memory library is 0 before being assigned a record value; if the time difference searched within the preset time length is relatively unchanged, then the record value of each value in the fixed obstacle time difference memory library is assigned 0; if the time difference of the searched echo has a relative change, then the fixed obstacles inside the container are recorded based on the time difference of other relatively unchanged echoes.
5. The ultrasonic level meter cyclic measurement method according to claim 1, characterized in that: The cyclic measurement process of mode 1 in step (4) is specifically as follows: Step (A) Normal measurement mode: that is, at the resonant frequency, the ultrasonic level meter uses a voltage in the normal power range for excitation emission, and the specific measurement process is as follows: A1.1: Obtain the vertical distance from the ultrasonic level meter transducer probe to the bottom of the container, i.e. the installation height H, and the time difference t of the liquid level empirical change speed d , air temperature T, and t obtained by searching within the preset time range p , and at the same time p Assign to formula (4) In t, the ultrasonic level meter uses formula (4) Calculate the liquid level depth L; A1.2: t p It is the time difference corresponding to the first echo signal whose time difference will change relatively, which is determined by the program during the preset time search period. The value of L calculated by default is correct. A1.3: The t p Assign to t0, use [t0-t d , t0+t d ] interval to track and analyze the echo time difference; A2: Before transmitting the ultrasonic measurement, the air temperature is automatically measured and updated once. At the resonant frequency, 3 groups of 8 pulse ultrasonic waves are transmitted in each group to obtain f time differences; A3: Eliminate the interference time difference in the fixed obstacle memory library; A4: The remaining n time differences are in [t0-t d , t0+t d ] to compare and identify within the interval, obtain k time differences falling within the above interval, and process the values of n and k for judgment; A5: Determine whether there is a missing wave or an interference wave. If not, jump to step A6; otherwise, jump to step A8; A6: Get the average value of k time differences s ; A7: t s Assign the calculation formula corresponding to mode 1 t in the formula and automatically follow the corresponding formula Calculate the liquid level depth L, and then calculate the average value of the effective time difference t s Re-assign t0 and return to step A2 for cyclic measurement. If there is a missing wave or interference during the cyclic measurement, exit the loop and jump to step A8. A8: Check to determine whether there is a lack of wave or an interference wave. If there is a lack of wave, jump to A10, otherwise jump to A9; A9: Perform interference analysis to determine whether it is not tracked, obstacle interference, secondary or multiple echo interference, or obstacle superimposed secondary or multiple echo interference: If it is not tracked, it will jump to A10 for wave loss processing; If there is an obstacle interference, the obstacle is removed and the obstacle memory is updated, and then t is calculated. s , and then return to A7; If it is secondary or multiple echo interference, jump to step (B A); If the obstacle is superimposed with secondary or multiple echo interference, the obstacle is removed, and the obstacle memory is updated, and then jump to step (B A); A10: Lost wave processing. When the echo is not tracked or the wave is lost or missing, keep the correct t0 measured last time and re-measure. At the same time, judge whether the re-measurement result meets the conditions. If so, the re-measurement is successful. The formula (8) (t1+t2+t3+…+t k ) / k=t s Calculate the average value t of the effective time difference s , return to A7; if not, it is judged that it is a machine failure, and the user is prompted by executing the fail-safe module; Step (B) Full liquid level measurement method: that is, the ultrasonic level meter transmitting circuit adopts non-resonant frequency, low excitation voltage and low energy to drive the ultrasonic transducer to measure the full liquid level. The specific process is as follows: B A1: According to the interference analysis results, A9 falls into [t0-t d , t0+t d ] to find the average value of the time difference within t s , t s Assign to formula (4) t in the equation (4) Calculate the liquid level depth L, and then use the average value t s Assign value to t0; A2: Each measurement is separated by a specific time, and the air temperature value is automatically measured and updated. At the same time, a specified number of pulsed ultrasonic waves are emitted using a non-resonant frequency and a special low excitation voltage; A3: By using non-resonant frequency and special low excitation voltage to emit a specified number of pulsed ultrasonic waves, low-energy mechanical vibration ultrasonic waves are obtained, so that the ultrasonic waves decay completely after one reflection, without secondary or multiple reflections, and multiple echo time differences are obtained at the same time. The memorized fixed obstacle time difference is first eliminated, and then [t0-t d , t0+t d ] The newly appeared fixed obstacles are removed in the interval and the fixed obstacle memory library is updated; A4: Determine the number n of the remaining multiple echo time differences. If n≥X, jump to A5; if n<X, jump to A10; A5: The remaining multiple echo time differences are calculated by formula (8) (t1+t2+t3+…+t k ) / k=t s Find the average value t s , and the average value t s Assign to formula (4) t in the equation (4) Calculate the liquid level depth L, and then use the average value t s Reassign the value to t0; A6: Judge t0. When t0 is greater than or equal to the preset time again, the liquid level leaves the full level state. At this time, the ultrasonic level meter resumes normal measurement mode and jumps to A2. When t0 is less than the preset time, return to step A2.
6. The cyclic measurement method of an ultrasonic level meter according to claim 1, characterized in that: Step (6) Mode 2 and Mode 1 are both combined measurements of normal measurement mode + full liquid state measurement mode, the difference is that Mode 1 only needs to input H and t d , and use the time difference t corresponding to the air height of the initial liquid level automatically searched p , Mode 2 requires input of H, L0 and t d ; H and L0 in Mode 2 are both directly determined manually, so through formula (6) Calculate the time difference t of the air height corresponding to the current liquid level depth L0 q The correctness of is indirectly determined by humans; therefore, Mode 2 is used as a backup solution for Mode 1 in special working conditions to supplement the solution of t p In the case of an extremely low probability error or because the liquid surface remains stationary during the preset search period, t cannot be obtained. p .
7. An ultrasonic level meter, characterized in that: include: The key module is used to transmit user commands and values to the single-chip microcomputer processing module; The temperature module is used to measure the current air temperature and input the air temperature to the single chip processing module; The obstacle storage module is used to store the time difference of the fixed obstacle and the corresponding air temperature at that time; A single-chip microcomputer processing module is used to receive the user instructions, numerical values and current air temperature, and call a measurement mode that meets the user's requirements, and calculate the corresponding ultrasonic propagation speed at the current temperature, and generate a corresponding measurement square wave signal according to the measurement mode, and then record the echo time of the square wave signal, and calculate the depth of the liquid level according to the time difference between the echo time point and the emission time point and the current air temperature through the mode required by the user. The liquid level depth and other related parameters are controlled and output to the LCD display module, and the signal output communication module is controlled according to the liquid level depth and the requirements specified by the user; The transmitting module is used to receive the measuring square wave signal transmitted by the single-chip processing module, and oscillate according to the square wave signal to generate high-power high-voltage electric pulses of the same frequency and quantity; The echo receiving and processing module is used to amplify, filter, rectify and compare the received low-voltage electrical signal to generate a pulse square wave and feed it back to the single-chip processing module; An integrated ultrasonic transducer for transmitting and receiving, used for converting the high-voltage electrical pulse into mechanical energy ultrasonic waves of the same frequency and quantity, transmitting the mechanical energy ultrasonic waves to the liquid level reflection surface through air propagation, and converting the mechanical energy ultrasonic waves reflected from the liquid level reflection surface into weak low-voltage electrical signals of the same frequency and quantity; An obstacle updating module, used for updating the time difference of the fixed obstacles in the obstacle storage module in real time; The LCD display module is used to provide a user interface display, receive the calculation results, and inform the user of the results through text words and numerical display; The signal output communication module is used to inform the user of the measurement results of the liquid level depth and other related parameters through electrical signals.
