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 name of the file 'ABC.bin' is changed to
'DEF.bin.'
LD
A
'ABC.bin'
'DEF.bin'
TRUE
The FileRename instruction changes the name of the file specified by original file name
FileName to new file name NewName in the SD Memory Card. If the file already exists,
it is overwritten.
FileName
'ABC.bin'
OverWrite TRUE
Overwriting is enabled.
Related System-defined Variables
Name
_Card1Ready
*2
_Card1Protect
*2
_Card1Err
*2
_Card1Access
_Card1PowerFail

NY-series Instructions Reference Manual (W560)

FileRename_instance
FileRename
Execute
Done
def
FileName
Busy
ghi
NewName
Error
jkl
OverWrite
ErrorID
File name is changed.
NewName 'DEF.bin'
Meaning
Data type
SD Memory Card
BOOL
Ready Flag
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
ST
FileRename_instance(A, 'ABC.bin', 'DEF.bin',
abc
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
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
*3
access
. This flag is not cleared automatically.
TRUE: Error.
FALSE: No error.
2 Instruction Descriptions
TRUE, abc, def, ghi, jkl);
Description
2-1313
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents