Abstract:Due to inconsistency of CNC system linear interpolation characteristics with the actual trajectory, the inevitable nonlinearity error generated during processing was caused. Through theoretical analysis of the five-axis CNC machining process, the location generated of the greatest errors was predicted. And on the basis of the existing algorithm, the method of midpoint linear cutter bit encryption was proposed. Finally, the MATLAB simulation verifies that the method can effectively control the nonlinearity error.