192
File Memory
Section 5-1
Data Files
General-purpose Files
1,2,3...
1.
General-purpose data files have filename extensions IOM, TXT, or CSV.
(The TXT and CSV files: Not supported by CS-series CS1 CPU Units that
are pre-EV1.)
Note a) Reading and Writing TXT and CSV Data Files:
TXT and CSV data files can be read and written with FREAD(700)
and FWRIT(701) only.
b) Precautions on Characters:
Data cannot be written to I/O memory properly if the TXT or CSV
file contains characters other than hexadecimal characters (0 to 9,
A to F, or a to f.)
c) Precautions on Field Size:
When words are being used, data cannot be written to I/O memory
properly if the TXT or CSV file contains fields that are not 4-digit
hexadecimal. Likewise, when double words are being used, data
cannot be written properly if the file contains fields that are not 8-
digit hexadecimal.
d) Storage Order:
When words are being used, I/O memory data is converted to
ASCII and stored in one-word fields in order from the lowest to the
highest I/O memory address.
When double words are being used, I/O memory data is converted
to ASCII and stored in two-word fields in order from the lowest to
the highest I/O memory address. (Within the two-word fields, the
higher-address word is stored first and the lower-address word is
stored second.)
Extension
Data format
Contents
Words/field
.IOM
Binary
CS/CJ-series data format
---
.TXT
(See notes.)
Non-delimited
words
ASCII
format
This format is created by converting one-word fields of I/O
memory (4-digit hexadecimal) to ASCII and packing the
fields without delimiters. Records can be delimited with car-
riage returns.
1 word
Non-delimited
double words
This format is created by converting two-word fields of I/O
memory (8-digit hexadecimal) to ASCII and packing the
fields without delimiters. Records can be delimited with car-
riage returns.
2 words
Tab-delimited
words
This format is created by converting one-word fields of I/O
memory (4-digit hexadecimal) to ASCII and delimiting the
fields with tabs. Records can be delimited with carriage
returns.
1 word
Tab-delimited
double words
This format is created by converting two-word fields of I/O
memory (8-digit hexadecimal) to ASCII and delimiting the
fields with tabs. Records can be delimited with carriage
returns.
2 words
.CSV
(See notes.)
Comma-delimited
words
This format is created by converting one-word fields of I/O
memory (4-digit hexadecimal) to ASCII and delimiting the
fields with commas. Records can be delimited with carriage
returns.
1 word
Comma-delimited
double words
This format is created by converting two-word fields of I/O
memory (8-digit hexadecimal) to ASCII and delimiting the
fields with commas. Records can be delimited with carriage
returns.
2 words
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...