![Omron CJ1G-CPU series Programming Manual Download Page 227](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489227.webp)
206
Manipulating Files
Section 5-2
2.
Execution of CMND(490) to send a FINS command to the CPU Unit itself
3.
Replacement of the entire program by Auxiliary Area control bit operations
4.
Execution of a simple backup operation
Use the File Memory Operation Flag (A34313) for exclusive control of file
memory instructions to prevent them from being executed while another file
memory operation is in progress.
When FREAD(700) is being executed, the File Read Error Flag (A34310) will
be turned ON and the instruction won’t be executed if the specified file con-
tains the wrong data type or the file data is corrupted. For text or CSV files,
the character code must be hexadecimal data and delimiters must be posi-
tioned every 4 digits for word data and every 8 digits for double-word data.
Data will be read up to the point where an illegal character is detected.
Related Auxiliary Bits/Words
Name
Address
Operation
Memory Card Type
A34300 to
A34302
Indicates the type of Memory Card, if any, that is
installed.
EM File Memory For-
mat Error Flag
A34306
ON when a format error occurs in the first EM
bank allocated for file memory. OFF when format-
ting is completed normally.
Memory Card For-
mat Error Flag
A34307
ON when the Memory Card is not formatted or a
formatting error has occurred.
File Write Error Flag
A34308
ON when an error occurred when writing to the
file.
File Write Impossi-
ble Flag
A34309
ON when the data couldn’t be written because the
file was write-protected or there was insufficient
free memory.
File Read Error Flag
A34310
ON when a file could not be read because its data
was corrupted or if it contains the wrong data type.
No File Flag
A34311
ON when data could not be read because the
specified file doesn’t exist.
File Memory Opera-
tion Flag
A34313
ON for any of the following:
The CPU Unit is processing a FINS command
sent to itself using CMND(490).
FREAD(700) or FWRIT(701) is being executed.
The program is being overwritten using an Auxil-
iary Area control bit.
A simple backup operation is being performed.
Accessing File Flag
A34314
ON when file data is actually being accessed.
Memory Card
Detected Flag
A34315
ON when a Memory Card has been detected.
(Not supported by CS-series CS1 CPU Units that
are pre-EV1)
Number of Items to
Transfer
A346 to
A347
These words indicate the number of words or
fields remaining to be transferred (32 bits).
When a binary (.IOM) file is being transferred, this
number is decremented each time a word is read.
When a text or CSV file is being transferred, this
number is decremented each time a field is trans-
ferred.
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...