How-To Guides
Analytics Guides
Use the Manufacture Counter KPI
6min
you can use the manufacture counter kpi processor to count the total number of manufactured units in a period for this kpi, you need to add an input definition called manufactureend to the connecting wire, which is an event trigger, triggering whenever there is an end of a manufacturing cycle user scenario review the following scenario for the manufacture counter kpi processor then, using an input processor, you will simulate plc data and monitor how much output is being produced compared to an ideal scenario in an industrial setting, the manufacture counter kpi helps ensure quality control and maintain optimal production levels with this kpi, plant engineers can compare actual output with ideal scenarios or identify anomalies that may indicate equipment maintenance needs for instance, if a machine is supposed to produce 100 bottles per hour but is currently only producing 80 bottles per hour, it indicates that the machine is operating at 80% of its capacity this analysis helps prevent overheating and potential breakdowns in machinery 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 int64 polling interval enter 1 tag name enter tag1 min value enter 10 max value enter 100 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 manufacture counter kpi 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 manufacture counter processor the following information defines this function unit enter the time unit in which you are entering the ideal count parameter ideal count enter the total number of manufacturing units produced at regular intervals from value start a manufacturing unit when the value goes from this number to value record a manufacturing unit when the value goes to this number 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 tag1 ) to the manufacture counter processor with a wire use the events connection and enter a definition of manufactureend 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 manufacture counter kpi processor to view the output values the output displays a capacity utilization of 54% , with a total number of 925 manufactured units at the given timestamp note capacity utilization will be updated upon the occurrence of a manufacturing event otherwise, it will be updated when the threshold for the hour/day/week is reached (determined by the ideal count and unit parameter)