15 QnACPU DEDICATED COMMANDS
15.3 File Control
321
15
Register and deregister file locks (command: 0808)
The following examples show the control procedure for registering and deregistering a file lock.
Restarting QnACPU (such as resetting CPU module) with the file lock registered results in the file lock
deregistered state.
Message format
■Request data
■Response data
There is no response data for this command.
Data specified by request data
■Command
■Subcommand
• Register
• Deregister
■File lock mode
A data to specify whether a locked file is to be forcefully unlocked in order to allow other devices to access the specified file.
(Page 304 File lock mode)
■Drive name
A data to specify the drive in a CPU module of which files are to be managed. (Page 298 Drive name, Drive No.)
■File No.
A data to specify the registration number of files. (Page 298 File No.)
■File name
Character string data of a file name. (Page 299 File name, extension, and attribute)
■Extension
A character string data of extension of a file. (Page 299 File name, extension, and attribute)
■Attribute
A data to specify the file attribute (applicability of data read/write). (Page 299 File name, extension, and attribute)
The attribute assigned by a new file creation, etc. is valid as the attribute of the file that will be locked and unlocked. When
registering and deregistering file lock, handle the file attribute as dummy data.
ASCII code Binary code
ASCII code Binary code
ASCII code Binary code
Subcommand File lock mode Drive name File No. File name
Extension
Attribute
Command