
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 193 -
- Explanation
G339 can be used to read file information, delete a file, and rename a
file.
File information reading G339 P1
File deletion G339 P2
File renaming G339 P3
To enable of the use of this function, the control mode must be file
information control mode when the line is opened (G330). To specify
file information control mode, specify 31/32 ... for address P when
opening the line.
NOTE
When the line is opened in file information control
mode, two or more successive operations such as a
file information read operation followed by a file
deletion operation cannot be specified in one line
open period. Suppose, for example, that after file
information is read and checked, the file is to be
deleted. In such a case, close the line after each
operation is performed.
Example
Order in which commands are issued
1) Open the line in file information control mode.
2) File information reading
3) Line close
4) Open the line in file information control mode.
5) File deletion
6) Line close
(1) File information reading G339 P1
G339 P1 stores file information (file name and size) in specified
macro variables.
G339 P1 Ff Ll Ss ;
F: File number specification (1 to 9999)
L: Number of the first one of the consecutive 17 macro variables
used to store the 17-character file name to be read. The file name
is stored as ASCII codes (decimal).
S: Number of the macro variable used to store the file size to be
read
By reading file information by specifying a file number for address F
and then issuing G339 P1 with a file number omitted, the file
information for the next file number can be read. If a file with the
specified file number does not exist, a completion code of 11 is set.