
B–62093E–1/02
6. FUNCTIONS OF THE MACRO
EXECUTOR
PROGRAMMING
73
File data on the FANUC Handy File, FANUC FLOPPY CASSETTE, FA
CARD or FANUC PROGRAM FILE M
ate can be read, prepared and
deleted, by an opening command and the instruction of control code
“G339”.
Read file data (G330)
Make file and write data (G330)
Read directory information (G330/G339 P1)
Delete file (G330/G339 P2)
Change file data (G330/G339 P3)
(1) Reading File Data (G330)
G330 Pp Bb Ss Cc Ll/Ff/Aa ;
Specify one of the address “L/F/A” at the time when the line is open
by read control mode. At the result of this action, the head of specified
file and file data reading is conducted. Refer to Section 6.4.2(1)
“Circuit open” about address “P/B/S/C”. However, specify reading
control (11/12) for address “P” and ISO(2) for address (C).
Select one of addresses L,F, or A depending on the process.
(a) Head call by file name
Head call by file name is possible if the head variable number of
the variable string which is housed in the file name is specified
by address “L”.
Set the file name by decimalized ASCII code to the variable
string of 17 variables, and specify the head variable number by
address “L”.
(Example)
When calling the file name “ABCD”, set 65(A), 66(B),
67(C), 68(D), 32...32(space) to 17 variables of common
variables #100–116.
G330 P11 B10 S2 C2 L100 ;
NOTE
1
A file name is fixed to 17 characters. Be sure to use 17 characters.
2 Specify the file name with alphanumerics and space. Alarm 8 will
be generated if code 32(space) is specified at the head of file
name.
(b) Head call by the file number
Head call can be conducted with a file number, if the file number
(1–9999) is specified with address “F”.
(Example)
When making a head call of file number 3
G330 P11 B10 S2 C2 F3 ;
(c) Head call of next file
Next file’s head call, which already exists can be conducted by
the specification of address “A”. Use this function to read files
continuously. Be sure to specify “A1” for address “A”. End code
(=8) is the other specification.
6.4.5
FANUC Floppy
Cassette Control