Use the Manufacture Counter KPI
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.
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.
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 int64.
- Polling Interval: Enter 1.
- Tag Name: Enter tag1.
- Min Value: Enter 10.
- Max Value: Enter 100.
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 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.
- 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:
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).