
B–62073E–2/03
4.CONVERSATIONAL MACRO FUNCTION
113
Example:Creating a file named ABCD
In 17 variables from #100 to #116, set 65 (A), 66 (B), 67 (C),
68 (D), 32, . . . , 32 (space).
G330 P201 B10 S12 C0 L100 ;
Notes
1 A file name must always be 17 characters long. A file name
shorter than 17 characters must be padded on the right with
spaces (32) to make a name 17 characters long.
2 A file name must consist of alphanumeric characters and
spaces. However, completion code 20 is returned if a file
name starts with a space code (32).
3 A created file is added to the end of files already registered.
(ii) Creating a file by file number
By specifying a file number (1 to 9999) with address F, a file
with the specified file number can be created so that data can
be written to the file.
Example:Creating a file with file number 3
G330 P201 B10 S12 C1 F3 ;
Notes
1 When a file is created by specifying a file number, the
original file with the specified file number and the all files with
the succeeding file numbers are deleted.
2 To create a file by file number, the file number of a file
already registered only can be specified. For file addition,
a file must be created by file name.
3) Directory information control (G330/G339)
With control code G339, directory information can be controlled.
Directory information read (G339 P1)
File deletion (G339 P2)
To use this function, a line must be opened in a directory information
control mode. To specify a directory information control mode, 301,
302, 303, 310, or 313 must be specified in address P when a line is
opened.
G330 Pp Bb Ss Cc ;
P301: Directory information control with RS–232–C 1
P302: Directory information control with RS–232–C 2
P303: Directory information control with RS–232–C 3
P310: Directory information control with remote buffer
P313: Directory information control with RS–422
For address B/S/C specification, see the description of opening a line.
ISO (0) must be specified in address C.
When a line is opened in a directory information control mode, a
directory information read operation and file deletion operation must
not be specified more than once during the same line opening period.
For example, when a file is to be deleted after directory information
is read for checking, the line must be closed after each operation as
follows: