<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Non linear Tank volume </title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/add2b89b9e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/add2b89b9e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/add2b89b9e/</id><updated>2023-04-30T11:58:35.773000Z</updated><subtitle>Recent posts to Non linear Tank volume </subtitle><entry><title>Non linear Tank volume </title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/add2b89b9e/?limit=25#0035" rel="alternate"/><published>2023-04-30T11:58:35.773000Z</published><updated>2023-04-30T11:58:35.773000Z</updated><author><name>fajean</name><uri>https://forge.codesys.com/u/fajean/</uri></author><id>https://forge.codesys.comd06566d43726dbceb61a855f75157f9f9ecf76e4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If the relationship between level and volume is amenable to it, one thing you can do is to use software that can perform a regression to get a a formula that approximates volume as a function of the level (Excel graphs can do that).  Then, instead of a lookup table, you just perform a direct calculation. It makes for more concise code.&lt;/p&gt;
&lt;p&gt;Obviously, you need a different formula for each tank geometry, but the same is true with lookup tables (or at least their content).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Non linear Tank volume </title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/add2b89b9e/?limit=250#d4f8" rel="alternate"/><published>2023-04-28T09:47:21.257000Z</published><updated>2023-04-28T09:47:21.257000Z</updated><author><name>dkugler</name><uri>https://forge.codesys.com/u/dkugler/</uri></author><id>https://forge.codesys.comdb1f78a53b233b71151d169ca88ad42c1d91c7c8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I think you will have to build this function by your self. I would try to use the FB LIN_TRAFO from the Util lib.&lt;br/&gt;
Create a 2D array (table with 2 column) with sensor values and depending volume values.&lt;br/&gt;
Set the min values of the input and output of the lin_trafo fb with the values from the array index next below the actual sensor value.&lt;br/&gt;
Set the max input/output values of the lin_trafo fb to the values from the array index next above the actual sensor value.&lt;br/&gt;
So your tank will be divided into several linear volume parts. Good luck!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Non linear Tank volume </title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/add2b89b9e/?limit=25#5f85" rel="alternate"/><published>2023-04-25T09:45:14.328000Z</published><updated>2023-04-25T09:45:14.328000Z</updated><author><name>snhatton</name><uri>https://forge.codesys.com/u/snhatton/</uri></author><id>https://forge.codesys.com3e45957445d13461a25415c9d4e0f043f63e13e4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, &lt;/p&gt;
&lt;p&gt;I hope you are doing well. Here is a similar discussion topic posted in Forge that I think can help you: &lt;a href="https://forge.codesys.com/forge/talk/Engineering/thread/aa5f2f9294/."&gt;https://forge.codesys.com/forge/talk/Engineering/thread/aa5f2f9294/.&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;I hope this helps!&lt;/p&gt;
&lt;p&gt;Regards, &lt;/p&gt;
&lt;p&gt;Shawn&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Non linear Tank volume </title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/add2b89b9e/?limit=25#1232" rel="alternate"/><published>2023-04-24T22:27:20.877000Z</published><updated>2023-04-24T22:27:20.877000Z</updated><author><name>irshad</name><uri>https://forge.codesys.com/u/irshad/</uri></author><id>https://forge.codesys.comf372ec859de8a3e00e1975e3761a351d0c34dbec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, &lt;/p&gt;
&lt;p&gt;Can you please help me to have volume of Non linear tank from 4-20mA ?&lt;/p&gt;
&lt;p&gt;Is there any tabular options in ladder logic&amp;gt;?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>