Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
Additional Information
The root directory of the file name is the top level of the SD Memory Card.
Precautions for Correct Use
• 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-3 for a timing chart for Execute, Done, Busy, and Error.
• 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.
• For an NJ/NX-series CPU Unit, if a file is open when the power supply is stopped with the SD Mem-
ory Card power supply switch, the file is not corrupted.
• For an NJ/NX-series CPU Unit, if a file is open and the SD Memory Card is removed before the SD
Memory Card power supply switch is pressed, the contents of the file will sometimes be corrupted.
Always turn OFF the power supply before removing the SD Memory Card.
• For an NJ/NX-series CPU Unit, 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.
• If the directory that is specified with DirName is write protected, an error occurs and the directory is
not deleted. However, any files or directories that are not write-protected inside that directory are
deleted.
• Do not simultaneously access the same file. Perform exclusive control of SD Memory Card instruc-
tions in the user program.
• 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.
• If the value of All is TRUE and the directory specified with DirName is being accessed by another
instruction.
• If the value of All is FALSE and the directory specified with DirName contains a file or directory.
• The directory specified by DirName is write-protected.
• The directory that is specified with DirName contains write-protected files or write-protected direc-
tories.
• 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 directory specified by DirName does not exist.
• The value of DirName exceeds the maximum number of characters allowed in a directory name.
• An error that prevents access occurs during SD Memory Card access.
Sample Programming
Refer to the sample programming that is provided for the FileCopy instruction (page 2-1298).
2-1322

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents