Active generator counter

Hi Guys,

I have a digital status attribute “Active” and “Inactive” for each generator, I want to make a plant attribute that tells me how many generators I have active.

I would like it to be an analysis template because I have 3 different plants with different amount of generators each one and the 3 are made with the same template. How could I make this analysis?

 

Thanks in advance

Parents
  • This will largely depend on the structure of your generator attributes. If they are all in the same Element it is as simple as creating an analytic in the respective template and adding all the tags together. If the tags themselves are digital, then you will need to add an additional logic step of {if tag = "ON" then 1 else 0}. If it is an analog tag with an enumeration set in AF you can just add them all together (assuming 1 = ON).

    If you have your generators spread out across various elements for a given plant, I would recommend then doing a Rollup expression where you can search for the generator attributes either by template or name, again depending on your overall hierarchal structure.

    Rollup is the cleanest and easiest method assuming your structure is set up for it. I would also recommend doing some research on Youtube for PI Asset Analytics. You will find plenty of OSI created training videos. You will find plenty of examples doing this exact thing.

    -Philip Babb

    Industrial Insight

Reply
  • This will largely depend on the structure of your generator attributes. If they are all in the same Element it is as simple as creating an analytic in the respective template and adding all the tags together. If the tags themselves are digital, then you will need to add an additional logic step of {if tag = "ON" then 1 else 0}. If it is an analog tag with an enumeration set in AF you can just add them all together (assuming 1 = ON).

    If you have your generators spread out across various elements for a given plant, I would recommend then doing a Rollup expression where you can search for the generator attributes either by template or name, again depending on your overall hierarchal structure.

    Rollup is the cleanest and easiest method assuming your structure is set up for it. I would also recommend doing some research on Youtube for PI Asset Analytics. You will find plenty of OSI created training videos. You will find plenty of examples doing this exact thing.

    -Philip Babb

    Industrial Insight

Children