Tank Volume in PLC and HMI

Norm,
You are correct the 3rd order equation was much closer. It is only about 0.5% off at 131". That is much better. Actually it is much better through out the curve. I just figured that the higher the order the better the curve. Thanks Norm!!

Lance,
Thanks for the info on how to look at the curve much better. I figured there would be some errors especially at the ends of the curve. I just couldn't see it until you told me about it.

A 3rd order equation looks like it will do the job within the accuracy I need. A big thanks to Tom for showing us all how to use this feature in Excel. It is very powerful!! And a big thanks to you Lance for doing a lot of leg work on this.
 
+1 Tom
+1 Excel

I have done similar things when I was doing Digital filter design. It really came in handy when trying to figure out what was wrong when using fixed point programming.
 
I only scanned through this but has anyone mentioned using simple piecewise function?

I have several AOIs I wrote for different shaped tanks that do this.
 
I only scanned through this but has anyone mentioned using simple piecewise function?

I have several AOIs I wrote for different shaped tanks that do this.

Luke,
Would you mind expanding on this?
 
Luke,
Would you mind expanding on this?

Sure thing...

The Anderson level sensors we typically use measure inches of column...so from the tank drawings or from actual measurements create piecewise functions that calculate volume based on the shape of the tank. For example, a tank I calibrated recently had a dished bottom. The dish was 4 inches deep and had a radius of 128". so for the first 4" the volume is calculated using the volume of a dome with radius of 128". above 4" volume is calculated using the volume of a cylinder. Then there is also a specific gravity offset to compensate for different liquids that might be put into the tank.
 
Lance,
Thanks for the info on how to look at the curve much better. I figured there would be some errors especially at the ends of the curve.
Comparing your DIP Chart to the calculated gallons for an ideal horizontal cylindrical tank with flat ends, it appears that your tank has more of an eliptical cross-section instead of a perfect circle. See the attached spreadsheet. I believe that this is typical for real-world tanks, and one reason why a measured Dip Chart is usually more accurate than a calculated volume based on an ideal shape.
 
Last edited:

Similar Topics

Hello, all. I’ve worked with totalizers based on a flow meter. However, I am trying to use ladder logic on totalizing a tank based on volume. I...
Replies
1
Views
1,137
Hi Everyone, Got a new project where I am going to read the level of a tank via Modbus and I need to use the tank strapping chart to convert it to...
Replies
8
Views
2,531
Hello PLCS.net! I wanted to ask someone who has experience in this. How does one do fluid level measurements if it's a safety/environmentally...
Replies
7
Views
2,175
Hi experts I got a last minute surprise when the customer told me that the tank is not uniform I already have program which show this on scale...
Replies
19
Views
9,277
Hi Everyone, I am trying to compute the tank volume vs level on a horizontal LP tank (capsule tank). I searched the forum and found a nice post...
Replies
4
Views
2,554
Back
Top Bottom