
15. CUSTOM MACRO
15.2
Creation of Custom Macro Body
(5)
Combination of arithmetic operations
The above arithmetic operations and functions can be combined. The order of
priority in an arithmetic operation is function, multiplication arithmetic then
addition arithmetic.
(Example 1)
#i
=
#j
+
WSIN
[#I
]
\
/
0
\
V
\_
Y
a,
0
Sequence of arithmetic operations
(6)
Modification of arithmetic sequence using
A portion to be assigned priority in an arithmetic sequence can be enclosed in
[
1
.
[
]
can be nested up to five times (including
[
]
used in functions).
(Example 2)
#i=SIN
[
[
[
#j+#k
]
‘W+#m
]
#tn
]
(Three fold nesting)
(7)
Precision
Always consider the precision of a custom macro function used for preparation
of programs.
(a) Data format
Numeric data handled by a custom macro is in a floating decimal point format
as follows:
M*2E
where
M:
I
-bit sign +
310bit
binary data
E: I-bit sign +
7-bit
binary data
(b) Operational precision
An operation executed once generates the following error. These errors are
accumulated with each repeated operation.
l-93