
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 187 -
EXAMPLE
Macro variable output
G330 Pp Bp ..... ; Open the line
G338 P10000 Q10 F8.3 Z1 R11 ; Outputs % (EOR) at the start and
outputs
IF [#8539 NE 0] GOTO 999 ; 10 data items from #10000 without
variable numbers. Does not output %
(EOR) at the end.
G338 P11000 Q20 F8.3 Z1 R31 ; Does not output % (EOR) at the
IF [#8539 NE 0] GOTO 999 ; start and end. Instead, the format in
which the data above is followed is
used (20 data items from #11000
without variable numbers).
G338 P12000 Q10 F8.3 Z1 R21 ; Outputs 10 data items from
IF [#8539 NE 0] GOTO 999 ; #12000 following the data above
without variable numbers and
outputs % (EOR) at the end.
G331 ; Output "%" and close the line.
% LF P____ LF .... P____ LF P____ LF .... P____ LF P____ LF .... P____ LF %
Q10R11 Q20R31 Q10R21
#10000 to #10009 #11000 to #11019 #12000 to #12019
NOTE
1 G338 is a one-shot G code.
2 If improper data is specified for the variable number,
output processing is interrupted and a completion
code of 115 is set.