CNC Technology & Additive Manufacturing

Chapter 8
CNC Metrology, Quality and Process Capability

Bachelors Program in Mechnical Engineering
CNC Technology & Additive Manufacturing   •   Bachelor

CNC Metrology, Quality and Process Capability

Introduction

Computer numerical control (CNC) manufacturing is capable of producing highly accurate parts, but accuracy is not guaranteed by the machine alone. Dimensional errors may arise from tool wear, thermal expansion, fixturing, cutting-force deflection, spindle runout, programming errors, material variation, and measurement uncertainty. CNC metrology provides the methods required to determine whether a manufactured feature conforms to its specification and whether the process is stable enough to continue production.

This chapter connects four activities that are sometimes treated separately: measurement, geometric verification, statistical quality control, and process improvement. The central engineering question is not simply whether one part is acceptable. It is whether the production process can repeatedly produce acceptable parts under controlled conditions.

Learning Objectives

After studying this chapter, a student should be able to:

  1. Distinguish dimensional accuracy, precision, resolution, repeatability, reproducibility, and measurement uncertainty.
  2. Select suitable instruments and probing strategies for CNC inspection.
  3. Interpret dimensional and geometric tolerances according to engineering drawings and GD&T principles.
  4. Evaluate surface finish and identify its relationship with machining conditions.
  5. Calculate and interpret process mean, standard deviation, control limits, Cp, Cpk, and related capability measures.
  6. Apply acceptance criteria, measurement-system analysis, and root-cause analysis.
  7. Recommend practical quality improvements for CNC production systems.

1. Metrology in CNC Manufacturing

Metrology is the science of measurement. In CNC production it includes the specification of requirements, calibration of instruments, measurement planning, data analysis, and decisions about conformity.

A measurement result should be considered as an estimate of a quantity rather than as an absolutely true value. A reported diameter such as 24.998 mm is influenced by instrument resolution, calibration, temperature, operator technique, probe geometry, surface condition, and the measurement method.

1.1 Important terminology

TermMeaning
AccuracyCloseness of a measured or manufactured value to the reference value
PrecisionDegree of agreement among repeated measurements
ResolutionSmallest displayed or detectable increment of an instrument
RepeatabilityVariation when the same operator measures the same part using the same method and equipment
ReproducibilityVariation caused by different operators, equipment, or measurement conditions
BiasSystematic difference between the average measured value and a reference value
TraceabilityAbility to relate a measurement to recognized standards through an unbroken calibration chain
UncertaintyQuantified doubt associated with a measurement result
CalibrationComparison and, where appropriate, adjustment of an instrument against a reference standard
ConformanceFulfilment of specified requirements

Accuracy and precision are different. A micrometer can produce closely grouped readings that are all displaced from the true value; it is precise but biased. Conversely, readings may average near the true value while being widely scattered; this indicates poor precision.

1.2 Measurement uncertainty

For a measurement result y, a commonly used representation is:

Y = y ± U

Here, y is the estimated measured value and U is the expanded uncertainty for a stated coverage level. The result is meaningful only when the measurand, environmental conditions, calibration status, and coverage convention are specified.

If independent standard uncertainty components are u1, u2, …, un, the combined standard uncertainty is commonly estimated by the root-sum-square relationship:

uc = √(u1² + u2² + ⋯ + un²)

This form assumes that the components are independent and are expressed in the same units. If significant correlations exist, covariance terms must be included. Expanded uncertainty is often written:

U = k uc

where k is a coverage factor selected according to the desired confidence or coverage convention. The often-used value k ≈ 2 is not universally equivalent to exactly 95% probability; the appropriate value depends on the uncertainty distribution and degrees of freedom.

For example, suppose a diameter measurement has independent uncertainty components of 0.004 mm, 0.003 mm, and 0.002 mm. Then:

uc = √(0.004² + 0.003² + 0.002²) = √0.000029 ≈ 0.00539 mm.

With k = 2, the expanded uncertainty is approximately 0.0108 mm. A reported result may therefore be written as 25.000 ± 0.011 mm, provided the uncertainty budget and coverage statement are documented.

2. CNC Measurement Systems

2.1 Manual and shop-floor instruments

Vernier calipers are useful for general dimensions but are often unsuitable for tight tolerances because of limited resolution, contact pressure effects, jaw alignment, and operator dependence. Outside micrometers provide better control for external dimensions when correctly used. Bore gauges, plug gauges, height gauges, dial indicators, and surface plates support specialized tasks.

