
3. EXECUTION MACRO
B–62093E–1/02
PROGRAMMING
38
Source program for registration custom macro (P–CODE program) is
programmed by the Custom macro from custom macro. But, there are
some limits for execution in Power Mate. The P–CODE program custom
macro is described below.
(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.
NOTE
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.
3.3
LIMITATION FOR
EXECUTION MACRO