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