
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 191 -
File creation G330
- Format
G330 Pp Bb Ss Cc (Ll / Ff) ;
- Explanation
When a line is opened in transmission control mode, with either
address L and F specified, it is possible to create a new file on the
FANUC cassette.
For an explanation of specifying addresses P, B, S, and C, see the
explanation of line open G330. Address P must be writing control (p
= 21/22 ....).
Select either address L or F, referring to the following explanation.
(1) Creating a file with a file name
By specifying address L, it is possible to create a file with a file name.
Set the ASCII codes (decimal) of the file name in macro variables
having consecutive 17 numbers and specify the number of the first
macro variable for address L.
Example
To create a file "ABCD," set 65 (A), 66 (B), 67 (C),
68 (D), 32, 32, ..., and 32 (space) in 17 macro
variables #100 to #116.
G330 P21 B10 S12 C2 L100 ;
The above command crates a file with the file name
"ABCD."
NOTE
1 The file name must consist of 17 characters. If the
file name consists of less than 17 characters, fill the
remaining variables with a value of 32 (space) to
make the name consist of 17 characters.
2 The file name can use alphanumeric characters and
spaces. The file name cannot, however, start with a
space. If this occurs, a completion code of 8 is set.
3 The created file is added at the end of the already
registered ones.