Owner's manual

Paramacros
Chapter 28
28-46
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 programnumberofthe called macro. P ranges from1- 99999.
L
Programsthe numberoftimes the macro willbe executed. Lrangesfrom1 -9999,
and may be expressed asany valid parametricexpression. Ifnotspecified,the
controluses adefaultvalue of1.
A-Z
Optional argumentstatements. Maybe programmed using anyletterfromA to Z
excluding G,L,N,O,orP. Used to assign numericvalues to parametersin the
paramacro(seeTable 28.H). Argumentsmaybespecified asany valid parametric
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 G 65 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.6.1
Non-Modal Paramacro Call
(G65)