A-65
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-25 File Memory Instructions
EXPLICIT
WORD
WRITE
ECHWR 724 Writes data from the local CPU Unit to a remote CPU Unit in the
network. (The remote CPU Unit must support explicit messages.)
Output Required
A-1-25 File Memory Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
READ DATA
FILE
FREAD
@FREAD
700 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
ECHWR (724)
S
D
C
S: 1st source
word in local
CPU Unit
D: 1st destination
word in remote
CPU Unit
C:
1st control word
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
(Specified by the 4
th digit of C.)
Number of
words
File specified
in S2
Number
of words
written
to D and
D+1.
Memory Card or EM
file memory
(Specified by the 4
th
digit of C.)
Number of words
specified in S1
and S1+1
File specified
in S2
Starting read
address 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.