Manual

Paramacros
Chapter 28
28-43
CAUTION: Any edits that are made to a subprogram, or to a
paramacro program (as discussed in chapter 5) that has already
been called for automatic execution, are ignored until the calling
program is disabled and reactivated. Subprograms and paramacros
are called for automatic execution the instant that the calling
program is selected as active (as discussed in chapter 7).
Use this format for calling a paramacro using the G65 command:
G65 P_ L_ A_ B_;
Where : Is :
P Indicates the programnumber 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 G65 command is non-modal. The macro is executed only at the time
the control executes the G65 block. The control calls the macro specified
by the G65 block as programmed by the P--word.
The control executes this macro until the control reaches an M99 macro
return code. The macro then returns to the next unexecuted sequential
block in the calling program unless the macro has not been repeated the
number of times as determined by the L--word. If this is the case, the
macro re-executes.
You can define the L--word or any optional argument statements in a G65
block by using any valid parametric expression. For example:
G65 P1002 L[#1+1] A[12*6] B[SIN[#101]];
28.5.1
Non-Modal Paramacro Call
(G65)