Screw pitch error can affect the positioning accuracy of the machine tool. The error compensation function of NC machine tools can significantly improve manufacturing accuracy,so as to improve positioning precision of machine tool. Based on LNCM510i NC system, pitch error compensation technology was studied. It provides certain reference for the practice of pitch error compensation of users.