It analyzes the CNC machine tool processing error sources, gives the detail about testing CNC machine tool orientation accuracy by using the dual-frequency laser interferometer and compensation by gap approach compensation of the screw pitch error. This method achieves the machine linear positioning error compensation and greatly improves the CNC machine tool orientation accuracy.