Use the Asset Online Percentage KPI
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.
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.
Follow the steps to Connect a Device and configure the following parameters:
- Device Type: Simulator
- Driver Name: Generator
- Enable Alias Topics: Select the checkbox.
After connecting the device, add the following tag. See Add Tags to learn more.
- Name: Select S - Random value generator.
- Value Type: Select float64.
- Polling Interval: Enter 1.
- Tag Name: Enter tag01.
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:
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.