Focusing on the difficult technical problem of CNC turning for inclined-ellipse hole parts, the problems existing in macro programming were analyzed, the CNC turning methods for inclined-ellipse hole parts which program was generated automatically by MasterCAM was discussed. The technique of using the compact flash card to transmit program to CNC lathe which was run in FANUC OI system was expounded. Through optimizing the NC program automatically generated by MasterCAM postprocessing, the machining of the workpiece by NC turning was realized.