In the manufacturing world, it is common to visualize how well a particular line by visualizing in simple Gantt charts.

There are much nicer visualization that could be done using PI Vision custom symbols. Better yet, request it as a standard symbol: Event Gantt Symbol – Customer Feedback for OSIsoft & the PI System

In the meantime, here is a simple way to do so using a few tags (each color below is one tag)

Here is the final results as seen in PI ProcessBook

Note: In PI Vision, this can be recreated using a custom symbol. Here is a sample that does similar using the amcharts library: PI-Vision-Custom-Symbols/Community Samples/OSIsoft/amcharts-stringValuesPlot at master · osisoft/PI-Vision-Custom-Symbol…

The way this is organized, is in AF I have a parent asset that represents the line and the child of the Line element is all the possible states the line can be.

The various states of the line are organized in a AF enumeration set, which is used by the "Current State" of the Line element.

Each individual child element will produce one color in the graph above.

Here are the data types and the required attributes. As I don't want to have a template per enumeration set, I use strings instead of enumeration values.

And here is the whole trick to the visualization.

If the state of the line, matches the name of the element, then I will the expression will change the value of View from 1 to 0 or 0 to 1 (True to False and False to True).

That is it!

The analysis does not need to run very frequently, the above graphs is done with 1 minute frequency

The rest of the trick is in PI ProcessBook, to only show values from 0.4 to 0.6 to avoid seeing what happens around 0.

Here is the configuration of the template

Parents
  • Thanks for the info,

    We did quite similar on our end to check our machines status.

    The method used was a little different, but results are similar I guess.

    My status tag get the value sent by the PLC

    I then make a table lookup table to search across the various status possibles in a second attribute.


    pastedImage_0.png_f9ae8551-1708-4abd-bbc3-71ad120b18b5.png

     

    I finally use that Custom symbol in PI vision (same as mentionned above) in order to present the various status description across the timestamp.


    pastedImage_1.png_9d1142dc-89b0-40e3-bdf4-88a572ba859a.png

    We also use this status data to check or Equipment uptime (for a specified period of time) through Analytics where I can regroup wished Status and check the time (TimeGE) while making sure the analytics rate match the TimeGE time-range.

     

    Hope this help or gives Ideas

Comment
  • Thanks for the info,

    We did quite similar on our end to check our machines status.

    The method used was a little different, but results are similar I guess.

    My status tag get the value sent by the PLC

    I then make a table lookup table to search across the various status possibles in a second attribute.


    pastedImage_0.png_f9ae8551-1708-4abd-bbc3-71ad120b18b5.png

     

    I finally use that Custom symbol in PI vision (same as mentionned above) in order to present the various status description across the timestamp.


    pastedImage_1.png_9d1142dc-89b0-40e3-bdf4-88a572ba859a.png

    We also use this status data to check or Equipment uptime (for a specified period of time) through Analytics where I can regroup wished Status and check the time (TimeGE) while making sure the analytics rate match the TimeGE time-range.

     

    Hope this help or gives Ideas

Children
No Data