Table of Contentsiiableableableableofofofof ContentsContentsContentsContentsPreface.............................................................................................................................................i1 General................................................................................................................................... 11.1 CNC Programming.....................................................................................................21.2 Interpolation................................................................................................................41.2.1 Linear Interpolation........................................................................................41.2.2 Circular Interpolation......................................................................................51.2.3 Thread Cutting................................................................................................51.3 Feed Function.............................................................................................................61.4 Coordinate System......................................................................................................71.4.1 Reference Point...............................................................................................71.4.2 Machine Coordinate System...........................................................................81.4.3 Workpiece Coordinate System........................................................................91.4.4 Setting Two Coordinate Systems at the Same Position................................ 101.4.5 Absolute Commands.....................................................................................111.4.6 Incremental Commands................................................................................121.4.7 Diameter/Radius Programming.................................................................... 131.5 Spindle Speed Function............................................................................................141.6 Tool Function............................................................................................................151.6.1 Tool Selection...............................................................................................151.6.2 Tool Offset....................................................................................................151.7 Miscellaneous Function............................................................................................181.8 Program Configuration.............................................................................................191.8.1 Structure of an NC Program......................................................................... 191.8.2 Main Program and Subprogram....................................................................202 Preparatory Function (G code)............................................................................................. 212.1 G code List................................................................................................................223 Interpolation Functions.........................................................................................................243.1 Positioning (G00)..................................................................................................... 253.2 Linear Interpolation (G01)........................................................................................263.3 Circulation Interpolation (G02, G03)....................................................................... 313.4 Chamfering and Rounding (G01, G02, G03)............................................................373.4.1 Chamfering (G01).........................................................................................373.4.2 Rounding (G01)............................................................................................383.4.3 Chamfering (G02, G03)................................................................................403.4.4 Rounding (G02, G03)...................................................................................413.5 Thread Cutting with Constant Lead (G32)...............................................................433.6 Tapping (G34)...........................................................................................................464 Feed Function.......................................................................................................................494.1 Rapid Traverse (G00)............................................................................................... 504.2 Cutting Feed (G94, G95)..........................................................................................514.3 Dwell (G04)..............................................................................................................525 Coordinate System................................................................................................................535.1 Reference Position Return (G28)..............................................................................545.2 Auto Return from Reference Position (G29)............................................................555.3 Setting a Workpiece Coordinate System (G92)........................................................575.4 Selecting a Machine Cooridinate System (G53).......................................................585.5 Selecting a Workpiece Coordinate System (G54~G59)............................................595.6 Origin of a Workpiece Coordinate System (G51, G50)............................................615.7 Absolute and Incremental Programming (G90, G91)...............................................62