
B–62093E–1/02
6. FUNCTIONS OF THE MACRO
EXECUTOR
PROGRAMMING
75
(3) Control of Directory Information (G330/G339)
The control of directory information is possible with control code
“G339”.
Read directory information (G339 P1)
Delete file (G339 P2)
Change file name (G339 P3)
The control mode at line opening shall be of directory information to
use this function. Instruct P=31 at the opening time for specification
of directory information.
G330 Pp Bb Ss Cc ;
P31 : Channel 1 Directory information control
Refer to the section on line opening for address “B/S/C”. Be sure to
specify ISO (2) for address “C”.
Do not instruct several functions continuously in one opening time
for every function of directory reading, file deleting, file name
changing if you open with the control mode of directory information.
For instance, close the line once to delete the file after reading and
checking directory information, as follows;
1. Open with the control mode of directory information
2. Read directory information
3. Close the line
4. Open with the control mode of directory information
5. Delete a file
6. Close the line
The same function can be instructed several times in one openning.
(a) Reading directory information
G339 P1 Ff Ll Ss ;
File directory information can be read to a specified variable by
specifying “G339 P1”.
Specify the file number(1–9999) for which the directory
information is to be read by address “F”.
Address “L” specifies the head variable number of a continuous
17 variables which houses the read file name. The file name is
read with decimalized ASCII code every character.
Address “S” specifies the variable number which houses the read
file size.
If you have specified (F specification) the file number once, the
next directory information can be read by instructing “G339 P1”
without F specification.
End code =11 reports that the directory of the specified file
number does not exist.