
6. FUNCTIONS OF THE MACRO
EXECUTOR
B–62093E–1/02
PROGRAMMING
74
(Example)
When making a head call of the next file which is being called
now
G330 P11 B10 S2 C2 A1 ;
(2) Making Files and Writing Data (G330)
G330 PpB
b
Ss Cc (Ll/Ff) ;
New files are made and data can be written on a FANUC cassette by
specifying one of address L or F when the communication line is
opened with transmission control mode.
Refer to 6.4.2(1) “Circuit open” for the specification of address
“P/B/S/C”. Be sure to specify transmission control (21/22) for
address “P”, and ISO (2) for address “C”.
Select one of address L or F by processing.
(a) Making files by file name
A new file can be made and data can be written on a FANUC
cassette with a specified file name, if you specify the head
variable number of a variable string describing a file name by
address “L”.
Set the file name by decimalized ASCII code to a variable string
of 17 variables. Set the head variable number with address “L”.
(Example)
If you make a file of file name “ABCD”;
65(A), 66(B), 67(C), 68(D), 32...32(space) shall be set to the
17 common variables of #100–116
G330 P21 B10 S2 C2 L100 ;
CAUTION
A new file is added to the end of recorded files.
NOTE
1 A file name is fixed to 17 characters. Be sure to fill spaces(code
32), if the file name is less than 17 characters.
2 Specify a file name with alphanumeric and spaces. Alarm 8 will be
generated if the 32(space) code is specifyed at the head of the file
name.
(b) Making files by file number
A new file can be made and data can be written to a specified file
number by specifying the file number (1–9999) after address “F”.
(Example)
To make file No.3, specify as follows:
G330 P21 B10 S2 C2 F3 ;
NOTE
1 If you make a file with the file number, be careful that every file
which was previously input in the specifyed file number, and all
subsequent file numbers are deleted.
2 Preparation of files by file number can only be conducted for the
existing files. Files can be added only by file name specification.