Precision CNC Spindle Tuning in Automotive Gear Manufacturing

Engineering Case Study

Case Study Control Systems

Scenario

Project Type: Retrofit control upgrade for high-precision CNC gear hobbing machine Location Context: Tier-1 automotive supplier in Wolfsburg, Germany; operating in temperature-controlled clean-room environment with strict ±0.5 µm positional tolerance requirements. Constraints: Must maintain ISO 230-2 contouring accuracy; cannot exceed 15 ms settling time for 1° step commands; existing servo amplifier has limited bandwidth (≤2 kHz); legacy encoder resolution is 16-bit (65,536 counts/rev), introducing quantization noise.

Given Data

  • Motor Inertia: 0.0082 kg·m² (measured via inertia dynamometer)
  • Load Inertia: 0.041 kg·m² (gearbox + spindle + workpiece fixture, reflected to motor shaft)
  • Viscous Friction: 0.18 N·m·s/rad (identified from deceleration coast-down test)
  • Gear Ratio: 12.5 (planetary gearbox, verified via gear tooth count)
  • Time Delay: 0.012 s (measured via loop-back latency test on EtherCAT bus + digital filter group delay)

Calculation

Using the PID Tuner tool with inputs:

  • motor_inertia = 0.0082
  • load_inertia = 0.041
  • viscous_friction = 0.18
  • gear_ratio = 12.5
  • time_delay = 0.012

The tuner applies a modified Cohen-Coon method adapted for electromechanical drives: first computes total inertia ratio (J_total = motor_inertia + load_inertia / gear_ratio² = 0.0082 + 0.041 / 156.25 ≈ 0.0108 kg·m²), then estimates dominant pole location considering damping ratio ζ = 0.707 and bandwidth constraint from time delay (ωₙ ≈ 0.8 / time_delay ≈ 66.7 rad/s). It solves for PID gains using analytical tuning rules that balance phase margin (>60°) and robustness to inertia variation (±20%).

Intermediate values:

  • Equivalent damping coefficient: b_eq = viscous_friction + 2 * sqrt(J_total * k_spring) (k_spring approximated from stiffness of coupling and gearbox torsion)
  • Critical gain K_u estimated at 24.3 via relay feedback emulation in internal model
  • Final computed gains:
    • Kp = 18.42
    • Ki = 127.65 1/s
    • Kd = 0.14 s

Result and Decision

The calculated gains yielded simulated overshoot <3%, settling time = 13.2 ms, and phase margin = 64° — meeting all specs. However, field testing revealed excessive high-frequency noise amplification due to encoder quantization. Engineers reduced Kd by 40% (to 0.084 s) and added a 2 kHz second-order low-pass filter on the derivative path. Final deployed gains: Kp = 18.4, Ki = 127.7, Kd = 0.084. System passed full ISO 230-2 contouring validation across 3 shift cycles.

Lesson

Even when PID gains satisfy theoretical stability and performance criteria, sensor limitations (e.g., finite encoder resolution) can expose derivative action as a noise amplifier — always pair Kd reduction with appropriate filtering rather than eliminating derivative action entirely.

← Back to PID Tuner