How-To Guides
Analytics Guides
Use the Compliance and Loss KPI
7min
the compliance and loss kpi mainly deals with manufactured units and defective units for this kpi, two input definitions are required manufactureend and defectiveunit these are event triggers, signifying the end of the manufacturing cycle and the discovery of a defective unit, respectively when the input tag associated with the defectiveunit goes from one value to another, it indicates that the unit was defective the compliance rate is calculated by subtracting the number of defective units from the total manufactured units the loss percentage is defined as the ratio of defective units to the total manufactured units user scenario review the following scenario for the compliance and loss kpi processor then, using an input processor, you will simulate plc data and calculate the compliance rate and production loss in a manufacturing setting, the compliance and loss kpi is essential for monitoring product quality for instance, a production manager can use this kpi to identify manufacturing issues and ensure product quality for example, if 40 out of 100 products are defective, it indicates a 40% production loss, prompting the need for process improvement to maintain high quality standards 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 manufacture name select s random value generator value type select float64 polling interval enter 1 tag name enter manufacture tag 2 defective name select s random value generator value type select float64 polling interval enter 1 tag name enter defective 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 compliance and loss 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 manufacture click save repeat steps 2 5 to add another datahub subscribe processor for the defective tag click add processor again and select the compliance and loss processor the following information defines this function defective from & defective to if your input changes defective from value to defective to value, it will trigger a defective unit manufacture from & manufacture to if your input changes manufacture from value to manufacture to value, it will trigger the end of the manufacturing cycle 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 manufacture ) to the compliance and loss processor with a wire use the events connection and enter a definition of manufactureend for the connection repeat step 8 for tag defective and enter a definition of defectiveunit 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 compliance and loss processor to view the output values the output displays the calculated compliance rate and production loss using data from the previously created device and tags