6 Tool Function (T Function).................................................................................................................................. 28
7 Reference Point......................................................................................................................................................28
7.1 Reference Point.................................................................................................................................... 28
7.2 Reference Position (G28)..................................................................................................................... 29
7.3 Setting Returning Reference Point Speed............................................................................................29
8 Coordinate System................................................................................................................................................ 30
8.1 Machine Coordinate System................................................................................................................ 30
8.2 Workpiece Coordinate System............................................................................................................. 30
8.2.1 Setting a Workpiece Coordinate System...................................................................................30
8.2.2 Selecting a Workpiece Coordinate System............................................................................... 31
8.2.3 Changing Workpiece Coordinate System................................................................................. 31
8.3 Local Coordinate System..................................................................................................................... 31
8.4 Plane Selection..................................................................................................................................... 32
9 Spindle Speed Function (S Function).................................................................................................................. 32
9.1 Spindle Speed Specified.......................................................................................................................32
9.2 Constant Surface Speed Control (G96, G97).......................................................................................32
10 The Function M Code......................................................................................................................................... 32
10.1 The Program Control M Codes.......................................................................................................... 33
10.2 Auxiliary Function M code................................................................................................................ 33
11 Tool Compensation..............................................................................................................................................34
11.1 Tool Length Compensation (G43, G44, G49)....................................................................................34
11.2 Tool Radius Compensation (G41, G42, G40)....................................................................................35
12. Macro Instruction...............................................................................................................................................36
12.1 Macro Variable................................................................................................................................... 36
12.1.1 Variable Represent...................................................................................................................36
12.1.2 Type of Variable...................................................................................................................... 36
12.1.3 Use of Variable........................................................................................................................ 37
12.2 Call the Macro Program..................................................................................................................... 37
12.2.1 Simple Call G65...................................................................................................................... 37
12.2.2 Modal Call G66.......................................................................................................................37
12.2.3 Cancel the Modal Call G67.....................................................................................................38
12.2.4 Arithmetic and Logic Operations............................................................................................38
12.3 Control Directive................................................................................................................................38
12.3.1 Unconditional Transfer GOTO Statement.............................................................................. 38
12.3.2 Conditional Branch IF Statements.......................................................................................... 39
12.3.3 Loop (WHILE statement)....................................................................................................... 39
12.3.4 User Macro.............................................................................................................................. 39
12.4 Variables............................................................................................................................................. 40
12.4.1 System Variables..................................................................................................................... 40
12.4.2 Arithmetic and Logic Operations............................................................................................41
12.4.3 NC Statements and Macro Statements....................................................................................41
12.4.4 Transfer and Recycling........................................................................................................... 41
12.4.5 Macro Call...............................................................................................................................41
13 Fixed Cycle Function...........................................................................................................................................42
13.1 Fixed Loop Hole Processing.............................................................................................................. 42
13.2 The Main Instruction Affecting the Machining Cycle.......................................................................43
13.2.1 Coordinate Programming Instructions (G90/G91)................................................................. 43