In non-circular contour grinding process, a theoretical model of constant linear velocity grinding has been established based on the X-C Axis linkage motion principle of grinding machine. Based on this theoretical model, a numerical calculation model, which can be used for practical grinding process and can optimize and regulate the grinding speed, has be built by way of cubic spline fitting interpolation method. The calculated numerical result of this model can switch into NC code of some NC system. According to the motion principle of grinding machine, the geometry information of specific non-circle contour part and the real parameter of the grinding processing plan, the corresponding NC Programming function also has been modularized. An experiment has been done on the NC high speed camshaft grinding machine type of CNC8312A, and obtained the ideal processing effect.At the same time ,it also shows that the proposed method has strong practical feasibility and great practical value.