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 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 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:

  1. In Manufacturing Connect Edge, navigate to Analytics.
  2. On the analytics canvas, click Add processor. The Create a processor dialog box displays.

    The Add processor option
    The Add processor option
    
  3. Select DataHub Subscribe.
  4. In the Topic field, click the Search icon, select the device you previously created, and then select the alias topic for the tag1.

    Create a Processor dialog box
    Create a Processor dialog box
    
  5. Click Save.
  6. 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.

      Edit a Processor dialog box
      Edit a Processor dialog box
      
  7. 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.
  8. On the analytics canvas, click Save.

The configured analytics flows should look like the following:

Flows Canvas
Flows Canvas


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).

Output of Manufacture Counter processor
Output of Manufacture Counter processor