A gauge should be selected according to the feature, tolerance, accessibility, surface condition, and required decision risk. Instrument resolution alone does not establish measurement capability. Calibration, repeatability, environmental stability, and contact geometry are equally important.

2.2 Coordinate measuring machines

A coordinate measuring machine (CMM) determines points on a workpiece and fits geometric elements such as planes, circles, cylinders, and lines. The resulting geometry can be evaluated for size, position, orientation, form, and profile. CMMs may use touch-trigger probes, scanning probes, optical sensors, or combinations of technologies.

CMM results depend on probing strategy. Too few points, poorly distributed points, excessive probing force, unsuitable filtering, or incorrect datum alignment can produce misleading results. A circle measured at only three points, for example, provides little information about form error.

2.3 In-process and on-machine probing

CNC probing can establish work offsets, identify part location, measure tool length, detect broken tools, and verify selected features without removing the workpiece. Typical operations include probing a reference surface, finding a bore centre, measuring stock, and checking a machined diameter.

On-machine probing is valuable because it reduces setup and transfer errors. However, it is not automatically equivalent to a calibrated CMM. Probe qualification, stylus geometry, machine thermal state, axis accuracy, contamination, probe trigger characteristics, and software algorithms must be controlled.

A practical probing sequence is:

  1. Stabilize the machine and workpiece temperature.
  2. Qualify the probe using a certified artifact or reference sphere.
  3. Establish datums using a defined and repeatable sequence.
  4. Measure sufficient points with appropriate speed and contact conditions.
  5. Apply validated compensation only within its approved range.
  6. Record raw measurements, corrections, environmental conditions, and the final decision.

3. Dimensional and Geometric Tolerancing

A dimensional tolerance defines an acceptable range for a size. If a shaft is specified as 20.000 ± 0.010 mm, the lower and upper specification limits are 19.990 mm and 20.010 mm. The tolerance width is:

T = USL − LSL

where USL is the upper specification limit and LSL is the lower specification limit. In this example, T = 20.010 − 19.990 = 0.020 mm.

Geometric tolerancing controls more than size. The principal categories are:

  • Form: straightness, flatness, circularity, and cylindricity.
  • Orientation: parallelism, perpendicularity, and angularity.
  • Location: position, concentricity, and symmetry.
  • Profile: line profile and surface profile.
  • Runout: circular runout and total runout.

Datums establish the reference framework for evaluating relationships. A position tolerance, for example, controls the location of a feature relative to specified datum references. It does not merely control the feature's size.

The envelope principle and maximum-material-condition concepts may permit functional relationships between size and geometric tolerance. Interpretation must follow the applicable drawing standard and company practice, such as ASME Y14.5 or ISO GPS standards. The inspector must not replace a geometric requirement with a simpler but incorrect dimensional check.

3.1 Acceptance and decision risk

A measured value near a specification limit creates a decision problem because measurement uncertainty may overlap the limit. A conservative guard-band rule may reject a result unless the measured value plus uncertainty remains inside the specification interval. Other organizations use decision rules defined by customer, regulatory, or accreditation requirements.

For a two-sided specification, a simple conservative acceptance condition is:

LSL + U ≤ y ≤ USL − U

where y is the measured value and U is the expanded uncertainty. This is a decision rule, not a universal law. It should be agreed before inspection, because different rules alter producer and consumer risks.

4. Surface Finish and Machining Quality

Surface texture includes roughness, waviness, and lay. Roughness describes relatively closely spaced irregularities; waviness has larger spacing and may result from vibration, distortion, or machine error; lay indicates the predominant direction of surface marks.

The arithmetic mean roughness, commonly denoted Ra, is calculated over a sampling length from deviations of the assessed profile from its mean line:

Ra = (1/L) ∫₀ᴸ |y(x)| dx

Here, L is the evaluation length and y(x) is the profile deviation. In digital instruments, the integral is approximated by sampled data. The evaluation procedure, cutoff wavelength, filtering, stylus radius, and measurement direction must be specified; otherwise two instruments may report different values for the same surface.

A stylus profilometer is commonly used for contact measurement. Optical methods are useful where contact could damage the surface or where three-dimensional texture is required. Surface roughness is affected by feed per tooth, tool nose radius, cutting speed, tool wear, machine vibration, material properties, coolant, and built-up edge.

For an ideal turning operation, a commonly used geometric estimate of theoretical roughness is:

Ra ≈ f²/(32 r_ε)

where f is feed per revolution and r_ε is tool nose radius, both in the same length units. This is an idealized relation that excludes vibration, tool wear, material deformation, and machine dynamics. It should therefore be used for estimation rather than as a substitute for measurement.

