![FE MONITOUCH V8 SERIES Reference: Additional Functions Download Page 405](http://html1.mh-extra.com/html/fe/monitouch-v8-series/monitouch-v8-series_reference-additional-functions_3756179405.webp)
23 Macro
23-36
• Overwriting
The 33rd byte and after in the existing file “ABC.DAT” is overwritten with the 16 bytes of data in
$u1000 to $u1007.
$u00100 = 'C:\DAT0000\ABC\ABC.DAT' [Target full pathname]
$u00200 = 1 (W)
[1: Overwrite]
$u00201 = 16 (D)
[Size]
$u00203 = 32 (D)
[Offset]
$u00205 = 0 (W)
[0 fixed]
WRITE_FILE $u00100 $u01000 $u00200
• Addition
The 512 bytes of data in $u1000 to $u1255 is added to the existing file “ABC.DAT”.
$u00100 = 'C:\DAT0000\ABC\ABC.DAT' [Target full pathname]
$u00200 = 2 (W)
[2: Add]
$u00201 = 512 (D)
[Size]
$u00203 = 0 (W)
[0 fixed]
$u00205 = 0 (W)
[0 fixed]
WRITE_FILE $u00100 $u01000 $u00200
Supplementary information
• If the name of a new file you intend to create is already used, delete the existing file first and create
a new file.
• If the size specified with [F2 + 1] and [F2 + 2] is zero for a new file, an empty file will be created.
• If the file you specified for overwriting or data addition does not exist, an error will result.
• Wildcard characters (such as “*” and “?”) cannot be used for a full pathname as the target, to which
data is written.
• If an illegal full pathname is specified, this macro command does not work. An error will result.
• In the event of an error during writing to a file, the data having been written remains in the file.
• 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)
Description
−
1
Execution error
Summary of Contents for MONITOUCH V8 SERIES
Page 1: ...Reference Additional Functions V8series...
Page 57: ...2 Global Overlap 2 12 Please use this page freely...
Page 101: ...7 2 Panel Meter Extended 7 18 Please use this page freely...
Page 123: ...9 2 Acknowledge Function 9 18 Please use this page freely...
Page 127: ...10 RGB Display touch switch emulation 10 4 Please use this page freely...
Page 187: ...14 3 Addition of Titles to a CSV File Sampling Data 14 20 Please use this page freely...
Page 199: ...15 Item Show Hide Function 15 12 Please use this page freely...
Page 213: ...16 FTP Server 16 14 ls command This command is used to display the names of files and folders...
Page 221: ...16 FTP Server 16 22 Please use this page freely...
Page 233: ...17 2 Two Ethernet Ports 17 12 Please use this page freely...
Page 241: ...18 Network Camera 18 8 5 The Live view window is displayed...
Page 261: ...18 Network Camera 18 28 Please use this page freely...
Page 327: ...20 MES Interface Function 20 38 6 The table is created...
Page 369: ...22 Security Function 22 12 Please use this page freely...
Page 429: ...24 Tag 24 24 Please use this page freely...
Page 491: ...26 6 USB FDD Floppy Disk Drive 26 14 Please use this page freely...
Page 503: ...27 Ladder Transfer via USB or Ethernet 27 12 Please use this page freely...