Filerename - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

FileRename

The FileRename instruction changes the name of the specified file or directory in the SD Memory Card.
Instruction
FileRename
Change File Name
Variables
Name
Meaning
FileName
Original file
name
NewName
New file
name
OverWrite
Overwrite
enable
Bit strings
FileName
NewName
OverWrite
OK
Function
The FileRename instruction changes the name of the file or directory specified by original file name
FileName to new file name NewName in the SD Memory Card.
If a file or directory with the name NewName already exists in the SD Memory Card, the following pro-
cessing is performed depending on the value of overwrite enable OverWrite.
Value of OverWrite
TRUE (Enable overwrite.)
FALSE (Prohibit overwrite.)
2-1312
Name
FB/FUN
FB
I/O
Description
Original file name
New file name
Input
TRUE: Enable overwrite.
FALSE: Prohibit overwrite.
The existing file or directory is overwritten.
The file or directory is not overwritten and an error occurs.
Graphic expression
FileRename_instance
FileRename
Execute
Done
FileName
Busy
NewName
Error
OverWrite
ErrorID
Valid range
66 bytes max. (65 sin-
gle-byte alphanumeric
characters plus the final
NULL character)
Depends on data type.
Integers
Treatment
NY-series Instructions Reference Manual (W560)
ST expression
FileRename_instance(Execute,
FileName, NewName, OverWrite,
Done, Busy, Error, ErrorID);
Unit
Default
''
---
FALSE
Times, durations, dates,
and text strings
OK
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents