Hi Everybody.

I want to congratulate YOU! Today is 256 day.

And i have a question.

How calculate common weight from month in TANK. Level into tank can be increase, can be decrease. I have conditions then increase - input valve is open, then decrease output valve is open. (in the same time valve can not open). For example Tank install on the weight cell. And i get data in mass measurement.

I know how calculate it with help PI DATA LINK. I can not to make AF calculate. And I do not want to use Event Frame, although may be somebody use and know how Event Frame value move to PI Archive tag. ?

Hello Konstantin,

I have moved your post to All Things PI because it lacked having code to justify being in PI Developers Club.

Do you not have a continuous measurement of tank percent full (or tank percent empty)? Is the only related measurement you receive truly a UOM from the Mass class? I find that odd because short of a tank percent fill, I normally would expect a Volume to know how much liquid is in the tank. It's Mass (or weight) would require knowing more about the density of the liquid.

To calculate a percent level based on Volume requires knowing meta data about the tank. Is the tank shape a cylinder, bullet, or sphere? Is the tank orientation vertical or horizontal? What is the height or length of the tank? What is the diameter or radius? Each answer would require a different set of calculations, some easier than others. Typically for most plants, these calculations would be done at the DCS reading the Volume. Then the PI interface would read that calculated value from the DCS just as if it were an instrument reading.