Chapter 7 Macro TC-32B
2004/01/22 7 - 20 eTCOMNCPR7-1.doc
7
7.5.2 Modal call function
When a macro program is automatically called each time an axis movement command is given
once registered, it is called a “modal call function”.
Use G66 to register a modal call and G67 to cancel registration. When a modal call is registered,
the macro program is executed after each axis movement.
Command format G66 P_L_(Argument);
P : Macro program number to be called
L : Number of calls to be repeated (up to 9999)
If “L” is omitted, “1” is automatically selected.
(See descriptions for G65).
(Argument) :Data transferred to macro. Can be omitted.
See 7.5.3 for argument.
To cancel a modal call, use the following command.
Command format G67;
[Example 1]
G66 P10: (1) Register call for program number 10.
G01X10.0Y10.0; (2) Call program number 10 after execution of.
G01X1.0Y1.0; (3) Call program number 10 after execution of .
G67; (4) Cancel registration.
G01X10.0Y10.0; (5) Does not call any program.
G01X1.0Y1.0; (6) Does not call any program.
Program number 10 is called once after (2) is executed. Program number 10 is also called once
after (3) is executed.
Programs are not called after (5) and (6) are executed.
(Note 1) G67 must be designated by a program besides a call program.
G66 mode can also be canceled using M30.
(Note 2) G66 cannot be designated in G66 mode.
(Note 3) G66 command is only used to register macro program call.
Macro programs cannot be called with this command.