File Memory Instructions - Omron SYSMAC CS Series Programming Manual

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

File Memory Instructions

3-22 File Memory Instructions

Instruction
Symbol/Operand
Mnemonic
Code
READ DATA FILE
FREAD(700)
FREAD
@FREAD
700
C: Control word
S1: 1st source
word
S2: Filename
D: 1st destination
word
WRITE DATA
FWRIT(701)
FILE
FWRIT
@FWRIT
701
C: Control word
D1: 1st
destination word
D2: Filename
S: 1st source
word
118
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 address
S1
specified in S1+2 and
S1+3
S2
D
Memory Card or
EM file memory
(Specified by the
th
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 specified file doesn't
exist, a new file is created with that filename.
C
CPU Unit
D1
Starting
D2
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
File specified
in S2
Number of
words
th
digit of C.)
File specified in D2
Starting word
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-
New file created
of file
fied in D2
Number of words
specified in D1
and D1+1
Memory Card or EM file memory
(Specified by the 4
Section 3-22
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
th
digit of C.)
th
digit of C.)
th
digit of C.)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1g/h-cpu-ev1 seriesCj1g-cpu seriesSysmac cj series

Table of Contents