Real-Time Predictive Control for Precision Machining

Alexander Liniger, Luca Varano, Alisa Rupenyan, John Lygeros · DOI

Introduction

In high-precision CNC machining, the balance between productivity and accuracy is a critical engineering challenge. Manufacturers aim to maximize tool head speed to reduce cycle times, yet must maintain strict tracking tolerances—often below $20\mu m$. Traditional control systems typically decouple path following from velocity regulation, leading to suboptimal performance. Model Predictive Contouring Control (MPCC) addresses this by optimizing both objectives simultaneously. However, the high computational demand of MPCC has historically limited its application in real-time environments. This paper explores a framework that achieves sub-millisecond control cycles by transitioning from global to local curvilinear coordinates.

Methodology

The core contribution of this work is the comparison of two optimization-based predictive control formulations designed for real-time execution.

Global vs. Local Formulations

  1. Global Variable MPCC: This formulation defines tracking errors relative to the tool's global $(X, Y)$ position. It utilizes a "virtual" path parameter to estimate the tool's ideal position on the trajectory, penalizing deviations from this point.
  2. Local Variable MPCC: Drawing inspiration from autonomous vehicle control, this approach transforms the system into a local curvilinear coordinate system. Instead of tracking absolute coordinates, the state is defined by the distance along the path ($s$) and the perpendicular deviation ($d$).
Comparison of error definitions: (a) Global variable approach vs (b) Local variable approach.

By adopting local coordinates, the state vector is reduced from 10 variables to 6, significantly decreasing the computational burden. Both methods employ a Linear Time-Varying (LTV) scheme, linearizing the non-linear path at each time step to solve a Quadratic Program (QP) efficiently. To handle sharp corners, the authors implemented terminal constraints and trust regions to ensure linearization accuracy and solver feasibility.

Experimental Results

The frameworks were tested using synthetic "Sigma" ($\Sigma$) geometries, representing both smooth curves and sharp, discontinuous corners. The objective was to maintain a $\pm 20 \mu m$ tolerance band while maximizing traversal speed.

Performance and Efficiency

The local variable approach demonstrated a clear advantage in computational efficiency, consistently performing 2 to 2.5 times faster than the global alternative. Using the HPMPC solver, the local formulation achieved a maximum computation time of 0.62 ms for a 35-step horizon, comfortably meeting the 1 ms threshold required for 1kHz real-time control.

Experimental results for the sharp corner geometry, illustrating velocity management to maintain tracking within the tolerance band.

As shown in the results for sharp geometries, both methods successfully maintained micrometer-level precision. The global approach tended to manage sharp corners more conservatively, reducing velocity significantly to ensure the contouring constraints were met.

Discussion and Key Insights

The transition to local coordinates fundamentally simplifies the optimization problem by eliminating redundant states. Furthermore, the researchers identified a critical trade-off regarding the planning horizon: while longer horizons allow for higher speeds on straight segments due to better "look-ahead" capabilities, they necessitate higher contouring penalties to prevent "corner-cutting" at high velocities. For sharp geometries, the combination of high contouring weights and strict terminal constraints proved essential for maintaining solver feasibility at the point of discontinuity.

Conclusion

This research demonstrates that LTV-MPCC, when formulated in local curvilinear coordinates, is a viable solution for high-speed, high-precision machining. Future work will aim to incorporate more complex machine dynamics—such as friction, backlash, and axis vibrations—into the predictive model and extend the local coordinate approach to 3D and multi-axis systems.

Summary updated

BibTeX
@inproceedings{liniger2019real,
  author = {Alexander Liniger and Luca Varano and Alisa Rupenyan and John Lygeros},
  title = {{Real-Time Predictive Control for Precision Machining}},
  booktitle = {CDC},
  year = {2019},
  doi = {10.1109/cdc40024.2019.9029533},
}
Figure