I try to create a calculated tag with a performance equation like: "IF IntrumentTag("xxx") = xx AND TagXYZ = yyy THAN ....".
Is it possible?
MAny thx in advance
Right now there is no Performance equation to pull the instrument tag for a PI point, you can vote on an enhancement request h ere.
It is possible to create an attribute with a NONE data reference and manually enter the instrument tag as the value of the attribute. Another thing you could do is install PI OLEDB and import the pipoint table with the required tag parameters for the desired tags and then create table lookup attributes to get the instrument tags from the table.
Out of curiosity what are you trying to calculate? Just wondering what's the use case for pulling in the instrument tag in a calculation.
I want to interpret a value of on an intrument tag based on a condition. Well, one option is to create two tags. One to get the value from an instrument tag and one for the caculation, but I want to save tags and effort to create,because I need around 1000 calculations.
The Best way to do it is, configure a process tag for your instrument tag (Source tag). Say for example Tag1.PV that will get the values as per the instrument tag.
You need to create a calculation tag based on your condition using PI Analysis and store the output result to the separate tag say Tag1.Calc.
This is the standard practice we are all following.
Im still not sure I understand what you are doing. Since the value of the instrumenttag will not change, this would be a one time calculation or are you also using dynamic variables in there. Because, if the goal is a one time calculations, bringing the value via Excel or Powershell may be an easier alternative.
An alternative would be to use Asset Analytics and store the result in an attribute with an Analysis Data Reference. This would avoid costing you an additional tag. However, be mindful that the Analysis Data Reference should only be used for simple lightweight calculations.
Retrieving data ...