File Memory Instructions - Omron CS1G/H-CPUxx-EV1 Programming Manual

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

File Memory Instructions

3-24 File Memory Instructions
Instruction
Symbol/Operand
Mnemonic
Code
READ DATA FILE
FREAD(700)
FREAD
@FREAD
700
S1
S2
C: Control word
S1: 1st source
word
S2: Filename
D: 1st destination
word
WRITE DATA
FWRIT(701)
FILE
FWRIT
@FWRIT
D1
701
D2
C: Control word
D1: 1st
destination word
D2: Filename
S: 1st source
word
Reads the specified data or amount of data from the specified data file
in file memory to the specified data area in the CPU Unit.
C
Starting read ad-
dressspecified in
S1+2 and S1+3
D
Memory Card or EM
file memory
(Specified by the 4
digit of C.)
Memory Card or EM file memory
(Specified by the 4
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.
CPU Unit
Starting
address
specified
S
in S
CPU Unit
Starting
address
specified
in S
CPU Unit
Starting
address
specified
in S
Function
File specified
in S2
CPU Unit
th
File specified
in S2
Number of
words
digit of C.)
th
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
th
Section 3-24
Location
Execution condition
Output
Required
Number of words
specified in S1
and S1+1
Number
of words
written
to D and
D+1.
CPU Unit
Output
Required
digit of C.)
th
digit of C.)
th
digit of C.)
139

Advertisement

Table of Contents
loading

Table of Contents