
B-63943EN-2/01 TABLE OF CONTENTS
c-1
TABLE OF CONTENTS
DEFINITION OF WARNING, CAUTION, AND NOTE................................ s-1
1 GENERAL ..............................................................................................1
2 MACRO COMPILER AND MACRO EXECUTOR...................................3
2.1 MACRO COMPILER......................................................................................4
2.1.1 P-CODE Macro and P-CODE File .......................................................................... 4
2.2 MACRO EXECUTOR.....................................................................................6
2.3 P-CODE MACRO...........................................................................................7
2.3.1 Limitations on Commands....................................................................................... 8
2.3.2 Differences from the Series 16i ............................................................................. 10
2.4 MULTI-PATH CONTROL FUNCTION .........................................................11
2.4.1 Independent Operating Environment for Each Path.............................................. 11
2.4.2 P-CODE Variables/Extended P-CODE Variables Common to Paths ................... 11
2.4.3 Multiple P-CODE Macros Independent of Paths .................................................. 12
3 EXECUTION MACRO FUNCTION .......................................................14
3.1 GENERAL....................................................................................................15
3.2 CALLING AN EXECUTION MACRO ...........................................................16
3.2.1 Simple Call (G65).................................................................................................. 26
3.2.2 Modal Call (G66/G66.1) ....................................................................................... 27
3.2.3 Macro Call Using G Code ..................................................................................... 28
3.2.4 Macro Call Using G Code (Specification of 1 Set)............................................... 30
3.2.5 Macro Call Using G Code (Specification of 3 Sets) ............................................. 31
3.2.5.1 Macro modal call using G code..........................................................................33
3.2.6 Macro Call Using M Code..................................................................................... 34
3.2.7 Macro Call Using M Code (Specification of 3 Sets)............................................. 36
3.2.8 Special Macro Call Using T Code......................................................................... 37
3.2.9 Special Macro Call Using Axis Address............................................................... 41
3.2.10 Subprogram Call (M98)......................................................................................... 47
3.2.11 Subprogram Call Using M Code ........................................................................... 48
3.2.12 Subprogram Call Using M Code in the Specified Range...................................... 50
3.2.13 Subprogram Call Using M Code (Specification of 3 Sets) ................................... 52
3.2.14 Subprogram Call Using S Code............................................................................. 54
3.2.15 Subprogram Call Using T Code ............................................................................ 55
3.2.16 Subprogram Call Using Second Auxiliary Function Code ................................... 57