How-To Guides
Analytics Guides
Use the Maintenance and Failure KPI
7min
the maintenance and failure kpi mainly deals with the maintenance event and a fault/failure event in a production cycle for this kpi, two input definitions are required maintenance and failure these are event triggers, indicating the event of the maintenance cycle and the discovery of a failure event, respectively user scenario review the following scenario for the maintenance and failure kpi processor then, using an input processor, you will simulate plc data and calculate total maintenance events per cycle total failure events per cycle time since last maintenance time since last failure timestamp of last maintenance timestamp of last failure in a manufacturing setting, the maintenance and failure kpi can be used to monitor the performance of production machinery for example, in a bottling plant, this kpi can track the number of maintenance events and machine failures during the production cycle by analyzing this data, the plant can determine the average frequency of maintenance, identify any trends in machine failures, and schedule preventive maintenance to reduce downtime this helps in optimizing production efficiency and minimizing disruptions step 1 add a device follow the steps to connect a device docid\ ish7bqhzxswtdx8vbnszb 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\ xgwokqbtpevii7or82ll0 to learn more tag 1 maintenance name select s random value generator value type select float64 polling interval enter 1 tag name enter maintenance tag 2 failure name select s random value generator value type select float64 polling interval enter 1 tag name enter failure 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 maintenance and failure processor function in litmus 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 tag1 maintenance click save repeat steps 2 5 to add another datahub subscribe processor for the failure tag click add processor again and select the maintenance and failure processor the following information defines this function maintenance from & maintenance to if your input changes maintenance from value to maintenance to value, it will trigger a maintenance cycle failure from & failure to if your input changes failure from value to failure to value, it will trigger a failed cycle unit enter the time unit to display time since last maintenance or failure event timeinterval 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 maintenance ) to the maintenance and failure processor with a wire use the events connection and enter a definition of maintenance for the connection repeat step 8 for tag failure and enter a definition of failure for the 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 maintenance and failure processor to view the output values