
15. CUSTOM MACRO
15.2
Creation of Custom Macro Body
(
)
a
(b)
(cl
w
w
(3)
(
1
a
Using a variable with addresses/,:,
0 and N is prohibited,
(i.e.,:#27
or
N#I
cannot be used).
The value of n (n = I to 9) in an optional block
skip/n
cannot be used as a
variable.
A variable number cannot be replaced by a variable. When 5 in
#5
is replaced
with
#SO,
it does not become
##30
but
#[#30].
The value of a variable cannot exceed the maximum set for each address.
For example, when
#I40
=
120,
G#I40 exceeds the maximum.
When a variable is used for address data, its value is rounded to the range of
the numerical values usable for each address.
By using < Formula),
as explained later, a numerical value following the
address can also be replaced with < Formula).
c
address
)
[
<formula
a]
or
< address
>-[
< Formula >
]
indicates that the value of the
c
formula
)
or the
value of the <formula) multiplied by
-1
is substituted for the command value
of the address.
Note that a constant with no decimal point used between
brackets is assumed to have a decimal point at its end.
Example 4)
X[#24
+ #I 8COS [#I
]]
Z-[#I
8 + #26]
Undefined variables
The value of a variable which has not yet been defined is called <vacant
>.
Variable
#O
is used for a variable that is always <vacant > .
An
undefined variable has the following nature:
Quotation
When an undefined variable is quoted, the address itself is also ignored.
UN
When #I =
<vacant)
G90XI
ooY#I
lL
G90XlOO
Operation
When #I = 0
G90Xl
OOY#I
&
G90Xl
OOYO
e vacant
>
is the same as 0 except when replaced by <vacant).
When #I = <vacant
>
#2=#1
&
#2
= <vacant >
#en #I = 0
#2=#1
&
#2=0
#2=#1
+#I
4
#2=0
1
an