23 Macro
23-27
23
• $s1059 stores the result of macro execution.
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.
* When reading from [F0] and [F1] ends in failure, an error occurs and “
−
1” is stored in $s1059.
When an execution error occurs, it is regarded as a fault.
CF Card (Sampling)
SMPL_CSV2
Function: CSV file creation (file name designation)
This macro command is used to convert the sampling data in buffering area No. [F0] into the CSV file
format under the name [F1] and saves the file in the SAMPLE folder in the CF card.
If the specified file does not exist, a new file will be created.
Available memory
: Setting enabled (indirect designation disabled)
: Setting enabled (indirect designation enabled)
Range
File
Storage target: \access folder\SAMPLE
File name:
xxxxxxxx.csv
Example
• The file named “SEISAN.CSV” is created in buffering area No. 1.
$u00100 = ’SEISAN’ (STRING)
SMPL_CSV2 1 $u00100
Code (DEC)
Contents
−
1
Execution error*
Internal Memory
PLC1 - PLC8
Memory
Memory Card
Constant
F0
F1
Value
F0
0 to 11: Buffering area number
F1
ASCII code (64 one-byte uppercase alphanumerics at the maximum): CSV file name
If [ Insert/Overwrite together with STRING Command] is checked in the [Memory
Setting] or [Macro Editing Support] dialog, the macro command STRING can also be
registered.
For more information on the STRING command, refer to the Macro Reference Manual.
Buffering area number designation
File name designation
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...