Call Function - Brother TC-32B Manual

Table of Contents

Advertisement

Chapter 7 Macro
(Note 5)
7.5

Call Function

Using G65 and G66 (described in a later section), another program can be called and executed.
This function is called a "macro call function". The called program is called a "macro program".
A unique canned cycle can be easily created using this function when performing the same
operation repeatedly.
A macro program call (G65, G66) can be executed in MEM mode but cannot be executed in MDI
7
mode.
The called macro program is returned to the call source by executing M99. When M02 or M30
(end of program) is executed, the macro program ends without returning to the calling source.
(Memory operation ends.)
<Difference between M99 and M02>
In addition, one macro program can call another macro program using G65 and G66. This
parent/child relationship is possible for up to four generations. (This state is described by the
phrase "the depth of nesting for macro program is up to 4-fold."This is called a "multiple nesting
call".)
A macro program call function enables the designated value to be transferred from the call source
program to the call destination program using arguments. (See 7.5.3 for details on arguments.)
M98 (sub program call) (see chapter 10 for details) is a function similar to a macro program call
(G65, G66). The difference between these functions is explained in section 7.5.3.
Each type of macro call function is explained in the following sections.
2004/01/22
IF statement and WHILE statement
IF ~ GOTO within WHILE ~ END cannot be branched to a section
outside WHILE ~ END.
WHILE [#101 EQ 0] DO 1;
:
:
IF[#101 EQ 10]GOTO 123;
:
:
END 1;
:
:
N123
   G65
     
M99
Return
G65
7 - 18
TC-32B
M02
End
0604.doc
eTCOMNCPR7-1.doc

Advertisement

Table of Contents
loading

Table of Contents