Manual

Paramacros
Chapter 28
28-46
Important: When the control executes block N040, the original value as
set in block N020 for parameter number 1 is ignored, and the most current
value (1.7) is used. The first time macro 1001 is executed, Z moves 1.1
units. The second time macro 1001 is executed, Z moves 1.7 units.
Use this format for calling a paramacro using the G66.1 command:
G66.1 P_ L_ A_ B_;
Where : Is :
P
Indicates theprogram number of thecalled macro. P ranges from1 - 99999.
L
Programs thenumber of times themacro will be executed. L rangesfrom 1- 9999,
and may be expressedas anyvalid parametricexpression. If not specified, the
control usesa default valueof 1.
A-Z
Optional argument statements. May beprogrammed usingany letter fromA toZ
excluding G, L, N, O, or P. Used toassign numericvalues toparameters inthe
paramacro (see NOTAG). Arguments may bespecified as any validparametric
expression.
The G66.1 command is modal and is executed in the same manner as the
G66 with these exceptions:
The macro programmed by the P--word in the G66 block is not executed
when the G66 block is read, whereas the macro programmed by the
G66.1 is executed when G66.1 is read.
The macro is executed in any and all blocks following the G66.1, not
just after motion blocks, except for paramacro command blocks such as
assignment, goto, etc.
Axis motion cannot be generated by normal program blocks. Axis
motion can be generated only in the program called by G66.1.
The following words, when programmed after the G66.1 block, are used
as argument assignments:
N: when programmed after a word other than N or O, is used as
assignment #14.
G: The last G-code programmed in a block will be used as an argument
statement for parameter #10. All other G-codes are interpreted as
normal.
L: Assigns value to parameter #12
P: Assigns value to parameter #16
All other argument assignments are interpreted as listed in NO TAG.
28.5.3
Modal Paramacro Call
(G66.1)