![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_7420301137.webp)
1097
File Memory Instructions
Section 3-26
File Memory Instructions
FWRIT(701)
FWRIT(701) creates a data file containing the specified data from I/O mem-
ory. The file format can be either binary or CSV. FWRIT(701) can also be
used to add to an existing file or overwrite an existing file from a specified
position.
FREAD(700)
FREAD(700) reads the contents of a data file and stores it in the specified
area of I/O memory. The file format can be either binary or CSV. FREAD(700)
can also be used to read data from a specified position in a file.
TWRIT(704)
TWRIT(704) creates a text file containing ASCII data stored in I/O memory.
TWRIT(704) can also be used to add to an existing file or overwrite an existing
file.
CMND(490)
CMND(490) can be used to format files, delete files, copy files, and change
file names by sending FINS commands for Memory Card operations. For
details, refer to Section 5 File Memory Functions in the SYSMAC CS/CJ
Series Programmable Controllers Programming Manual (W394).
For binary format (.IOM), the data will be as follows when 1234 hex, 5678 hex,
9ABC hex, and DEF0 hex are stored in the file ABC.IOM (although the user
does not normally need to be concerned with this structure):
For word CSV format (.CSV), the data will be as follows when 1234 hex, 5678
hex, 9ABC hex, and DEF0 hex are stored in the file ABC.CSV (the basic
structure would be the same for text data (.TXT):
1234
5678
9ABC
DEF0
XX
XX
XX
12
34
56
78
9A
BC
DE
F0
to
I/O memory
Contents of ABC.IOM
8 bytes
48 bytes (reserved
for system use)
1234
5678
9ABC
DEF0
31
1
32
2
33
3
34
4
2C
,
35
5
36
6
37
7
38
8
2C
,
1234,5678,9ABC,DEF0
to
I/O memory
Converted to ASCII
Contents of ABC.CSV
4 bytes
Delimiter
4 bytes
Delimiter
File Displayed as Text Data
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...