5. Statistical Process Control

Inspection detects nonconforming output; statistical process control (SPC) additionally studies process behavior over time. A stable process exhibits only common-cause variation. Special-cause variation results from identifiable disturbances such as a broken insert, incorrect offset, fixture movement, coolant failure, or measurement fault.

5.1 Descriptive statistics

For observations x1, x2, …, xn, the sample mean is:

x̄ = (1/n) ∑ᵢ₌₁ⁿ xi

The sample standard deviation is:

s = √[∑ᵢ₌₁ⁿ (xi − x̄)²/(n − 1)]

The divisor n − 1 provides the usual unbiased estimate of population variance under independent random sampling from a stable population. These statistics describe the sampled data; they do not prove future stability.

5.2 Control charts

For individual measurements, an Individuals–Moving Range chart may be used. The moving range for consecutive observations is:

MRi = |xi − xi−1|

For a stable process, control limits are estimated using chart constants. For an individuals chart, a common estimate is:

σ̂ = MR̄/d₂

where MR̄ is the average moving range and d₂ is a statistical constant determined by moving-range length; for a range of two, d₂ ≈ 1.128. The approximate three-sigma limits are:

UCL = x̄ + 3σ̂
LCL = x̄ − 3σ̂

These limits describe expected process variation, not engineering specification limits. A process can be statistically stable but incapable of meeting specifications, or apparently capable based on a short sample but unstable over time.

6. Process Capability

Capability indices compare process spread and centering with specification limits. They should be calculated only after the process is reasonably stable and the measurement system is adequate.

The potential capability index is:

Cp = (USL − LSL)/(6σ)

The centered capability index is:

Cpk = min[(USL − μ)/(3σ), (μ − LSL)/(3σ)]

Here, μ is the process mean and σ is the within-process standard deviation. In practice, estimates use x̄ and s or a within-subgroup estimate. Cp measures potential capability if the process is centered; Cpk also penalizes off-centre operation.

For the shaft example with USL = 20.010 mm, LSL = 19.990 mm, mean μ = 20.004 mm, and σ = 0.002 mm:

Cp = 0.020/(6 × 0.002) = 1.67.

The upper and lower capability terms are:

(20.010 − 20.004)/(3 × 0.002) = 1.00

and

(20.004 − 19.990)/(3 × 0.002) = 2.33.

Therefore, Cpk = 1.00. The process has relatively small spread but is shifted toward the upper limit. Reducing variation alone would not be the first priority; centering the process is more urgent.

Capability thresholds such as 1.00, 1.33, or 1.67 are organizational requirements rather than universal physical laws. The applicable customer specification, industry standard, and risk level must govern acceptance.

7. Measurement-System Analysis

A process-capability study is invalid if measurement variation is large relative to product variation. Gauge repeatability and reproducibility (GR&R) studies separate variation associated with the measurement system from part-to-part variation.

A crossed GR&R design commonly uses several parts, multiple operators, and repeated measurements. The analysis estimates repeatability, associated with equipment, and reproducibility, associated mainly with operators or measurement conditions. The percentage study variation may be expressed as:

%GRR = 100 × (σGRR/σtotal)

where σGRR is the standard deviation attributed to the measurement system and σtotal is the total observed standard deviation under the selected model. Interpretation depends on the method and application. A measurement system with high variation can hide process shifts, create false alarms, or produce incorrect capability indices.

Improvement actions include better fixture design, probe qualification, operator training, temperature control, instrument calibration, improved resolution, and a clearer measurement procedure. A gauge that is excellent for a broad tolerance may be unsuitable for a precision feature.

8. Root-Cause Analysis and Corrective Action

When a feature fails, replacing the tool immediately may treat a symptom rather than the cause. Root-cause analysis should use evidence and a controlled sequence:

  1. Define the problem in measurable terms: what feature, how much error, when, and under what conditions.
  2. Contain suspect product and preserve relevant evidence.
  3. Verify the measurement system and repeat the measurement.
  4. Stratify data by machine, tool, operator, material batch, cavity, time, and setup.
  5. Generate possible causes using a fishbone diagram or five-whys analysis.
  6. Test causes through controlled checks or designed trials.
  7. Implement corrective and preventive actions.
  8. Verify effectiveness using subsequent data and updated control plans.

Common CNC cause categories are machine, method, material, measurement, manpower, and environment. A gradual diameter drift often suggests tool wear or thermal movement; a sudden shift may indicate an offset entry, insert fracture, or fixture change; cyclic variation may indicate runout, spindle error, or periodic machine behavior.

