Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1150

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

File Memory Instructions
Operand Specifications
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 does not exist, FWRIT(701) creates a new file with
that name and filename extension (.IOM, .TXT, or .CVS) and writes the speci-
fied 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
specified
in S
Area
CIO Area
CIO 0000 to
CIO 6143
Work Area
W000 to
W511
Holding Bit Area
H000 to H511 H000 to 508
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
Number of words
specified in D1
and D1+1
Memory Card or EM file memory
(Specified by the 1st digit of C.)
C
D1
CIO 0000 to
CIO 6140
W000 to
W508
Section 3-26
D2
S
CIO 0000 to CIO 6143
W000 to W511
H000 to H511
1111

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents