Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual page 186

Programmable controllers
Table of Contents

Advertisement

File Memory Instructions
Instruction
Symbol/Operand
Mnemonic
Code
WRITE DATA
FWRIT(701)
FILE
FWRIT
@FWRIT
701
C: Control word
D1: 1st
destination word
D2: Filename
S: 1st source
word
WRITE TEXT
FILE
TWRIT
@TWRIT
704
C: Control word
S1: Number of
bytes to write
S2: Directory
and file name
S3: Write data
S4: Delimiter
146
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
C
specified file doesn't exist, a new file is created with that filename.
D1
CPU Unit
Starting
D2
address
specified
S
in S
CPU Unit
Starting
address
specified
in S
CPU Unit
Starting
address
specified
in S
Reads ASCII data from I/O memory and stores that data in the Memory
TWRIT
Card as a text file (writing a new file or appending a file). The data is
stored in the TXT format.
C
S1
Write data
S2
#3536
S3
S3
Delimiter
#2C00
S4
S4
Write data
#3536
S3
Delimiter
#2C00
S4
Function
Starting word
File specified in D2
specified in
D1+2 and
D1+3
Number of words
specified in D1
and D1+1
Overwrite
Memory Card or EM file memory
(Specified by the 4
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 4
Beginning
File speci-
of file
fied in D2
Number of words
specified in D1
and D1+1
Memory Card or EM file memory
(Specified by the 4
Specified text file
No file
Characters: 56
Create new
file (C: &1)
Comma
56,
Specified text file
1234,
Characters: 56
Append file
(C: &0)
Comma
1234,56,
Section 3-24
Execution condition
Output
Required
digit of C.)
th
digit of C.)
th
New file created
digit of C.)
th
Output
Required
Location

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents