
B-63784EN/01 TABLE OF CONTENTS
c-7
17.4 MACRO STATEMENTS AND NC STATEMENTS.....................................668
17.5 BRANCH AND REPETITION.....................................................................669
17.5.1 Unconditional Branch (GOTO Statement).......................................................... 669
17.5.2 Conditional Branch (IF Statement)...................................................................... 670
17.5.3 Repetition (While Statement).............................................................................. 672
17.6 MACRO CALL............................................................................................675
17.6.1 Simple Call (G65)................................................................................................ 676
17.6.2 Modal Call : Move Command Call (G66)........................................................... 682
17.6.3 Modal Call : Per-Block Call (G66.1)................................................................... 685
17.6.4 Macro Call Using G Code ................................................................................... 686
17.6.5 Macro Calls with G Codes (Specification of Multiple G Codes) ....................... 688
17.6.6 Macro Calls with G Codes with the Decimal Point
(Specification of Multiple G Codes) ................................................................... 689
17.6.7 Macro Call Using an M Code.............................................................................. 690
17.6.8 Macro Calls with M Codes with the Decimal Point
(Specification of Multiple G Codes) ................................................................... 691
17.6.9 Subprogram Call Using an M Code..................................................................... 692
17.6.10 Subprogram Call Using an M Code (Specification of Multiple G Codes).......... 693
17.6.11 Subprogram Calls Using a T Code ...................................................................... 694
17.6.12 Subprogram Calls Using a S Code ...................................................................... 695
17.6.13 Subprogram Calls Using a 2nd Auxiliary Function Code................................... 696
17.6.14 Sample Program................................................................................................... 697
17.7 PROCESSING MACRO STATEMENTS....................................................699
17.8 REGISTERING CUSTOM MACRO PROGRAMS .....................................701
17.9 CODES AND RESERVED WORDS USED IN CUSTOM MACROS .........702
17.10 WRITE-PROTECTING COMMON VARIABLES........................................704
17.11 DISPLAYING A MACRO ALARM AND MACRO MESSAGE
IN JAPANESE............................................................................................705
17.12 EXTERNAL OUTPUT COMMANDS ..........................................................706
17.13 LIMITATIONS ............................................................................................711
17.14 INTERRUPTION TYPE CUSTOM MACRO...............................................713
17.14.1 Specification Method........................................................................................... 714
17.14.2 Details of Functions............................................................................................. 715
18 HIGH-SPEED CUTTING FUNCTICNS ...............................................725
18.1 MULTIBUFFER (G05.1).............................................................................726
18.2 DECELERATION BASED ON ACCELERATION DURING CIRCULAR
INTERPOLATION ......................................................................................730