![Omron CJ1G-CPUxx Instructions Manual Download Page 933](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491933.webp)
912
File Memory Instructions
Section 3-26
The File Write Error Flag (A34308) will be turned ON and the instruction won’t
be executed if the specified file isn’t the correct data type or the file data has
been corrupted.
A few seconds is required for the CPU Unit to detect a Memory Card after it
has been inserted. If a Memory Card is going to be accessed soon after
power is turned ON or after a Memory Card is inserted, use the Memory Card
Detected Flag (A34315) in a NO input condition as shown below to be sure
that the Memory Card has been detected.
Note The structure of data files is as shown below.
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):
For long-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):
FWRIT
C
D1
D2
S
Execution
condition
Memory Card
Detected Flag
File Memory
Operation Flag
A34313
A34315
I/O memory
48 bytes (reserved
for system use)
8 bytes
Contents of ABC.IOM
1234
5678
9ABC
DEF0
XX
XX
XX
12
34
56
78
9A
BC
DE
F0
to
4 bytes
Contents of ABC.CSV
Converted to ASCII
4 bytes
Delimiter
Delimiter
File Displayed as Text Data
I/O memory
1234
5678
9ABC
DEF0
to
31
1
32
2
33
3
34
4
2C
,
35
5
36
6
37
7
38
8
2C
,
1234,5678,9ABC,DEF0
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...