This paper studies the key technology in the tool grinding simulation system: the analysis technology of the NC program, and explains in detail how to detect and translate the NC code, obtain the machining movement data and status data, and finally realize the simulation of the tool grinding process.