Technical Field of the Invention
The technical field of the present invention is that of electronic monitoring of the level of liquid in a tank, such as the fuel supply tank of a gasoline station.
Background of the Invention
There is a continuing need to monitor the level of liquid in an in-ground liquid storage tank. Such in ground liquid storage tanks are typically employed for storage of liquid from the time of delivery until use. Such storage tanks are also used for temporary storage of liquid at a wholesaler's location from the time of receipt until it is removed for delivery to a retailer or at a retail location from the time of delivery until sale to the customer. Such in-ground storage tanks are typically formed of cylinders having a substantially vertical fill pipe connecting the tank interior to a surface tank inlet permitting the tank to be filled. It is typical to include an outlet at the bottom of the tank whereby liquid may be withdrawn from the tank for use or delivery to a customer.
It is necessary to periodically monitor the liquid level in such in-ground storage tanks for a number of reasons. Firstly, in the case of tanks where the outlet of liquid is unmetered there exists a need to determine the liquid level within the tank. In addition, even if the outlet of the tank is metered it is necessary to periodically check the liquid level within the tank in order to ensure the accuracy of the inflow and outflow metering. In addition, it is advisable to periodically independently determine the liquid level within a tank in order to determine whether or not the tank is leaking. Even with metered inflows and outflows, such liquid level measurement is required for leak detection. Such leak detection is particularly desirable in the case in which the liquid stored in the storage tank is some hazardous or potentially hazardous material. Often there are environmental regulations requiring the owners or users of such in-ground liquid storage tanks to periodically test for leaks. As a consequence, it is desirable test the liquid level within such tanks.
Heretofore two primary systems have been employed for determining the liquid level within the tank. The first method is a purely manual method. This method requires a stick having a length somewhat greater than the length from the top of the fill pipe to the bottom of the tank at that location. The operator lowers the stick into the tank until it reaches the bottom. The stick is then withdrawn and the level of the liquid is observed against a scaled rule on the stick. This liquid depth is then converted manually into the corresponding volume of liquid within the tank based upon the known tank parameters such as diameter, length and the length of the fill pipe. This technique requires a relatively large labor cost and, due to the manual calculations required, provides a relatively low level of accuracy.
The second known technique for measuring the liquid level for such in-ground storage tanks involves the use of an in-tank electronic measuring apparatus. Such in-tank liquid level measuring apparatus typically employ an ultrasonic ranging technique. The ultrasonic ranging may occur within the liquid in the tank from the bottom of the tank to the liquid surface or from the top of the tank down to the liquid surface. Because it is known that the speed of sound changes with ambient temperature, many such systems employ ultrasonic reflection targets at a fixed distance form the transmit/receive transducer. The return echo from this fixed reference is employed in order to calibrate the return echo from the liquid level.
These in-tank liquid level sensors typically are very expensive and require a large amount of time to mount in an existing tank. As such this is a very expensive solution for retrofit to existing tanks. In addition, it is very expensive and extremely cumbersome to service or to modify such in-tank liquid level monitors. Accordingly there is a need in the art for a inexpensive, easy to install liquid level monitoring device.
Brief Description of the Invention
The present invention is an electronic liquid level monitoring apparatus for a in-ground storage tank having a substantially vertical fill pipe. This monitoring apparatus includes an ultrasonic transducer which can transmit and receive ultrasonic sounds. The ultrasonic transducer is disposed in a fill pipe head device which enables proper placement of the ultrasonic transducer in a fixed position relative to the fill pipe of the storage tank and provides a combination for a plurality of different fill pipe diameters.
The ultrasonic transducer is connected to an electronic control device. This electronic control device causes the ultrasonic transducer to transmit an ultrasonic sound pulse and to receive a return echo. The electronic control device measures the length of time from the transmission of the ultrasonic pulse to the receipt of the return echo and then calculates the distance from the ultrasonic transducer to the level of the liquid in the tank and subtracts the known preprogrammed distance from the top of the fill pipe to the bottom of the tank. This difference distance is the equivalent of the stick distance measured in the manual stick method. Thus this distance can permit calculation of the amounts of liquid in the tank in the same manner as in the prior art.
In accordance with a further embodiment of the present invention the electronic control device of this invention includes a temperature measuring device which generates a signal indicative of the ambient temperature. The electronic control device calculates the distance based upon the speed of sound at the particular measured temperature.
In accordance with a further embodiment of the present application the electronic control device includes a memory which stores tank parameters including such things as the diameter and length of the liquid storage tank. The electronic device then employs these tank parameters together with the distance measured via the ultrasonic transducer to compute the amount of liquid stored in the storage tank. In the preferred embodiment the apparatus includes a display of volume of liquid in the tank.
In accordance with a further embodiment of the present invention the electronic liquid level monitoring apparatus is usable for a plurality of storage tanks. The apparatus prompts the user to input via a keyboard the tank number prior to taking the measurements. This tank number then permits the apparatus to recall the appropriate tank parameters including the tank dimensions for computation of the volume based upon the distance to the liquid and the dimensions of a particular tank. In accordance with this embodiment, the liquid volume for the specified tank is stored in a memory corresponding to the particular selected tank. In this embodiment, the electronic apparatus preferably also calculates a volume variance for each particular tank which is equal to the volume for that particular tank last stored in the memory plus the liquid inflows, minus the liquid outflows and minus the currently measured volume for that particular tank. This volume variance is also stored within the memory. In this embodiment a communications device such as a modem can be employed for transmission of the tank data from the monitoring apparatus to an external device.
In a further embodiment of the present invention the electronic liquid level monitoring apparatus includes provision for receiving a temperature signal from an external temperature measuring device which may be placed inside the liquid inside the storage tank. This permits a correction to be made to the volume calculation based upon the temperature of the liquid in the tank. By testing the liquid temperature and calculating the liquid volume at two different times and correcting the computed liquid volume for the two possibly different temperatures, it is possible to determine whether or not there is a net inflow or outflow of liquid from the tank.
Brief Description of the Drawings
These and other aspects of the present invention will become clear form the following description taken in conjunction with the figures in which:
FIG. 1 illustrates a schematic diagram of the electronic liquid level monitoring apparatus of the present invention; and
FIG. 2 is a plan view of the handheld electronic liquid level monitoring apparatus in accordance with the present invention.
Detailed Description of the Preferred Embodiment
FIG. 1 illustrates a schematic diagram of the electronic liquid level monitoring apparatus 100 of the present invention. Electronic liquid level monitoring apparatus 100 includes central processing unit 110 which is connected to keyboard 112, audio beeper 114, transmit pulser device 116, transducer 117 and bus 120. Connected to bus 120 is visual display 130, analog to digital converter 132, program memory 134, data memory 135 and modem 138. Analog to digital converter 132 is alternatively connected to internal temperature sensor 133 or external temperature sensor 150. Associated with visual display 130, which is preferably a liquid crystal display, is back light 160 and momentary contact push button switch 161. Momentary actuation of push button switch 161 enables visual display 130 to be viewed in the dark. Both program memory 134 and data memory 136 are connected to a standby power supply 135, which supplies power to retain both the program for control of central processing unit 110 and the data recorded by the electronic liquid level monitoring apparatus 100 when the power is turned off. Modem 138 is further connected to an external connector 139 which enables an external device to be connected to the electronic fuel monitoring apparatus 100.
FIG. 2 illustrates a plan view 200 of the electronic liquid level monitoring apparatus. This electronic liquid level monitoring apparatus includes a fill pipe head device 210, a hinge 220 having a connector 225, and a handheld body 230. The fill pipe head device 210 includes a set of concentric ridges 202, 204, 206 and 208 mounted upon a plate 209. These ridges have respective diameters 201, 203, 205 and 207. In accordance with the preferred embodiment of the present invention the transducer. 117 is located in the center of the ridges 202. Ridge 202 has a diameter 201 of two inches, ridges 204 has a diameter 203 of three inches, ridges 206 has a diameter 205 of four inches and ridges 208 has a diameter 207 of six inches. This set of ridges 202, 204, 206 and 208 forms a concentric set of ridges of varying diameter.
Fill pipe head device 210 is employed to properly position transducer 117 in the fill pipe during use of the device. The fill pipe head device 210 is inserted into the fill pipe in an inverted position until one of the set of ridges 202, 204, 206 or 208 engages the pipe. The diameter of the set of ridges has been selected to correspond substantially to the most often used fill pipe diameters for underground liquid storage tanks. It is believed that this set of concentric ridges 202, 204, 206 and 208 will substantially center transducer 117 within the fill pipe opening regardless of the particular diameter of fill pipe employed.
Fill pipe head device 210 is rotatably coupled to liquid level monitoring device body 230 via a hinging couple 220. This permits the user to properly locate the fill pipe head device 210 while retaining access to the display and controls on the body 230. The hinging couple 220 includes a connector 225 which permits the fill pipe head device to be removed from the body 230 for transportation or storage.
Body 230 includes on its front face the operator interface devices. These are display 130 and keyboard 112. Display 130 is preferably a multiple character liquid crystal display which enables the apparatus to display prompts to the user and to display the results of the measurements of the liquid level monitoring apparatus 100. Note that push button switch 161 is mounted on the side of body to enable the user to light display 130 via light 160.
Keyboard 112 includes the digit keys 242 which include the digits from 0 to 9. Keyboard 112 further includes a set of function keys 244 which include the function keys F1, F2, F3, and F4. This functions keys 244 enable the operator to command the electronic liquid level monitoring apparatus 100 to perform the desired function in a manner that will be more fully disclosed below. Keyboard 112 further includes R key 246 and C key 248. The use of these keys will be fully described below.
Note that body 230 also includes main power switch 250, shown as a slide switch mounted on the side of body 230. Main power switch 250 is employed to turn the apparatus on or off.
Lastly body 230 includes a connector 139. Connector 139 is coupled to modem 138 and enables an external device to access the bus 120 of the electronic liquid level monitoring apparatus 100. This permits the electronic liquid level monitoring apparatus 100 to transmit data to the external device. It may also permit data and/or programs to be transmitted to electronic liquid level monitoring apparatus 100.
The operation of the electronic liquid level monitoring apparatus will be described below in conjunction with Tables 1, 2 and 3. Table 1 indicates the process of initial tank set-up. Table 2 indicates the process of forming a stick reading, corresponding to the use of a manual stick for reading the liquid level. Table 3 corresponds to the computation of the volume in the tank. Table 4 corresponds to the calculation of the 5 day variance of the liquid level in the tank.
Table 1 indicates the interaction between the apparatus and the user for initial set up of the tank parameters. After initial application of electric power to the apparatus and performance of an automated self test routine, the display 130 generates the user prompt "Ready-Function?." In order to begin the initial tank set up routine the user responds by pressing the key F3 on the keyboard 112. The apparatus in response by the user prompt "Tank Number?." The user then will enter the tank number which may be one or more digits followed by a further actuation of the F3 key to confirm the entry. If at any time during this entry the operator desires to re-enter the number then he needs only to press the C button 248 in order to cancel the prior entry and enable a re-entry.
The apparatus then prompts the user to enter assorted tank parameters which are employed in computing the volume of the tank. In each case the display 130 generates a user prompt requesting the input of the desired information. The user responds by entering the number desired via the digit keys 242 followed by actuation of the F3 key to confirm this entry. As noted above, the user may enter C key 248 to cancel the present entry and restart if he has made an error. These tank parameters include: the tank diameter D; the tank length L; the tank tilt angle theta; the offset length I, which is the distance from the low end of the tank to the location of the fill pipe; and the overall depth DT, which is the distance from the top of the fill pipe to the bottom of the tank. This process is illustrated at Table 1 above. During this input process the central processing unit 110 is receiving the data input by the user and storing it in a portion of data memory 136 corresponding to the previously entered tank number. Thus this data is stored for later use in computation of the volume of liquid in the tank.
Once this input process is complete the electronic tank level monitoring device generates the user prompt "Tank Number?" If the user desires to enter the parameters for another tank then the user enters the digits from digit keys 242 corresponding to the next tank number and the function key F3. On the other hand, if the user is finished with entering tank parameters for all tanks then the user presses R key 246. This causes the central processing unit 110 to complete the process of entering the initial tank set up parameters. At this time the display 130 generates the user prompt "Ready-Function?" In this state the electronic tank level monitoring device 100 is in a mode for receiving another input command for another type of operation.
In the event that the user desires the apparatus to determine the electronic tank level monitoring device to determine the liquid level in the tank, equivalent to obtaining a manual stick reading, then the user responds to the "Ready-Function?" prompt by pressing the function key F1. Central processing unit 110 then enters a subroutine for measurement of the distance to the liquid level. Central processing unit 110 causes display 130 to display the user prompt "Tank Number?" In response to this user prompt the operator enters the digits of the tank number via digit keys 242 and subsequently presses the function key F1. As explained above if the operator inadvertently enters the wrong digit, the display can be cleared for re-entry by pressing the C key 248.
Central processing unit 110 then causes display 130 to generate the user prompt "Sensor In Place? " The user responds to this user prompt by setting the fill pipe head device 210 in proper position over the fill pipe. As noted above, this ensures that the transducer 117 is in proper position relative to the fill pipe for the depth measurement. The operator then responds by pressing R key 246, indicating that the sensor is in proper position.
Central processing unit 110 refers to a program stored within program memory 132 to control the process of measuring the depth of the liquid level within the tank. Firstly, central processing unit 110 causes transmit pulser 116 to control transducer 117 to generate a ultrasonic sound pulse which is directed down the fill pipe. Transmit pulser 116 is employed because in a typical transducer 117 would require a greater peak power during transmission than ordinarily can be supplied by the power supply of electronic liquid level monitoring device 100. Accordingly, transmit pulser 116 preferably includes some form of energy storage device, such as a capacitor, in order to enable supply of the peak power required by transducer 117. In accordance with the preferred embodiment of the present invention, transducer 117 operates at a frequency of 40 kilohertz and is triggered to generate a burst of 16 cycles when triggered by transmit pulser 116.
At the same time central processing unit 110 triggers transmit pulser 116, a real time clock is begun. Transducer 117 generates an electrical signal indicative of a return echo corresponding to its transmitted ultrasonic pulse. This indication of the return pulse is supplied to central processing unit 110 which thereupon stops the elapsed timer. This elapsed time corresponds to the distance from the fill pipe head 210 to the liquid level within the tank.
In accordance with the preferred embodiment of the present invention the computation of the liquid depth employs a correction factor corresponding to the temperature. Internal temperature sensor 133 generates an analog indication of the ambient temperature. Internal temperature sensor 133 is preferably a temperature sensitive resistor in a voltage divider circuit driven by a stable voltage. The voltage across internal temperature sensor 133 is thus an analog indication of the ambient temperature. This analog indication of the ambient temperature is applied to analog-to-digital converter 132. Analog-to-digital converter 132 generates a digital signal indicative of the temperature measured by internal temperature sensor 133 which is suitable for use and computation by central processing unit 110. This computation occurs in accordance with the following equation:
where CD is the distance to be computed in meters; t is the return echo time interval in seconds; and C is the measured temperature in degrees Celsius. If the computed distance CD is desired in inches rather than in meters then the computed distance in meters can be multiplied by 39.37 to obtain the computed distance in inches
Central processing unit 110 preferably performs a plurality of such measurements in order to take into account any deviations in the measured distance caused by ripples or waves within the liquid in the tank. In accordance with the preferred embodiment the central processing unit 110 is controlled by the program within program memory 134 to take three such measurements initially. If the three measurements vary by no more than 1% then the average of these three time measurements is employed in the distance computation. If these three readings differ by more than 1%, then a second set of three such readings is taken. If this second set of three readings deviate by less than 1%, then this second set of readings is employed in the distance computation. If the variation in this second set of three measurements is greater than 1%, then a third set of three such measurements is taken. Likewise if the measurements in this third set deviate by less than 1%, then the average of these three measurements in the third set is employed in the computation of the time. If, however, the variation in this third set of three measurements is greater than 1%, then a differing average is taken. Firstly, the highest and the lowest time readings of the nine time readings are excluded and an average is taken from the remaining seven readings. This average is then employed in the distance computation noted above.
At the end of this process the central processing unit 110 is programmed to generate a set of three tones via beeper 114. This set of three tones alerts the user that the distance measurement has been completed by the electronic tank level monitoring device 100. After this time central processing unit 110 causes display 130 to generate a display of the computed distance calculated as noted above. At the same time that this computed distance is displayed to the user via display 130, central processing unit 110 also stores this computed distance within memory 136 at a location corresponding to the previously entered tank number. The user acknowledges receipt of the stick reading by depressing R key 246. This causes the central processing unit 110 to display the initial prompt "Ready-Function?" on the display 130, and enter a state ready for the next operation.
Table 3 indicates the interaction between the apparatus and the user upon calculation of the volume of liquid within the tank. In response to the initial user prompt "Ready-Function?" the user actuates the function key F2. This causes central processing unit 110 to enter a subroutine liquid for computation of the volume of liquid within a tank. Central processing unit 110 next causes display 130 to enter the user prompt "Tank Number?." The user responds by entering the tank number via digit keys 242 and then pressing function key F2. As in the previous case if the user desires to cancel the entry and start again he may do so by pressing the C key 248. Central processing unit 110 next causes display 130 to generate the user prompt "Sensor In Place?." The operator responds by placing the fill pipe head device 210 in proper location on the fill pipe and pressing the R key 246. At this time central processing unit 110 controls transmit pulser 116 and receives signals from transducer 117 in order to measure the length from the top of the fill pipe to the liquid level. This process takes place as previously described above in conjunction with the description of the taking of a stick reading and is illustrated in brief in Table 3 below. Using this computed distance and the previously stored tank parameters for the designated tank number, central processing unit 110 calculates the volume in the tank.
The computation of the volume of liquid in the tank takes place in the manner illustrated in the program listed below in Table 4. Line numbers 100 to 160 set the variables in this computation equal to the previously stored tank parameters for the selected tank number. Line numbers 170 to 200 set the radius equal to half the diameter, set the value of the constant PI and convert the tilt angle from degrees into radians. This conversion from degrees to radians is necessary for the trigonometric computations appearing later. Line numbers 210 to 430 are the computation of the volume of the tank. Of special note is line numbers 310 to 380. This set of lines is a discrete integration loop to take into account the effect of tilt angle of the tank on the depth and the resultant volume of the liquid in the tank. Also note, line number 400 in which the volume is corrected by a conversion factor F. This conversion factor is selected differently for English units (inches and gallons) than for metric units (meters and liters).
Electronic liquid level monitoring apparatus 100 can also be employed to calculate a five-day running variance in the liquid level. This process is outlined at Table 5. At the primary user prompt "Ready Function?" the user selects function key F4. Central processing unit 110 then causes display 130 to request the tank number via user prompt "Tank Number?". The user then enters the tank number via digit keys 242 and presses the function key F4. Central processing unit 110 next causes display 130 to request the volume delivered to the tank via the prompt "Volume Delivered?" The user enters the units used in the present unit via digit keys 242 and then presses function key F4. Central processing unit 110 next causes display 132 request a water reading via the user prompt "Water Reading?" The user responds with numbers via digit keys 242 and then presses function key F4. Central processing unit 110 then causes display 132 to ask if the inputs are correct via the prompt "Inputs Correct?" The user presses R key 146 if the entries are correct and C key 248 if he desires to re-enter one or more of the entries. If the C key 248 is entered, the central processing unit 110 repeats the prompts from the request for the tank number.
Central processing unit 110 then calculates the variance as follows. The variance equals the previous days' volume plus deliveries since the previous day minus the current volume. This variance is then stored in data memory 136 at a location corresponding to the previously selected tank number. If there are no leaks or inflows into the tank, then this variance should be zero each time it is measured. Due to inaccuracies in the measurement of the volume and in the measurement of liquid inflows and outflows, the variance will typically be a value near zero which may oscillate between positive and negative numbers. In the event that the variance is a positive number, then the tank is leaking. In the event that the variance is a negative number, then the tank is experiencing a net inflow. Central processing unit 110 causes display 130 to output this variance via display 130. The user may then request the variance calculation for the next tank by pressing the function key F3. Central processing unit 110 is preferably programmed to store a five-day rotating set of variance figures replacing the oldest with the newest calculated variance figure within data memory 136 at memory locations corresponding to the selected tank number.
FIG. 1 illustrates external temperature sensor 150. External temperature sensor 150 is employed in a short term leak determination. This short term leak determination requires that the user place external temperature sensor 150 into the liquid, typically in a position midway within the volume of the liquid. The external temperature is then measured via external temperature sensor 150 through analog to digital converter 132. External temperature sensor 150 is then disconnected, which automatically reconnects internal temperature sensor 133. Then a volume measurement is taken via electronic tank level device 100 in a manner previously disclosed. At some later time, typically between two and 24 hours later, the same procedure is repeated. However, at this time the liquid temperature measured by the external temperature sensor 150 may be different. The short term variance is calculated as follows:
where Vr is the calculated volume variance, T1 is the first measured temperature, T2 is the second measured temperature, Volume 1 is the first measured volume, Volume 2 is the second measured volume, and FTn is the volumetric coefficient of expansion of the liquid in the tank. The volumetric coefficient of expansion factors for typical liquids for which the electronic tank field monitoring device would be employed are given below in Table 6.
Program memory 134 preferably includes a subprogram for exchange of data between the electronic liquid level monitoring apparatus 100 and an external device via modem 138. In particular it would be highly useful to be able to transmit to an external device, such as a computer, the daily volume measurements and the variance measurements for a plurality of storage tanks. This would involve the transmission of data from data memory 136 to modem 138 via bus 120 and hence via a communications medium (not shown) to the external computer. This external computer could then be programmed to provide periodic reports on the status of the storage tanks. For example, this system could be used to monitor the level of the storage tanks for reordering to refill the respective tanks as they are emptied. Alternately, the external computer could provide long term leakage reports that may be required by regulatory authorities.
As a further embodiment, the modem 138 can be used to transmit program changes to the electronic liquid level monitoring apparatus 100. Program memory 134 can be provided with a subprogram to receive program instructions from an external device via modem 138 for storage in program memory 134. For example, the apparatus could be initially programmed to make stick measurements only. If the user desires to up grade the capacity of apparatus 100, then additional program instructions would be stored in program memory 134 which are supplied from a communications medium (not shown) to modem 138 and stored in program memory 134 via bus 120. Standby power supply 135 insures that program memory 134 retains this new program even when the main power is turned off via main power switch 250. In the preferred embodiment the electronic liquid level monitoring apparatus 100 is programmed in the following modular steps: (1) stick measurement only; (2) stick measurement and volume computation; and (3) stick measurement, volume computation and variance computation. By this means a single hardware apparatus can have a variety of functions depending upon the particular programming supplied.