Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 144

Table of Contents

Advertisement

2. Summary of 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
(CS/CJ-series
CPU Units with
unit version 4.0 or
later and CJ2 CPU
Units only)
C: Control word
S1: Number of
bytes to write
S2: Directory and
file name
S3: Write data
S4: Delimiter
108
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.
C
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
S2
S3
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
New file created
fied in D2
Number of words
specified in D1
and D1+1
Memory Card or EM file memory
(Specified by the 4
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Location
Execution
condition
Output
Required
th
digit of C.)
th
digit of C.)
th
digit of C.)
Output
Required
Page
971
977

Advertisement

Table of Contents
loading

Table of Contents