Welcome to this video on "See the light: Easy wins to improve your asset framework experience".
We have now done five of the six issues that the engineer picked up when we were going through
our development that we've done in PI Vision and asset framework. First one being that FFS
0-5 didn't appear as a asset in PI Vision so we applied the template and that fixed that. The
second issue he had was that the sugar grain size readings for form fill and seal machines three,
four and six were identical this is because they'd been built using allow extensions and a copy
paste. The copy paste is what led to the issue so we disallowed extensions and based the sugar
assets off of a derived template that took care of the naming pattern and all of that configuration.
The third issue was that we had the incorrect units of measure applied to our sealer temperature
so we went and told asset framework that the data coming in was in Celsius and needed
to be displayed in Fahrenheit. The fourth issue is the one that saved us the most time going
forward where we used parameterize queries in our asset framework table and we moved
from importing 300 thousand rows and we are now only import the rows that actually get queried.
And then the fifth issue that we had which was in our last video we had a typo with MF
Tecno on form fill and seal machine number four and that led to us not being able to
see the max throughput, the nominal max throughput for that device. So what we did
is we applied an enumeration set and took the possibility of a human spelling the
name of the asset incorrect and we just created a drop-down list to work from.
Now our sixth issue wasn't so much a problem with the development in asset framework,
it was more the way the display was built. So we'll go ahead and open up PI Vision and
we have this display called sandbox underscore FFS underscore monitoring
underscore faulty title. So go ahead open up that display and the issue here was
that FFS 0-4 is packing sugar even though we are looking at the information for FFS 0-1,
hovering over any of our assets will show us that we are currently looking at FFS 0-1 model or FFS
0-1 throughput efficiency. We want to make it so that the title changes whenever we switch assets
Now the way to do that is each of these parameters the FFS 0-4,
the sugar and the packaging need to come from a variable in AF. So if we have a look
here we could say FFS 0-4 could come from an attribute called asset, the sugar or salt could
come from an attribute named product and then the packaging could come from maybe what production,
what part of the production line it's on. So we can just jump into AF and PI System
Explorer and make sure we have those variables available for us. So looking at FFS 0-1 for asset
we have FFS 0-1 product we can see a salt and production line is packaging. So we are going
to use these three variables in our display to make a title that updates when we change assets.
Now all three of these pieces of information are coming from a data reference which are
string builder there is a little bit of a lesson after this video that's probably a
good idea for you to read through just to familiarize yourselves with the way string
builder works. Going into PI Vision again if you want to edit a display we change
across to edit mode, so we'll modify the display. Currently we working with
asset FFS 0-5 so when we navigate through our hierarchy we want to select FFS 0-5.
Okay, and these fields here are currently set as just straight text so if I want I could format
the text to type in what I wanted to say. I'm going to delete this just by hitting the Delete
key and then we're going to build up the name using variables. So I'll take asset and drag
asset onto the screen. I don't want it as a trend which is the way it's what it's going to do now;
so I can cancel that application and select value. By dragging the asset on as a value,
I can see I've got the name which is FFS 0-5 part asset, the actual value and the time.
Now the name of the variable and the time aren't important to me so I can right click
format the value and in my visibility I can turn off the label, the units, and the time
stamp. So all I want to see is the value I've dragged it into position and I can resize it.
Okay, so I've put that there and just to test it if I go to unit 4;
great it updates. Now what we want to do is the same with the product in the production
line and I could do that process all over again or I can just hit CTRL-C to copy and
paste it twice. Okay and now instead of this referring to the assets I want this to be what
product we're working with and this is going to be which production line we are working with. I
can position the three of them and then in order to make it a little bit neater I can select one,
two and three. In this arrange window I can align the middles, be very careful you don't
align centers here because that'll overlay them all on top of each other. So I align the middle
and then I can also distribute them horizontally. And that'll put all three of them equally spaced.
If I save this and exit my build mode I'm now able to change from FFS 0-5 which is packaging sugar to
FFS 0-1 which is a salt packaging station. Now like we said this isn't a particularly
a problem with the asset framework it was just with the way the display had been built but it
is always a best practice to have information around your assets incorporated it into your
variables. So that when you do want to build the display you can say based off of my assets,
my product and my production line I would like to see what assets I'm working with on my display.
With that we have solved the six issues the engineer was asking us about and in the
next couple of lessons there's some exercises for you to read through,
just with information on the string builder we talk about categories a little bit,
which is how asset framework organizes the the variables and how you see them in PI Vision. And
then there will be a recap of what the issue was and what best practice was applied to solve it.
Once you've gone through those pages and read them we are going to work
a little bit with asset analytics where we will show you a couple of
best practices when it comes to building out analytics in your asset framework.