15 QnACPU DEDICATED COMMANDS
15.3 File Control
323
15
Create new file (Register file name) (command: 1202)
The following examples show the control procedure for registering a new file and reserving a file area on the specified disk.
Write data to the file created using this function with the following function.
Page 325 Write to file (command: 1203)
The content of file in which data is not written cannot be read.
• A new file can be created on the specified drive memory within the size of consecutive unused clusters.
Creating a new file considering the rest of the capacity for future use is recommended.
• The QnACPU management time is registered as the last edit date and time to a new file created using this
function.
Message format
■Request data
■Response data
File No. is stored. (Page 298 File No.)
Data specified by request data
■Command
■Subcommand
■Keyword
Allow/prohibit the access to the file of the target memory. (Page 298 Keyword)
■Setting flag
Data that indicates whether the keyword is registered in the specified drive. (Page 298 Setting flag)
ASCII code Binary code
ASCII code Binary code
ASCII
Subcommand Keyword Setting flag Drive name
Fixed value Fixed value
File name
Extension
Attribute
Size
Fixed value
Binary
Subcommand
Setting
flag
Keyword
Drive name
Fixed value Fixed value
File name
Extension
Attribute
Size
Fixed
value
02
H
12
H
00
H
00
H