
6. FUNCTIONS OF THE MACRO
EXECUTOR
B–61803E–1/10
PROGRAMMING
84
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.
(b) Deleting a file (G339 P2)
G339 P2 Ll/Ff ;
The relevant file can be deleted by the specification of ”G339
P2”.
Specify the head variable number of the variable string which
houses the file name (ASCII code) you wish to delete by address
”L”, or specify the file number of the file you want to delete by
address ”F”.
Be carefull when deleting with the file number because
subsequent file numbers will change after deletion.
(c) Changing the file name (G339 P3)
G339 P3 Ff Ll ;
The recorded file name can be changed by the specification of
”G339 P3”.
Specify the file number (1-9999) of the file name you wish to
change, by address ”F”.
Specify the head variable number of the variable string that
houses the file name (ASCII code) to be changed, with address
”L”.
Check the end code when G330-G339, has been instructed. There is no
end code for line closing processing. It is always a normal end.
#8539 Contents
0 Normal end
1 Line doesn’t open
2 Line trouble ,DSR signal OFF
3 Line trouble, Over run
4 Line trouble, Receive buffer over flow
6.4.6
End Code (#8539)