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

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

Advertisement

Name
*2
_Card1Protect
*2
_Card1Err
*2
_Card1Access
_Card1PowerFail
*1 For the NJ/NX-series, it is a precondition that the SD Memory Card is physically inserted and mounted normally. For an
NY-series Controller, it is a precondition that the shared folder is detected by the Controller.
*2 These variables are not used for the NY-series Controller. They are fixed to FALSE.
*3 For the NJ/NX-series, this indicates an access to the SD Memory Card. For an NY-series Controller, this indicates an
access to the shared folder.
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 the data is read to the end of the file and the size of the data is not evenly divisible by the size of the
data type of ReadBuf[], the data that is insufficient for the data size of ReadBuf[] is discarded. The file
position indicator advances to the end of the file, and the value of EOF changes to TRUE.
• Elements beyond Size times ReadBuf[] (i.e., the elements not overwritten when data is read) will
retain the values from before execution of this instruction.
• You must use the FileOpen instruction to obtain the value for FileID before you execute this instruc-
tion.
• Data is read in byte increments. The lower bytes are read before the upper bytes (little endian).
• A value is stored in EOF when the instruction is completed. Specifically, it is stored when the value of
Done changes from FALSE to TRUE.
• If ReadBuf[] is an array of structures, adjustment areas between members may be inserted depend-
ing on the composition.
• If the operating mode of the CPU Unit is changed to PROGRAM mode or when a major fault level
Controller error occurs during instruction execution, the file is closed by the system. Any read/write
operations that are in progress are completed to the end.
• Do not simultaneously access the same file. Perform exclusive control of SD Memory Card instruc-
tions in the user program.
• You cannot specify a device variable for ReadBuf[]. If you specify a device variable, the data that was
read is not assigned to ReadBuf[].
• An error occurs in the following cases. Error will change to TRUE.

NY-series Instructions Reference Manual (W560)

Meaning
Data type
SD Memory Card Write
BOOL
Protected Flag
SD Memory Card Error
BOOL
Flag
SD Memory Card
BOOL
Access Flag
SD Memory Card
BOOL
Power Interruption Flag
2 Instruction Descriptions
Description
This flag indicates if the SD Memory Card is write
protected when it is inserted and ready to use.
TRUE: Write protected.
FALSE: Not write protected.
This flag indicates if an unspecified SD Memory
Card (e.g., an SDHC card) is mounted or if the
format is incorrect (i.e., not FAT16 or corrupted).
TRUE: Error.
FALSE: No error.
This flag indicates if the SD Memory Card is cur-
rently being accessed.
TRUE: Being accessed.
FALSE: Not being accessed.
This flag indicates if an error occurred in complet-
ing processing when power was interrupted
*3
during access
. This flag is not cleared automat-
ically.
TRUE: Error.
FALSE: No error.
2
2-1267

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents