
6. FUNCTIONS OF THE MACRO
EXECUTOR
B–61803E–1/10
PROGRAMMING
92
During data output, EDIT blinks in the bottom right part of the screen.
During data output, the screen cannot be switched.
NOTE
1
G338 is a one–shot G code.
2 If an illegal variable number is specified, end code 115 is returned,
stopping the output processing.
(Example)
G330 P24 F500 ; Opened in the write control mode
G338 P100 Q10 F8.3 Z0 R1 ; Macro variable data output
IF [#8539 NE 0] GOTO100 ;
End of writing
G331 ; Memory card closed
GOTO200 ;
N100 Error ;
N200 Next processing ;
(6) Special format output function of macro variable data output (G338)
Macro variable data output (G338) allows output of data in a special
format using F commands.
F–9.9: Automatic decimal point position output
Commands such as F8.3 were unable to output a mixture of
data with six or more digits before the decimal point and data
with four or more digits before the point.
By specifying F–9.9 as the output format, the value of the
data to be output is judged so that the position of the decimal
point is automatically adjusted.
(Example)
G338 P10000 Q100 F–9.9 Z1 ;
F–9.8: Output of floating–point variables in a special format
Even an F–9.9 command cannot output data equal to or
greater than 10000000.0 or data equal to or less than
0.00000001 properly.
The output format F–9.8 converts internal floating–point
variables into a special output format before output.
By reading the output data with macro variable data input
(G337), the output data can retain the same format as that in
which it is when output.
(The output data is in the special format and cannot,
therefore, be edited when loaded into a personal computer.)
(Example)
G338 P10000 Q100 F–9.8 Z1 ;