EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #889 background imageLoading...
Page #889 background image
2-841
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
SD Memory Card Instructions
2
FileCopy
The following figure shows a programming example. Here, the file ‘DEF.bin’ is overwritten with the file
‘ABC.bin.’
The root directory of the file name is the top level of the SD Memory Card.
• 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.
• If the copy operation fails, the file specified by DstFileName may remain in an incomplete state in the
SD Memory Card.
Related System-defined Variables
Name Meaning Data type Description
_Card1Ready SD Memory Card
Ready Flag
BOOL This flag indicates if the SD Memory Card is physically
inserted and is mounted normally, i.e., if it can be
accessed by instructions and communications com-
mands.
TRUE: Can be used.
FALSE: Cannot be used.
_Card1Protect SD Memory Card Write
Protected Flag
BOOL 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.
_Card1Err SD Memory Card Error
Flag
BOOL This flag indicates if an unspecified SD Memory Card
(e.g., an SDHC card) is mounted or if the format is incor-
rect (i.e., not FAT16 or corrupted).
TRUE: Error.
FALSE: No error.
_Card1Access SD Memory Card
Access Flag
BOOL This flag indicates if the SD Memory Card is currently
being accessed.
TRUE: Being accessed.
FALSE: Not being accessed.
_Card1PowerFail SD Memory Card
Power Interruption Flag
BOOL This flag indicates if an error occurred in completing pro-
cessing when power was interrupted during SD Memory
Card access. This flag is not cleared automatically.
TRUE: Error.
FALSE: No error.
Additional Information
Precautions for Correct Use
FileCopy_instance(A, ’ABC.bin’, ‘DEF.bin’,
TRUE, abc, def, ghi, jkl);
LD
ST
‘ABC.bin’
‘DEF.bin’
TRUE
A
FileCopy
Execute Done
SrcFileName Busy
DstFileName Error
OverWrite ErrorID
FileCopy_instance
def
ghi
jkl
abc

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals