
6. FUNCTIONS OF THE MACRO
EXECUTOR
B–61803E–1/10
PROGRAMMING
82
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.
(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 ;