EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Page 186

Omron CJ - PROGRAMMING MANUAL 12-2009
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
146
File Memory Instructions
Section 3-24
WRITE DATA
FILE
FWRIT
@FWRIT
701
Output
Required
WRITE TEXT
FILE
TWRIT
@TWRIT
704
Reads ASCII data from I/O memory and stores that data in the Memory
Card as a text file (writing a new file or appending a file). The data is
stored in the TXT format.
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
FWRIT(701)
C
D1
D2
S
C: Control word
D1: 1st
destination word
D2: Filename
S: 1st source
word
File specified in D2
CPU Unit
File specified in D2
CPU Unit
Append
CPU Unit
Memory Card or EM file memory
(
S
p
ecified b
y
the 4th di
g
it of C.
)
New file created
Starting
address
specified
in S
Starting
address
specified
in S
End of
file
Number of words
specified in D1
and D1+1
Beginning
of file
Number of words
specified in D1
and D1+1
File speci-
fied in D2
Memory Card or EM file memory
(Specified by the 4
th digit of C.)
Existing
data
Memory Card or EM file memory
(Specified by the 4
th digit of C.)
Overwrite
Starting
address
specified
in S
Starting word
specified in
D1+2 and
D1+3
O
verwrites or appends data in the specified data file in file memory
w
ith the specified data from the data area in the CPU Unit. If the
s
pecified file doesn't exist, a new file is created with that filename.
Number of words
specified in D1
and D1+1
TWRIT
C
S1
S2
S3
S4
C: Control word
S1: Number of
bytes to write
S2: Directory
and file name
S3: Write data
S4: Delimiter
S3
#3536
S4
#2C00
56,
Specified text file
No file
Write data
Characters: 56
Create new
file (C: &1)
Delimiter
Comma
S3
#3536
1234,
S4
#2C00
1234,56,
Specified text file
Write data
Characters: 56
Append file
(C: &0)
Delimiter
Comma

Table of Contents

Related product manuals