omron — Advanced Disk Operations

Advanced Disk Operations opened over an extended period of time and intermittently updated. For these types of files, the additional (significant) overhead of this mode is not as important as the benefit. When a file is being created, information about the file size is not stored in the disk directory until the file is closed. Closing a file also forces any partial sector buffers to be written to the disk. Note that aborting a program does not force files associated with it to be closed. The files are not closed (and the directory is not updated) until a KILL command is executed or until the aborted program is executed again.

Disk Commands There are several disk-oriented monitor commands that do not have a corresponding program instruction. The FCMND instruction must be used to perform the following actions from within a program: l Rename a file l Format a disk l Create a subdirectory l Delete a subdirectory The MCS instruction can be used to issue an FCOPY command from within a program. FCMND is similar to other disk I/O instructions in that a logical unit must be attached and the success or failure of the command is returned via the IOSTAT real-valued function. For details, see the documentation for the FCMND program instruction. The FCMND instruction is described in detail in the eV+ Language Reference Guide .

See the MV Controller User's Guide Accessing the Disk Directories The eV+ directory structure is identical to that used by the IBM PC DOS operating system (version 2.0 and later). For each file, the directory structure contains the file name, attributes, creation time and date, and file size. Directory entries may be read after successfully executing an FOPEND instruction. Each directory record returned by a READ instruction contains an ASCII string with the information shown in the following table. Disk Directory Format eV+Language User's Guide, v2.x, 18318-000 Rev A Page 150 Byte Size Description 1-7 7 Attribute codes, padded with blanks on right