Omron CS1G/H-CPUxxH Instructions Manual page 930

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

File Memory Instructions
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.
CPU Unit
Starting
address
specified
Number of
in S
words specified
in D1 and D1+1
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).
CPU Unit
Starting
address
specified
in S
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.
CPU Unit
Starting
address
Number of words
specified
specified in D1
in S
and D1+1
File specified in D2
Starting word
specified in
D1+2 and
D1+3
Overwrite
Memory Card or EM file memory
(Specified by the 1st digit of C.)
File specified in D2
End of
Existing
file
data
Number of
words specified
in D1 and D1+1
Append
Memory Card or EM file memory
(Specified by the 1st digit of C.)
Beginning
File speci-
New file created
of file
fied in D2
Memory Card or EM file memory
(Specified by the 1st digit of C.)
Section 3-26
909

Advertisement

Table of Contents
loading

Table of Contents