omron — FCOPY program instruction

FCOPY program instruction Details If the new file already exists, or the old file does not exist, an error is reported and no copying takes place. (You cannot overwrite an existing file-the existing file must first be deleted with an FDELETE command.) If the file to be copied has the special "read-only" attribute, the new file will also have that attribute. Files with the "protected" attribute cannot be copied. (See FDIRECTORY for a description of file protection attributes.) When a file is copied, the file creation date and time are preserved along with the standard file attributes.

The only attribute that is affected is the "archived" bit, which is cleared to indicate that the file is not archived. In general, a file specification consists of six elements: 1. An optional physical device (for example, DISK>) 2. An optional disk unit (for example, D:) 3. An optional directory path (for example, DEMO\) 4. A file name (for example, NEWFILE) 5. A period character (".") 6. A file extension (for example, V2) FCOPY can also be used to write a file to a serial line: FCOPY SERIAL:n>="myfile" ;Global serial line "n" Example Create a file named "newfile.v2" on disk device "D" that is an exact copy of the existing file named "oldfile.v2" on disk device "D":

FCOPY "D:\newfile.v2" = "D:\oldfile.v2" Related Keywords FCOPY monitor command DEFAULT monitor command FRENAME monitor command eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 230