EasyManua.ls Logo

Omron NJ501-1500

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
Loading...
2 Instruction Descriptions
2-852
NJ-series Instructions Reference Manual (W502)
FileRename
The FileRename instruction changes the name of the specified file or directory in the SD Memory Card.
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.
Instruction Name FB/FUN Graphic expression ST expression
FileRename Change File Name FB FileRename_instance(Execute,
FileName, NewName, OverWrite,
Done, Busy, Error, ErrorID);
Variables
Name Meaning I/O Description Valid range Unit Default
FileName Original file
name
Input
Original file name
Depends on data type.
---
''
NewName New file
name
New file name
OverWrite Overwrite
enable
TRUE: Enable overwrite.
FALSE: Prohibit overwrite.
FALSE
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
FileName OK
NewName OK
OverWrite OK
Function
Value of OverWrite Treatment
TRUE (Enable overwrite.) The existing file or directory is overwritten.
FALSE (Prohibit overwrite.) The file or directory is not overwritten and an error occurs.
FileRename
Execute Done
FileName Busy
NewName Error
OverWrite ErrorID
FileRename_instance

Table of Contents

Related product manuals