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 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.
• 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 file specified by FileName does not exist.
• The file specified by FileName is being accessed.
• 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 characters allowed in a file name.
• An error that prevents access occurs during SD Memory Card access.
Sample Programming
In this sample, the file named 'ABC.bin' is deleted from the SD Memory Card.
LD
Internal
Variables
External
Variables

NY-series Instructions Reference Manual (W560)

Variable
OperatingEnd
BOOL
Trigger
BOOL
Operating
BOOL
RS_instance
RS
FileRemove_instance
FileRemove
Variable
_Card1Ready
Data type
Initial value
FALSE
FALSE
FALSE
Data type
Comment
BOOL
SD Memory Card Ready Flag
2 Instruction Descriptions
Comment
Processing completed.
Execution condition
Processing
2-1309
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents