FE MONITOUCH V8 SERIES Reference: Additional Functions page 401

Table of Contents

Advertisement

23
Macro
MOVE_FILE F0 F1 F2
Function: File movement
This macro command is used to move the file or folder [F0] to the path [F1].
File renaming is also possible.
Available memory
F0
F1
F2
Range
F0
F1
F2
Example
• Movement from "C:\DAT0000\RECIPE\REC0000.csv" to "C:\DAT0000\RECIPE\SEISAN\abc.csv":
$u00100 = 'C:\DAT0000\RECIPE\REC0000.csv'
$u00200 = 'C:\DAT0000\RECIPE\SEISAN\abc.csv'
MOVE_FILE $u00100 $u00200
(Drive C:)
Supplementary information
• If an illegal full pathname is specified, this macro command does not work. An error will result.
• For the V8 series, the result of macro execution is stored in $s1062.
When the execution of the macro is normally complete, the value at the address is not updated.
Therefore, before macro execution, resetting the value at the address to zero is recommended.
Code (DEC)
−1
• In the case of a read-only file movement between drives, the file is copied to the target location,
and the file at the original location is not deleted.
• A folder to be moved is allowed to contain a maximum of 5 hierarchical levels under the folder. If
files or folders at further lower levels exist under the folder, the folder and the files/folders placed
under it are copied to the target location, but those at the original location are not deleted.
23-32
Internal Memory
PLC1 - PLC8 Memory
Value
Source full pathname (within 255
alphanumerics)
Target full pathname (within 255
alphanumerics)
0 fixed
(Drive C:)
DAT0000
RECIPE
REC0000.csv
REC0001.csv
REC0002.csv
Memory Card
: Setting enabled (indirect designation disabled)
: Setting enabled (indirect designation enabled)
Drive designation
A: USB-FDD drive
B: (not used)
C: Built-in CF card drive
D: Memory connected to USB port
DAT0000
RECIPE
REC0001.csv
REC0002.csv
Move
SEISAN
abc.csv
Description
Execution error
Constant
Remarks
* The file
"REC0000.csv" is
deleted.

Advertisement

Table of Contents
loading

Table of Contents