![Omron CJ1G-CPUxx Instructions Manual Download Page 927](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491927.webp)
906
File Memory Instructions
Section 3-26
3-26-3 WRITE DATA FILE: FWRIT(701)
Purpose
Overwrites or appends data in the specified data file in file memory with the
specified data from the data area in the CPU Unit. If the specified file doesn’t
exist, a new file is created with that filename. Data can be written as binary,
text, or CSV format data.
Ladder Symbol
Variations
Applicable Program Areas
Operands
C: Control Word
As shown in the following diagram, the third digit of the control word indicates
whether to append or overwrite data in the data file and the fourth digit indi-
cates whether the destination file is in the Memory Card or EM file memory.
Note
1.
Each field will contain 1 word of I/O memory for the word data types and 2
words of I/O memory for the double-word data types.
C: Control word
D1: First destination word
D2: Filename
S: First source word
FWRIT(701)
C
D1
D2
S
Variations
Executed Each Cycle for ON Condition
FWRIT(701)
Executed Once for Upward Differentiation
@FWRIT(701)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Not supported.
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
Function specifier
0: Append
1: Overwrite
File memory specifier
0: Memory Card
1: EM file memory
C
15
8
0
11
3
7
4
12
Data type
0: Binary (extension: .IOM, words/field: NA)
1: Non-delimited words (extension: .TXT, words/field: 1)*
2: Non-delimited double-words (extension: .TXT., words/field: 2)*
3: Comma-delimited words (extension: .CSV, words/field: 1)*
4: Comma-delimited double-words (extension: .CSV, words/field: 2)*
5: Tab-delimited words (extension: .TXT, words/field: 1)*
6: Tab-delimited double-words (extension: .,TXT words/field: 2)*
Carriage returns
0: No returns
8: Return every 10 fields*
9: Return every 1 field*
A: Return every 2 fields*
B: Return every 4 fields*
C: Return every 5 fields*
D: Return every 16 fields*
*: Cannot be set for CS-series CS1 CPU Units prior to V1
@
.
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 ...