The characteristic of two-dimensional contour control is that the moving parts of the machine tool should not only realize the accurate movement and positioning from one coordinate position to another coordinate position, but also realize the linear feed motion parallel to the coordinate axis or control the oblique feed motion of two coordinate axes. Using two-dimensional contour control on the CNC machine tool can expand the process range of the boring machine, mill the plane and steps of the prismatic workpiece in one installation, and then carry out point control drilling, boring and other processing, which effectively improves the machining accuracy and production rate. Two dimensional contour control can also be applied to CNC lathes for machining stepped shafts or disk parts.