How-To Guides
Analytics Guides
Use the Uptime and Downtime by Value KPI
6min
you can use the uptime and downtime by value kpi processor to compare your current value with a desired value the kpi sorts them as either uptime or downtime based on the specified condition ( greater(>), less(<), equal(==) or notequal(!=) ) and a delta to round off mistakes user scenario review the following scenario for the uptime and downtime by value kpi processor then, using an input processor, you will simulate plc data and use this kpi to have more detailed knowledge of the time in a manufacturing plant, the plc monitors a critical component with an ideal value of 10 5 if the output drops below 5 or deviates by 0 5 value, it signifies potential issues, triggering downtime for instance, if the output equals 0, it also means downtime the plant manager can use the uptime and downtime kpi processor to analyze these conditions and gain insights into the production line's status this scenario allows for proactive maintenance and operational decisions, ensuring real time visibility and minimizing unplanned downtime 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 tag1 name select s random value generator value type select float64 polling interval enter 1 tag name enter tag1 min value enter 0 max value enter 11 5 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 uptime and downtime by value 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 the tag1 click save click add processor again and select the uptime and downtime by value processor the following information defines this function unit select the time units from the drop down menu to display the uptime/downtime status choose seconds for this user scenario condition select a condition from the drop down menu for comparing the current value to the desired value choose the less than (<) condition for this user scenario desired value enter a desired value to check the current uptime/downtime status use 10 5 for this user scenario delta of tolerance enter a delta of 0 5 to allow for a tolerance of +/ 0 5 from your desired value if you input a delta of 0 , even the smallest change will be detected by this kpi 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 tag1 ) to the uptime and downtime by value 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 uptime and downtime by value processor to view the output values the output will display the message payload with the uptime and downtime value field, disregarding current values within +/ 0 5 of your desired value