Linear interpolation between two arrays for volume calculation starting from the level
Hello everyone, I should calculate the volume starting from the level. I have a Level / Volume table with all the corresponding values. How can they make an interpolation between the level value and the volume value. Thank you
What type of PLC ? In AC800M use "PiecewiseLinearCC" or PiecewiseLinearReal". If you're not using AC800M then my crystal balls are broken and you'll have to take a wild ass guess what the function is called in your PLC.
Use Excel and enter your values in two columns (V and L) Then create a graphic V = f (L) where L is X series and V is the data. Add a trend line (polinomial with order 3 or 4) änd mark trends's checkbox "Display equation on chart" From my experience 3-rd or 4-th stage of polynom for the trend line is OK. Increase number of decimals for equation if necessary.
Take the equation and put it in your logic in order to calculate the volume from level.