How-To Guides
Analytics Guides

Use the Asset Online Percentage KPI

6min
the asset online percentage kpi is a simple ratio of the time the tag has been online versus how long it has been running this is also indicated by the success field in the incoming message from the tag user scenario review the following scenario for the asset online percentage kpi processor function then, using an input processor, you will simulate plc data and calculate assets online in percentage with the current timestamp in a manufacturing facility, the asset online percentage kpi is needed for monitoring the performance of automated assembly lines if the machine was only online for 8 hours out of 10, then it was online 80% of the time by using this kpi, engineers can identify patterns of downtime and proactively schedule maintenance to prevent costly breakdowns step 1 add a device follow the steps to connect a device docid\ nm1lqfefya dsiffitity and configure the following parameters device type simulator driver name generator enable alias topics select the checkbox step 2 add tags after connecting the device, add the following tag see add tags docid\ h5heqicxrcy3nch9kbg9i to learn more tag 1 name select s random value generator value type select float64 polling interval enter 1 tag name enter tag01 step 3 create analytics flow you can now create the analytics flows using data from the device and tag you previously created to create an analytics flow with the asset online percentage processor function in manufacturing connect edge, navigate to analytics on the analytics canvas, click add processor the create a processor dialog box displays select datahub subscribe in the topic field, click the search icon, select the device you previously created, and then select the alias topic for tag01 click save click add processor again and select the asset online percentage processor the following information defines this function start hour time to start calculating the asset online percentage end hour time to end calculating the asset online percentage time interval if the tag publishes at the expected interval, it is better to disable this timer by entering 0 in the field click save connect the datahub subscribe processor (tag tag01 ) to the asset online percentage processor with a wire and use the events connection on the analytics canvas, click save the configured analytics flows should look like the following step 4 view output of processor click the view icon in the asset online percentage processor to view the output values the output describes a situation where the machine was online for 7 9% of the time in the 24 hours