109
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
2-2 Instruction Functions
2
2-2-25 File Memory Instructions
2-2-25 File Memory Instructions
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
READ DATA FILE
FREAD
@FREAD
700
Output
Required
985
FREAD(700)
C
S1
S2
D
C: Control word
S1: 1st source
word
S2: Filename
D: 1st destination
word
CPU Unit
CPU Unit
Memory Card or EM file memory
S
ecified b
the 4
th
di
it of C.
Number of
words
File specified
in S2
Memory Card or
EM file memory
(Specified by the
4
th
digit of C.)
Number
of words
written to
D and
D+1.
Number of
words specified
in S1 and S1+1
File specified
in S2
Starting read ad-
dress specified in
S1+2 and S1+3
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.