Horizontal Round Cylinder Tank Volume Formula

Palm Beacher

Member
Join Date
Dec 2016
Location
Palm Beach, Florida
Posts
5
Hi All,

It probably has been discussed before....but...

My PLC is a AB L71 Processor (RSLogix5000 v20)

I have a Horizontal Round Cylinder Tank with Flat Ends.
I know the Length (864") and Diameter (94") and Radius (47") of the tank, and I have a
level transmitter to give me the height of the liquid inside in inches.

What formula do I use in my PLC to calculate the Volume inside
the tank.??

Thanks for your help,
Palm Beacher
 
Last edited:
It is a complicated formula which you can easily find using Google. However, it requires a PLC with inverse trig functions in its instruction set. Lacking that, most implementations calculate the volume at different depths and use those values as breakpoints for a lookup table, with linear interpolation for depths between the breakpoints.
 
The attached spreadsheet includes an empirical formula that give the volume as a fraction of the total volume. It can be executed on any PLC with four function math.
 
The attached spreadsheet includes an empirical formula that give the volume as a fraction of the total volume. It can be executed on any PLC with four function math.

That's great! Thank you!

I was kind of bored, so I had to try and calculate the deviation between this and the more "advanced" formula in an ABB AC800M. Maximum deviation I got between formulas was only 0.6 percentage points [abs]. And then I'm not sure how accurate the "advanced" formula in that controller actually is..
 
Last edited:
To be honest, given the lack of detail provided, your post looks like a homework assignment.

But here goes anyway...

Whilst the maths may require inverse trig functions, none of the formulae are that complicated for a simple cylinder with flat ends.

But I have to make the point that working from the stated (or even measured) tank dimensions is not going to give the best accuracy. Very rarely are tanks perfectly "cylindrical", very rarely are they the diameters specified on the design drawings, and things do get massively complicated with dished ends, tilted tanks, conical bottoms, and "inclusions" such as mixer paddles, heat-exchanger coils etc.

In your case you haven't specified whether your tank is tilted, most are, and where the height transducer is located (which does make a difference if the tank is tilted).

If accuracy is important (critical in some industries), then there are 2 methods which can produce accurate results.

1. mount the vessel on load cells, and use the weight to determine the volume. The PLC simply has to determine volume dependent on the density of the contents. Of course this is only applicable to contents that have a constant density (weight per volume).

2. produce a "dip-table" by filling through a certified flowmeter, recording the liquid height at predetermined intervals. This method is independent of the density of the product. Concentrate more readings where the height changes most rapidly versus height. The PLC can then interpolate between the "above" and "below" readings using a look-up algorithm. The more readings (intervals) in the dip readings, the more accurate the final result.
 
Since my last days of schooling was 43 years ago sonny...
I don't know why you think everything is a "homework" assignment.
Just trying to get my tank reading correctly.
See attached CPT

H2SO4 Tank Volume CPT.jpg
 
Since my last days of schooling was 43 years ago sonny...
I don't know why you think everything is a "homework" assignment.
Just trying to get my tank reading correctly.
See attached CPT

Often, when someone has a very low post count and their first post is a math problem, it's a student looking for someone to do their homework for them (usually with little effort on their part). We try to encourage them to learn for themselves. It isn't necessarily a judgment, probably at least partially a warning to the rest of us helpful folks to give you lots of useful info but maybe not the whole answer in one go.
 
That's great! Thank you!

I was kind of bored, so I had to try and calculate the deviation between this and the more "advanced" formula in an ABB AC800M. Maximum deviation I got between formulas was only 0.6 percentage points [abs]. And then I'm not sure how accurate the "advanced" formula in that controller actually is..

The level transmitter probably isn't better than +/- 0.6% accurate. And there are the potential errors that daba pointed out.

However, there are two techniques you can use if you need more accuracy. First, open the spreadsheet. You can right click on the formula shown on the graph and increase the order of the polynomial from 3 to 4 or 5 or .....

If you double click on the formula and go to the number parameter you can increase the decimal places to whatever suits your fancy.
 
The level transmitter probably isn't better than +/- 0.6% accurate. And there are the potential errors that daba pointed out.

However, there are two techniques you can use if you need more accuracy. First, open the spreadsheet. You can right click on the formula shown on the graph and increase the order of the polynomial from 3 to 4 or 5 or .....

If you double click on the formula and go to the number parameter you can increase the decimal places to whatever suits your fancy.

Yeah, if I'd ever need more accuracy then that I'd go the way daba describes with either known volume and a piecewise linear function or load cell.

If you use a higher polynomial order, you also have to consider higher order oscillation effects. But I guess this is just theoretical, which is fun from time to time.
 

Similar Topics

Hello, We have a mechanical packaging machine ( horizontal flow pack machine ), which the OEM is no longer supporting the spare parts. The...
Replies
3
Views
2,224
Greetings from all the way down here in New Zealand:-) I have a challenge for you all..... I have a need for a PLC to run a Doser pump to pump...
Replies
34
Views
11,246
Hello All, Looking to see if it is possible to move an image across the screen and back based on tag value? I have a traversing head assembly...
Replies
7
Views
1,512
What keyboard shortcut(s) draw horizontal/vertical lines in the LD environment in GE Machine edition Logic developer?
Replies
0
Views
1,674
Hello all, I'm new to wonderware so please bear with me, I'm currently working on InTouch 9.5 and I wanted to know how I can do a Horizontal...
Replies
0
Views
1,670
Back
Top Bottom