Abstract:Grating in application is prone to be contaminated by cutting fluid, be scratched by iron chip, so the measurement accuracy is affected, and even the grating does not work. By analyzing the structure principle and the working principle of the grating, combining with CNC machine work requirements, grating guard was designed, so grating worked under the conditions of the closed guard to ensure the closed-loop control precision of CNC machine tools.