
B–61803E–1/10
3. EXECUTION MACRO
PROGRAMMING
33
Source program of execution macro should be programmed in the same
way as for custom macro. But, there are some limits for execution.
(1) Macro call
Macro call from an execution macro is executed with ”G65” as the
custom macro . In the execution macro , since it is a macro program
itself to be called from the user program with G (M, T) code or
specified code, it is impossible to use a G
CODE call, etc. from
execution macro.
G65 P (Program No.) L (Number of repetition) <Argument
specification> ;
(2) Argument specification
Argument specification is the same as the
custom macro.
(3) Variable
Expression, argument, etc. of variables are the same as those of the
Custom macro.
CAUTION
Common variables referred by a P–CODE program and
Common variables referred by user program are completely
different.
Refer to ”5.3 Common variable”.
(a) P–CODE variable (#10000 – )
Any number of 100 unit of P-CODE exclusive variables starting
from #10000 can be used.
Since it can be used from execution, it is considered as extension
of common variable #500.
However, execution macro cannot refer to P-CODE variable in
arrangement type.
For details, refer to ”5.4 P-CODE exclusive variable”.
(4) Operation command
Operation commands can be used as with the custom macro.
(5) Control command
Both divergence and repetition commands can be used .
IF <Conditional expression> GOTO n;
WHILE <Conditional expression> DO m;
END m;(m=1,2,3)
(6) Modal call from execution macro
Modal call cannot be made.
(7) Macro and subprogram multiplexity in execution macro.
Separately from the user program multiplexity, 4-stack nesting of
macro program, and 4-stack nesting of subprogram are possible on
the execution macro.
(8) Cautions
(a)
Separate registration of a program cannot be made. Max. 400
programs can be registered to the ROM.
(b) In one program, limit the sequence number used for branch
destination (GOTO) to 200. In one program, the same sequence
No. cannot be designated for others.
3.3
LIMITATION FOR
EXECUTION MACRO