
B–61803E–1/10
6. FUNCTIONS OF THE MACRO
EXECUTOR
PROGRAMMING
79
F–9.9: Automatic decimal point output
If F8.3 or the like is specified, data having six or more digits to
the left of the decimal point and data having four or more decimal
places cannot be output altogether.
If F–9.9 is specified as the output format, the value of the output
data is judged and the position of the decimal point is
automatically adjusted.
Example) G338 P10000 Q100 H–9.9 Z1;
F–9.8: Floating–point special output
If F–9.9 is specified, data equal to or greater than 10000000.0 or
smaller than 0.00000001 cannot be correctly output.
If the output format F–9.8 is selected, internal floating–point
variables are converted into a special output format and output.
The output data can be accurately restored to the original value
if it is read by specifying macro variable data input (G337).
(Because the output is presented in a special format, the data may
be read by a personal computer or the like but cannot be edited.)
The conversational macro can input and output a macro variable via the
reader/punch interface. This function can be extended so that two or more
variable groups can be output at a time and the output data can be read into
another variable.
(1) Outputting macro variables
By adding address R to G338 described in (2) of Section 6.4.3, the
tape format of the variable data to be output can be controlled.
(Command format)
G338 Pp Qq Ff Zz Rr;
-------------
R0 : Standard format (Same as when R is not specified)
R1 : Variable numbers are not output.
R10 : At the end of the tape, % (EOR) is not output.
R11 : Variable numbers are not output. At the end of the tape,
% (EOR) is not output.
R20 : At the beginning of the tape, % (EOR) is not output.
R21 : Variable numbers are not output. At the beginning of the
tape, % (EOR) is not output.
R30 : At the beginning and end of the tape, % (EOR) is not
output.
R31 : Variable numbers are not output. At the beginning and
end of the tape, % (EOR) is not output.
(a) When variable numbers are not output, the function for inputting
a macro variable (G337) can read the output variable data into a
variable indicated by address P.
(b) When % (EOR) is not output at the beginning and/or end of a tape,
two or more variable groups can be output to form a single tape
format.
(Example)
G330 Pp Bb ... ;
6.4.4
Extending the Function
for Inputting and
Outputting a Macro
Variable