![Omron CJ1G-CPUxx Instructions Manual Download Page 930](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491930.webp)
909
File Memory Instructions
Section 3-26
The source data is read from absolute internal memory addresses in RAM, so
the entire block of data will be read even if the data spans two or more data
areas. For example, if the first destination address is in the Work Area but the
amount of data exceeds the capacity of this area, FWRIT(701) will continue
reading data at the beginning of the next area (in this case, the Timer Area).
Refer to Appendix D in the CS/CJ-series Programmable Controllers Operation
Manual (W339) for a memory map showing the location of data areas in RAM.
When FWRIT(701) is executed, the number of words or fields specified in D1
and D1+1 is written to A346 and A347 (Number of Data to Transfer) and this
value is decremented by 1 as each word or field is transferred. The content of
these words can be checked to verify that the expected number of words or
fields were transferred.
Overwriting Data in an Existing File (Third Digit of C=1)
FWRIT(701) uses data area data starting at the word specified in S to over-
write file memory data in the specified data type. It overwrites the number of
words or fields specified in D1 and D1+1 in the file specified in D2 (with file-
name extension .IOM, .TXT, or .CVS) starting at the address specified in
D1+2 and D1+3.
Appending Data to an Existing File (Third Digit of C=0)
FWRIT(701) appends data area data starting at the word specified in S to a
data file in file memory in the specified data type. It appends the number of
words or field specified in D1 and D1+1 to the file specified in D2 (with file-
name extension .IOM, .TXT, or .CVS).
Creating a New File with Source Data
If the file specified in D2 doesn’t exist, FWRIT(701) creates a new file with that
name and filename extension (.IOM, .TXT, or .CVS) and writes the specified
source data in the specified data type starting at the beginning of the file. In
this case, it does not matter if appending to overwriting data is specified.
Memory Card or EM file memory
(Specified by the 1st digit of C.)
File specified in D2
CPU Unit
Starting word
specified in
D1+2 and
D1+3
Number of
words specified
in D1 and D1+1
Overwrite
Starting
address
specified
in S
Memory Card or EM file memory
(Specified by the 1st digit of C.)
File specified in D2
CPU Unit
End of
file
Number of
words specified
in D1 and D1+1
Append
Starting
address
specified
in S
Existing
data
Memory Card or EM file memory
(Specified by the 1st digit of C.)
File speci-
fied in D2
CPU Unit
Beginning
of file
Number of words
specified in D1
and D1+1
Starting
address
specified
in S
New file created
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 ...