9. Applied Case: Bore Diameter Drift in a CNC Housing

The following is an illustrative case, not a report of a specific company.

Background

A CNC machining cell produces aluminium housings with a bearing bore specified as 40.000 ± 0.015 mm. The first-off component is acceptable, but production records show increasing bore size during a 60-piece batch.

Problem

The last ten parts have a mean bore size of 40.013 mm, approaching the upper specification limit of 40.015 mm. Operators propose reducing the tool offset by 0.010 mm.

Analysis

The quality engineer first checks the bore gauge against certified masters and repeats measurements on selected parts. Gauge repeatability is acceptable, and measurements from an independent CMM confirm the trend. The control chart shows a gradual upward pattern rather than random scatter. This pattern is evidence of a process trend, not merely an isolated nonconforming part.

The team reviews tool life, coolant temperature, spindle warm-up, and insert condition. The offset history shows no unauthorized changes. Tool inspection reveals flank wear on the finishing insert. Thermal measurements also show that the machine reaches a steady state after approximately 25 minutes, but the production schedule begins inspection immediately after startup.

Approach and solution

The immediate action is to segregate parts near the limit and replace the worn insert. The process is then standardized with a controlled warm-up cycle, a defined tool-life limit, and an in-process bore measurement after every fifth part during the initial study. Offset compensation is permitted only within a validated range and requires recorded authorization.

The team collects a stable sample after corrective action. The revised process has mean 40.003 mm and standard deviation 0.003 mm. With specification limits 39.985 and 40.015 mm:

Cp = (40.015 − 39.985)/(6 × 0.003) = 1.67.

The capability terms are (40.015 − 40.003)/(0.009) = 1.33 and (40.003 − 39.985)/(0.009) = 2.00, giving Cpk = 1.33.

Outcome

The process is now substantially more robust, although the organization must continue monitoring tool wear and verify that the measurement method remains capable. The improved result is not attributed to the offset change alone; it results from controlling tool condition, thermal state, measurement timing, and compensation authority.

Learning points

  • A time-ordered chart can reveal a trend hidden by a simple batch average.
  • Measurement verification must precede process adjustment.
  • A process can have adequate potential capability but poor centering.
  • Corrective action should address the mechanism producing variation, not only the immediate symptom.

10. Quality Systems, Governance and Contemporary Practice

CNC inspection records should be traceable to part identification, machine, program revision, tool condition, measurement equipment, operator, and environmental conditions. Electronic records require access control, audit trails, backup, and protection against unauthorized alteration. Automated acceptance decisions should be validated, particularly when they control safety-critical or regulatory products.

Standards and customer requirements may specify calibration intervals, uncertainty evaluation, sampling plans, geometric interpretation, and record retention. Engineers must avoid presenting an automated result as objective merely because software produced it. Algorithms can select fitting methods, remove outliers, filter surface data, or compensate machine error; each choice can influence conformity.

Digital twins, machine-learning prediction of tool wear, adaptive control, and connected inspection systems are increasingly used. These technologies are valuable when trained on representative data and governed by physical verification. A prediction is not a substitute for a calibrated measurement, and adaptive compensation must have limits to prevent a control system from concealing a deteriorating machine.

Best practice is therefore to combine:

  • validated measurement methods;
  • calibrated and traceable equipment;
  • stable datums and probing routines;
  • SPC based on time-ordered data;
  • capability analysis after stability is demonstrated;
  • documented decision rules;
  • evidence-based root-cause analysis; and
  • periodic review of risks, standards, and customer requirements.

Chapter Summary

CNC metrology determines whether manufactured features satisfy dimensional, geometric, and surface requirements. Reliable decisions require suitable instruments, calibration, traceability, controlled environments, and explicit uncertainty consideration. In-process probing reduces setup errors and enables timely correction, but it must be qualified and validated.

Dimensional tolerances define size limits, while GD&T controls form, orientation, location, profile, and runout relative to datums. Surface finish measurements depend on evaluation length, filtering, direction, and instrument configuration. SPC distinguishes common-cause from special-cause variation using time-ordered data and control charts. Capability indices compare process variation and centering with specification limits; they are meaningful only when the process is stable and the measurement system is adequate. Finally, root-cause analysis uses verified data to connect defects with mechanisms such as tool wear, thermal drift, fixturing, programming, or measurement error.

Key Terms

Metrology: Science of measurement.

Accuracy: Closeness to a reference or accepted value.

Precision: Agreement among repeated measurements.

Resolution: Smallest detectable instrument increment.

Traceability: Link between a measurement and recognized standards.

