1098
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
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...