When operating a 5-axis linear cutting command G01, the controller automatically inserts point data between two NC blocks in a linear distribution fashion, and then drives the cutter along these inserted points. If a simultaneous 5-axis machining is initiated, and CL data is directly transformed one-to-one into NC data, and then cutting is performed directly without having the 5-axis controller inserting any points between NC blocks, its processing path will deviate from the original plotted path. In fact, the processing path is no longer a straight line, but a curve line. This study proposes a method to increase CL interpolation points to automatically rectify the path deviation. The extent of research of this study comprises: (1) Transforming CL data into NC data (2) Programming tool orientations (3) Obtaining all CL interpolation points and their tool orientations (4) Generating NC data.