Measurement uncertainty: Quantified doubt associated with a result.

Calibration: Comparison with a reference standard.

Datum: Reference feature or system used for geometric evaluation.

GD&T: Geometric dimensioning and tolerancing.

Surface roughness: Closely spaced irregularity of a surface profile.

Probe qualification: Establishment of probe geometry and response.

SPC: Statistical process control using data to monitor process behavior.

Common cause: Natural variation inherent in a process system.

Special cause: Assignable disturbance producing unusual variation.

Control limit: Statistical boundary based on process variation.

Specification limit: Engineering or customer acceptance boundary.

Process capability: Ability of a stable process to meet specifications.

Gauge repeatability and reproducibility: Study of measurement-system variation.

Root cause: Fundamental mechanism responsible for a problem.

Guard band: Decision margin used to account for measurement uncertainty.

Review Questions

Short Answer Questions

  1. Distinguish accuracy from precision in CNC measurement.
  2. Why must a capability study normally follow a stability study?
  3. What is the purpose of a datum in geometric tolerancing?
  4. Identify two sources of measurement uncertainty in on-machine probing.
  5. Why can a process with a high Cp still have a low Cpk?

Long Answer Questions

  1. Explain how a CMM and an on-machine probe differ in purpose, strengths, and limitations.
  2. Describe a complete measurement-system validation procedure for a precision bore.
  3. Explain the difference between specification limits and control limits, using a CNC example.
  4. Discuss how tool wear, thermal expansion, and fixturing can affect dimensional capability.
  5. Describe a root-cause-analysis procedure for recurring geometric nonconformance.

Analytical / Application Questions

  1. A shaft has limits 49.95 mm and 50.05 mm, process mean 50.03 mm, and standard deviation 0.01 mm. Calculate Cp and Cpk, then identify the priority improvement.
  2. A control chart shows a steady increase in bore diameter but no point outside the limits. Explain why this may still indicate an assignable cause and propose an investigation.
  3. A measured feature is 10.008 mm with specification limits 9.990 mm and 10.010 mm and expanded uncertainty 0.004 mm. Evaluate the conservative acceptance rule and explain the decision risk.

Multiple Choice Questions with Answers

Question 1

Which term describes the closeness of a measurement to a reference value?

A. Accuracy

B. Precision

C. Resolution

D. Repeatability

Correct Answer: A. Accuracy

Question 2

For independent uncertainty components, which expression gives the combined standard uncertainty?

A. u_c = u_1 + u_2

B. u_c = √(u_1² + u_2² + ⋯ + u_n²)

C. u_c = u_1u_2

D. u_c = max(u_1, u_2)

Correct Answer: B. u_c = √(u_1² + u_2² + ⋯ + u_n²)

Question 3

Which geometric tolerance category includes flatness?

A. Location

B. Orientation

C. Form

D. Runout

Correct Answer: C. Form

Question 4

A process has USL = 20.010 mm, LSL = 19.990 mm, and σ = 0.002 mm. What is C_p?

A. 0.67

B. 1.00

C. 1.33

D. 1.67

Correct Answer: D. 1.67

Question 5

What does C_pk account for in addition to process spread?

A. Tool cost

B. Process centering

C. Machine power

D. Surface lay

Correct Answer: B. Process centering

Question 6

Which condition should normally be established before calculating process capability?

A. The process is statistically stable

B. The drawing has no datums

C. The instrument has zero resolution

D. All parts are measured by different methods

Correct Answer: A. The process is statistically stable

Question 7

A gradual increase in machined bore diameter is most directly suggestive of which cause?

A. Random drawing revision

B. Tool wear or thermal drift

C. Perfect centering

D. Reduced measurement resolution

Correct Answer: B. Tool wear or thermal drift

Question 8

What does repeatability primarily describe?

A. Variation between different factories

B. Variation from the same operator and method

C. Difference between specification limits

D. Difference between two datums

Correct Answer: B. Variation from the same operator and method

Question 9

Which value is an engineering specification limit rather than a statistical control limit?

A. UCL calculated from process data

B. LCL calculated from process data

C. USL stated on the part drawing

D. Three-sigma estimate from moving ranges

Correct Answer: C. USL stated on the part drawing

Question 10

If C_p is high but C_pk is much lower, what is the most appropriate interpretation?

A. The process spread is large but perfectly centred

B. The measurement system is necessarily invalid

C. The process has potential capability but is off-centre

D. The specification limits are control limits

Correct Answer: C. The process has potential capability but is off-centre

CNC Technology & Additive Manufacturing
Chapter 8 of 15