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

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

Advertisement

The following figure shows a programming example. Here, the file 'DEF.bin' is overwritten with the file
'ABC.bin.'
LD
A
'ABC.bin'
'DEF.bin'
TRUE
The FileCopy instruction overwrites the file specified by source file SrcFileName to
designation file DstFileName in the SD Memory Card.
SrcFileName
'ABC.bin'
OverWrite
TRUE
Overwriting is enabled.
Related System-defined Variables
Name
_Card1Ready
SD Memory Card
Ready Flag
*2
SD Memory Card Write
_Card1Protect
Protected Flag
SD Memory Card Error
*2
_Card1Err
Flag
*2
SD Memory Card
_Card1Access
Access Flag
_Card1PowerFail
SD Memory Card
Power Interruption Flag

NY-series Instructions Reference Manual (W560)

FileCopy_instance
abc
FileCopy
Execute
Done
SrcFileName
Busy
def
ghi
DstFileName
Error
OverWrite
ErrorID
jkl
DstFileName 'DEF.bin'
Overwritten.
Meaning
Data type
BOOL
BOOL
BOOL
BOOL
BOOL
2 Instruction Descriptions
ST
FileCopy_instance(A, 'ABC.bin', 'DEF.bin',
Description
This flag indicates if the SD Memory Card can be
accessed by instructions and communications com-
*1
mands.
TRUE: Can be used.
FALSE: Cannot be used.
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 incor-
rect (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 pro-
cessing when power was interrupted during access
This flag is not cleared automatically.
TRUE: Error.
FALSE: No error.
TRUE, abc, def, ghi, jkl);
*3
.
2-1299
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents