Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 981

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
FWRIT
Instruction
WRITE DATA FILE
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
C
Control word
D1
First destination word
D2
Filename
S
First source word
C: Control Word
15
12
11
C
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)*
*: Cannot be set for CS-series CS1 CPU Units prior to V1 .
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.
2 With double-words, the first word of data is read from the higher memory address, e.g., 12345678 would
be written with 1234 from D00001 and 5678 from D00000.
944
Mnemonic
Variations
FWRIT
@FWRIT
Block program areas
Step program areas
OK
OK
Description
8
7
4
3
0
File memory specifier
0: Memory Card
1: EM file memory
Function specifier
0: Append
1: Overwrite
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*
Function
code
Overwrites or appends data in the specified data file
701
in file memory with the specified data from the data
area in the CPU Unit.
FWRIT
FWRIT(701)
C
C: Control word
D1
D1: First destination word
D2
D2: Filename
S: First source word
S
Subroutines
OK
Data type
UINT
LWORD
UINT
UINT
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
Variable
4
Variable
Variable

Advertisement

Table of Contents
loading

Table of Contents