13.6 User Macro.........................................................................................................................................................268
13.6.1 User Macro ...............................................................................................................................................268
13.6.2 Macro Call Instruction .............................................................................................................................269
13.6.2.1 Simple Macro Calls ; G65...............................................................................................................269
13.6.2.2 Modal Call A (Movement Command Call) ; G66...........................................................................272
13.6.2.3 Modal Call B (for each block) ; G66.1 ...........................................................................................273
13.6.2.4 G Code Macro Call ..........................................................................................................................274
13.6.2.5 Miscellaneous Command Macro Call (for M, S, T, B Code Macro Call) .....................................275
13.6.2.6 Detailed Description for Macro Call Instruction .........................................................................276
13.6.3 Variable .....................................................................................................................................................277
13.6.4 Types of Variables ...................................................................................................................................279
13.6.4.1 Common Variables .........................................................................................................................279
13.6.4.2 Local Variables (#1 to #33) .............................................................................................................280
13.6.4.3 Macro Interface Inputs/Outputs
(#1000 to #1035, #1100 to #1135, #1200 to #1295, #1300 to #1395) ............................................283
13.6.4.4 Tool Compensation ........................................................................................................................292
13.6.4.5 Workpiece Coordinate System Compensation
(External Workpiece Coordinate Offset) (#5201 - #532n).............................................................293
13.6.4.6 NC Alarm (#3000) ............................................................................................................................294
13.6.4.7 Integrating Time (#3001, #3002) ....................................................................................................295
13.6.4.8 Suppression of Single Block Stop and Miscellaneous Function Finish Signal Waiting (#3003)
...........................................................................................................................................................295
13.6.4.9 Feed Hold, Feedrate Override, G09 Valid/Invalid (#3004) ...........................................................296
13.6.4.10 Message Display and Stop (#3006) .............................................................................................296
13.6.4.11 Mirror Image (#3007) .....................................................................................................................297
13.6.4.12 G Command Modals (#4001-#4021, #4201-#4221) .....................................................................298
13.6.4.13 Other Modals (#4101 - #4140, #4301 - #4340) .............................................................................299
13.6.4.14 Position Information (#5001 - #5100 + n) ....................................................................................300
13.6.4.15 Number of Workpiece Machining Times (#3901, #3902) ...........................................................302
13.6.4.16 ZR device access variable ............................................................................................................303
13.6.4.17 Tool Life Management (#60000 - #63016) ...................................................................................312
13.
6
.5 Operation Commands .............................................................................................................................316
13.6.6 Control Commands .................................................................................................................................321
13.6.7 Precautions ..............................................................................................................................................324
13.7 Mirror Image for Facing Tool Posts ; G68,G69...............................................................................................326
13.8 Corner Chamfering/Corner Rounding I ..........................................................................................................331
13.8.1 Corner Chamfering I ; G01 X_ Z_ ,C_ ....................................................................................................331
13.8.2 Corner Rounding I ; G01 X_ Z_ ,R_........................................................................................................333
13.8.3 Interrupt during Corner Chamfering/Corner Rounding .......................................................................335
13.9 Corner Chamfering/Corner Rounding II .........................................................................................................336
13.9.1 Corner Chamfering II ; G01/G02/G03 X_ Z_ ,C.....................................................................................337
13.9.2 Corner Rounding II ; G01/G02/G03 X_ Z_ ,R_.......................................................................................339
13.9.3 Interrupt during Corner Chamfering/Corner Rounding .......................................................................340
13.10 Geometric .......................................................................................................................................................341
13.10.1 Geometric I ; G01 A_.............................................................................................................................341
13.10.2 Geometric IB ..........................................................................................................................................343
13.10.2.1 Geometric IB (Automatic calculation of two-arc contact) ; G02/G03 P_Q_ /R_......................344
13.10.2.2 Geometric IB (Automatic calculation of linear - arc intersection) ; G01 A_ , G02/G03 P_Q_H_
.........................................................................................................................................................348
13.10.2.3 Geometric IB (Automatic calculation of linear - arc intersection) ; G01 A_ , G02/G03 R_H_
.........................................................................................................................................................352
13.11 Programmable Parameter Input ; G10 L70, G11...........................................................................................356
13.12 Macro Interruption ; M96,M97........................................................................................................................358
13.13 Tool Change Position Return ; G30.1 - G30.5...............................................................................................366
13.14 High-accuracy control ; G61.1.......................................................................................................................369
13.15 Coordinate Rotation by Program ; G68.1/G69.1...........................................................................................379
13.16 Balance Cut ; G15,G14...................................................................................................................................388
13.17 Timing Synchronization between Part Systems ..........................................................................................392
13.17.1 Timing Synchronization between Part Systems ; !nL.........................................................................392
13.17.2 Start Point Designation Timing Synchronization (Type 1) ; G115.....................................................396
13.17.3 Start Point Designation Timing Synchronization (Type 2) ; G116....................................................398
13.18 2-part System Simultaneous Thread Cutting Cycle.....................................................................................400
13.18.1 2-part System Simultaneous Thread Cutting Cycle Parameter Setting Command ; G76...............400
13.18.2 2-part System Simultaneous Thread Cutting Cycle l ; G76.1.............................................................401
13.18.3 2-part System Simultaneous Thread Cutting Cycle ll ; G76.2............................................................403
13.19 Chopping ; G81.1 ............................................................................................................................................407