
B–62073E–2/03
4.CONVERSATIONAL MACRO FUNCTION
111
PTCR=0:
The CR code is not output after an LF when macro variable
data is output.
LF N30000P1234 LF% P5678 LF %
PTCR=1:
Two CR codes are output after an LF when macro variable data
is output.
LF% CR CR N30000P1234 LF CR CR
P1234 LF CR CR %
Addresses F and Z are specified in the same way as for the screen
display control code, G243. Address F allows the following
specifications:
1. If F=–9.9 is specified, the significant digits of macro variable data
are automatically determined before output. The same tape
format as above is used for output. However, for variable data
other than
–999999999. to –0.00000001 and
999999999. to 0.00000001
an LF is output immediately after P as in the case of the null value.
2. If F=–9.8 is specified, macro variable data is output in
floating–point format. The same tape format as above is used for
output except that address P is replaced by address Q, and the
variable data section is always 10 characters long.
Macro variable data output in this tape format is read by G337
without being concerned, and is stored in the variable in
floating–point format.
At the time of output, feed control is not exercised. When feed
control is required with a device such as paper tape/punch, use
G336 (data transmission).
Notes
1 G338 is a one–shot G–code.
2 If invalid data is used to specify a variable number, output
processing is terminated with completion code 115.
(8) FANUC Cassette control
A specification of opening a line and the G339 control code allow
operations such as file data read, file creation, and file deletion on the
FANUC Cassette or the FANUC Program File Mate.
File data read (G330)
File creation and data write (G330)
Directory information read (G330/G339 P1)
File deletion (G330/G339 P2)
1) File data read (G330)
G330 Pp Bb Ss Cc (Ll/Ff/Aa);
By specifying address L, F, or A when opening a line in the read
control mode, a specified file on the FANUC Cassette can be searched
for to read file data.