
Table of Contents
ii
Table
Table
Table
Table of
of
of
of Contents
Contents
Contents
Contents
Preface ............................................................................................................................................. i
1 General ................................................................................................................................... 1
1.1 CNC Programming ..................................................................................................... 2
1.2 Interpolation ................................................................................................................ 4
1.2.1 Linear Interpolation ........................................................................................ 4
1.2.2 Circular Interpolation ...................................................................................... 5
1.2.3 Thread Cutting ................................................................................................ 5
1.3 Feed Function ............................................................................................................. 6
1.4 Coordinate System ...................................................................................................... 7
1.4.1 Reference Point ............................................................................................... 7
1.4.2 Machine Coordinate System ........................................................................... 8
1.4.3 Workpiece Coordinate System ........................................................................ 9
1.4.4 Setting Two Coordinate Systems at the Same Position ................................ 10
1.4.5 Absolute Commands ..................................................................................... 11
1.4.6 Incremental Commands ................................................................................ 12
1.4.7 Diameter/Radius Programming .................................................................... 13
1.5 Spindle Speed Function ............................................................................................ 14
1.6 Tool Function ............................................................................................................ 15
1.6.1 Tool Selection ............................................................................................... 15
1.6.2 Tool Offset .................................................................................................... 15
1.7 Miscellaneous Function ............................................................................................ 18
1.8 Program Configuration ............................................................................................. 19
1.8.1 Structure of an NC Program ......................................................................... 19
1.8.2 Main Program and Subprogram .................................................................... 20
2 Preparatory Function (G code) ............................................................................................. 21
2.1 G code List ................................................................................................................ 22
3 Interpolation Functions ......................................................................................................... 24
3.1 Positioning (G00) ..................................................................................................... 25
3.2 Linear Interpolation (G01) ........................................................................................ 26
3.3 Circulation Interpolation (G02, G03) ....................................................................... 31
3.4 Chamfering and Rounding (G01, G02, G03) ............................................................ 37
3.4.1 Chamfering (G01) ......................................................................................... 37
3.4.2 Rounding (G01) ............................................................................................ 38
3.4.3 Chamfering (G02, G03) ................................................................................ 40
3.4.4 Rounding (G02, G03) ................................................................................... 41
3.5 Thread Cutting with Constant Lead (G32) ............................................................... 43
3.6 Tapping (G34) ........................................................................................................... 46
4 Feed Function ....................................................................................................................... 49
4.1 Rapid Traverse (G00) ............................................................................................... 50
4.2 Cutting Feed (G94, G95) .......................................................................................... 51
4.3 Dwell (G04) .............................................................................................................. 52
5 Coordinate System ................................................................................................................ 53
5.1 Reference Position Return (G28) .............................................................................. 54
5.2 Auto Return from Reference Position (G29) ............................................................ 55
5.3 Setting a Workpiece Coordinate System (G92) ........................................................ 57
5.4 Selecting a Machine Cooridinate System (G53) ....................................................... 58
5.5 Selecting a Workpiece Coordinate System (G54~G59) ............................................ 59
5.6 Origin of a Workpiece Coordinate System (G51, G50) ............................................ 61
5.7 Absolute and Incremental Programming (G90, G91) ............................................... 62