FE MONITOUCH V8 SERIES Reference: Additional Functions page 404

Table of Contents

Advertisement

WRITE_FILE F0 F1 F2
Function: Write to universal file
This macro command is used to write the data from memory [F1] and after in binary format to the file
[F0].
Available memory
Internal Memory
F0
F1
F2
Range
New file
creation
Target full pathname
F0
F1
Source memory
F2
0 fixed
1 fixed
F2 + 1
0 to 10485760 bytes: Size
F2 + 2
F2 + 3
0 fixed
0 to 10485760 bytes:
Offset from the beginning of the file
F2 + 4
F2 + 5
0 fixed
Example
• New file creation
The 512 bytes of data in $u1000 to $u1255 is written to the new file "ABC.DAT" created in the
folder "ABC".
$u00100 = 'C:\DAT0000\ABC\ABC.DAT'
$u00200 = 0 (W)
$u00201 = 512 (D)
$u00203 = 0 (W)
$u00205 = 0 (W)
WRITE_FILE $u00100 $u01000 $u00200
PLC1 - PLC8
Memory
: Setting enabled (indirect designation disabled)
Value
Overwriting
2 fixed
0 fixed
[Target full pathname]
[0: New creation]
[Size]
[0 fixed]
[0 fixed]
Memory Card
: Setting enabled (indirect designation enabled)
Remarks
Addition
Drive designation
A: USB-FDD drive
B: (not used)
C: Built-in CF card drive
D: Memory connected to USB
port
DEC
23
Macro
23
Constant
23-35

Advertisement

Table of Contents
loading

Table of Contents