Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

Name
_Card1Protect
SD Memory Card Write
Protected Flag
_Card1Err
SD Memory Card Error
Flag
_Card1Access
SD Memory Card
Access Flag
_Card1PowerFail
SD Memory Card
Power Interruption Flag
Additional Information
You must open files with the FileOpen instruction for the following instructions: FileSeek, FileRead, File-
Write, FileGets, and FilePuts.
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-2 for a timing chart for Execute, Done, Busy, and Error.
• You must use the FileOpen instruction in advance to obtain the value for FileID.
• You must use this instruction to close any file that is opened with the FileOpen instruction after you
finish using it.
• 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.
• If a file is open when the power supply it stopped with the power switch, the file is not corrupted. The
file, however, will remain open. Use the FileClose instruction to close the file.
• If a file is open and the SD Memory Card is removed before the power switch is pressed, the contents
of the file will sometimes be corrupted. Always turn OFF the power supply before removing the SD
Memory Card.
• If a file is open and the SD Memory Card is removed before the power switch is pressed, the file will
remain open. Use the FileClose instruction to close the file.
• 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.
• An error occurs in the following cases. Error will change to TRUE.
• The file specified by FileID does not exist.
• The file specified by FileID is already closed.
• The file specified by FileID is being accessed.
• An error that prevents access occurs during SD Memory Card access.

NJ-series Instructions Reference Manual (W502)

Meaning
Data type
BOOL
BOOL
BOOL
BOOL
2 Instruction Descriptions
Description
This flag indicates if the SD Memory Card is write pro-
tected 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 currently
being accessed.
TRUE: Being accessed.
FALSE: Not being accessed.
This flag indicates if an error occurred in completing
processing when power was interrupted during SD
Memory Card access. This flag is not cleared auto-
matically.
TRUE: Error.
FALSE: No error.
2
2-807

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents