2 Instruction Descriptions
2-854
NJ-series Instructions Reference Manual (W502)
• Execution of this instruction is continued until processing is completed even if the value of Execute
changes to FALSE or the execution time exceeds the task period. The value of Done changes to
TRUE when processing is completed. Use this to confirm normal completion of processing.
• Refer to Using this Section on page 2-2 for a timing chart for Execute, Done, Busy, and Error.
• If the directories are different for FileName and NewName, the file is moved to the directory that is
specified with NewName.
• If a file is open when the operating mode of the CPU Unit is changed to PROGRAM mode or when a
major fault level Controller error occurs, the file is closed by the system. Any read/write operations
that are in progress are completed to the end.
• If a file is open when the power supply it stopped with the power switch, the file is not corrupted.
• If a file is open and the SD Memory Card is removed before the power switch is pressed, the contents
of the file will sometimes be corrupted. Always turn OFF the power supply before removing the SD
Memory Card.
• If a file is open when the power supply is stopped or the SD Memory Card is removed, it will not be
possible to read or write the file even if the SD Memory Card is inserted again.
• An error occurs in the following cases. Error will change to TRUE.
• The SD Memory Card is not in a usable condition.
• The SD Memory Card is write protected.
• The file directory specified with FileName does not exist.
• The value of FileName or NewName is not a valid file name or directory name.
• The file specified by FileName is being accessed.
• There is a subdirectory in the directory that was specified for FileName and the value of OverWrite
is TRUE.
• A file with the name NewName already exits and the value of OverWrite is FALSE.
• A file with the name NewName already exits, the file is write protected, and the value of OverWrite
is TRUE.
• If more than four SD Memory Card instructions that do not have a FileID variable (i.e., FileWrite-
Var, FileReadVar, FileCopy, DirCreate, FileRemove, DirRemove, and FileRename) are executed
at the same time.
• The value of NewName exceeds the maximum number of characters allowed in a file name or
directory name.
• An error that prevents access occurs during SD Memory Card access.
Precautions for Correct Use