The traditional shaving machine controls the change of normal dimension by controlling the center distance between the shaving spindle and the processed workpiece,which leads to the change of the tooth normal with the change of temperature of the machine tool during shaving processing,resulting in the substandard CPK value of the normal value,and the need to ensure that the parts are qualified through 100%inspection.This is not compatible with the current high-precision machining methods and inspection needs.By increasing the control of the displacement sensor to achieve the stability of the center distance between the shaving cutter spindle and the machined workpiece,the purpose of improving the CPK of the shaving normal line is realized.