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.
• Always use a variable for the input parameter to pass to WriteVar. A building error will occur if a con-
stant is passed.
• If WriteVar is an enumeration, you cannot directly pass an enumerator to it. A building error will occur
if an enumerator is passed to it directly.
• If the specified file is larger than the size of WriteVar, an error does not occur and only data that cor-
responds to the size of WriteVar is written. Once this instruction is executed, the specified file is
reduced to the size of WriteVar.
• Data is written in byte increments. The lower bytes are written before the upper bytes (little endian).
• If WriteVar is a structure, adjustment areas between members may be inserted depending on the
composition.
• 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.
• There is insufficient space available on the SD Memory Card.
• The value of FileName is not a valid file name.
• The maximum number of files or directories is exceeded.
• A file with the name FileName already exits and the file is being accessed.
• A file with the name FileName already exits and the value of OverWrite is FALSE.
• A file with the name FileName already exits and the file is write protected.
• 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 FileName exceeds the maximum number of bytes allowed in a file name.
• An error that prevents access occurs during SD Memory Card access.
2-1246

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents