How-To Guides
Analytics Guides

Use the SPC Charts Function

6min

You can use the SPC Charts processor function to analyze tag data, assess performance, and ensure adherence to quality standards using statistical process control (SPC) methods.

It calculates key metrics such as the current mean, standard deviation, and process capability (Cp, Cpk, CpU, CpL). Additionally, it evaluates specification limits (USL and LSL), computes performance metrics like Cpm and Cpkm, and flags any violations of Nelson Rules to help you identify trends and potential issues in your manufacturing process.

User Scenario

Review the following scenario for the SPC Chart processor function. Then, you will simulate process data, configure the SPC Chart parameters, and interpret the statistical outputs to monitor and optimize process quality.

In an assembly line manufacturing precision components, maintaining consistent dimensions within specified tolerances is critical for product reliability. Using the SPC Chart processor function, operators monitor the process performance and identify deviations from quality standards. For example, a violation of Nelson Rule 1 flags a critical issue where a measurement exceeds three standard deviations, prompting immediate corrective action.

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

  • Name: Select S - Random value generator
  • Value Type: Select float64
  • Polling Interval: Enter 5
  • Tag Name: Enter Tag1
  • Min_value: Enter 1
  • Max_value: Enter 10

Step 3: Create Analytics Flows

You can now create the analytics flows using data from the device and tag you previously created.

To create an analytics flow with the SPC Charts Processor function:

  1. 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 Tag1.

    Create a Processor dialog box
    Create a Processor dialog box
    
  5. Click Save.
  6. Click Add processor again and select the SPC Charts processor. The following information defines this function:
    • Window Size: Enter the number of values you want the function to consider.
    • Target Mean: This represents the desired average value for the process. It serves as a reference point for evaluating process performance against expectations.
    • Time Interval: Specifies the frequency at which the SPC chart publishes data.
  7. Click Save.

    Document image
    
  8. Connect the DataHub Subscribe processor (tag: Tag1) to the SPC Charts processor with a wire and use the events connection.
  9. On the analytics canvas, click Save.

The configured analytics flows should look like the following:

Completed analytics flow
Completed analytics flow


Step 4: View Output of Processor

Click the View icon in the SPC Charts processor to view the output values.

Before you can see any output, the input window size needs to be filled. After that, the output will include the metrics along with its timestamp.

SPC Charts output
SPC Charts output