18.10 CREN (File Rename)
■
Ladder diagram
■
List of operands
Operand Description
S1
Starting address of the device area that stores the path name (folder name + file name: maximum
256 characters) of the file to be renamed and the number of characters of the path name (data
format: character data)
Specify the number of characters for [S1], and path name (folder name + file name) for [S1+1] and
successive operand.
S2
Starting address of the device area that stores the path name (folder name + file name: maximum
256 characters) of the file after being renamed and the number of characters of the path name
(data format: character data)
Specify the number of characters for [S2], and path name (folder name + file name) for [S2+1] and
successive operand.
The folder name can be omitted
■
Devices that can be specified (indicated by ●)
Operan
d
16-Bit device:
32-Bit
device:
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
(Note 1)
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX K U H SF
D
F
" "
S1 ● ● ● ● ● ● ● ●
S2 ● ● ● ● ● ● ● ●
(Note 1) Only 16-bit devices can be modified. (Character constants cannot be specified.)
■
Outline of operation
● The file name specified by [S1] is changed to the file name specified by [S2].
■
Example of processing
Example) When renaming a file "\abc\data1" to "\abc\data2"
(1) Character count (2) Path name (folder name + file name)
18.10 CREN (File Rename)
18-48 WUME-FP7CPUPGR-12