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

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

Advertisement

• 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. However, use the FileClose instruction to
close the file, since the file remains open.
• 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 and the SD Memory Card is removed before the SD
Memory Card power supply switch is pressed, the file will remain open. Use the FileClose instruction
to close the file.
• 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, the file will remain open, but it will not be possible to read or write the file even if the
SD Memory Card is inserted again. To read/write the file, close the file and then open it again.
• 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.
• The value of Mode is _READ_EXIST or _RDWR_EXIST and the file specified with FileName does
not exist.
• The value of FileName is not a valid file name.
• The maximum number of files or directories is exceeded.
• The file specified by FileName is being accessed.
• The file specified by FileName is write protected.
• An attempt was made to open more than five files 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.
• The value of Mode is outside of the valid range.
• For CPU Unit version 1.10 or later, if you try to open a file that is already open, a File Already in
Use error occurs and the file ID of the open file is stored in the FileID output variable. The FileID
output variable does not change if any other error occurs. For CPU Unit version 1.09 or earlier, 0
is stored in the FileID output variable if an error occurs.
Sample Programming
Refer to the sample programming for the following instructions: FileRead (page 2-1265), FileWrite
(page 2-1273), FileGets (page 2-1281), and FilePuts (page 2-1289).

NY-series Instructions Reference Manual (W560)

2 Instruction Descriptions
2-1257
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents