This document describes a contouring control method for CNC machine tools using a linear parameter-varying (LPV) controller. It involves transforming the axis coordinates into a task frame defined by the toolpath direction and velocity. An LPV feedback controller is designed as a function of the toolpath trajectory direction and velocity to minimize estimated contouring error while suppressing vibration. Weighting functions in the controller design are tuned to improve contouring accuracy and bandwidth by adjusting parameters like gains and crossover frequencies.