
6.MACRO EXECUTOR FUNCTION B-63943EN-2/01
- 190 -
Example
To search for the beginning of the file "ABCD," set
65 (A), 66 (B), 67 (C), 68 (D), 32, 32, ..., and 32
(space) in 17 macro variables #100 to #116.
G330 P101 B10 S12 C0 L100 ;
The above command searches for the beginning of
the file "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.
(2) Searching for the beginning of a file using its file number
By specifying address F, it is possible to search for the beginning of a
file using its file number.
Specify the number of the file to search for (1 to 9999).
Example
To search for the beginning of a file with file number
3, enter the following:
G330 P11 B10 S12 C2 F3;
(3) Searching for the beginning of the next file
By specifying address A, it is possible to search for the beginning of
the file following the one the beginning of which has been searched
for. Use this address to read files in succession. For address A, always
specify 1 (a = 1). Otherwise, a completion code of 8 is set.
Example
To search for the beginning of the file following the
one the beginning of which has been searched for,
enter the following:
G330 P11 B10 S12 C2 A1 ;