Readlwrite With Sequence Program - Mitsubishi Melsec A User Manual

Table of Contents

Advertisement

7. COMMUNICATION WlTH PROGRAMMABLE CONTROLLER CPU
/ M E L s E c - A
7.2.2 Readlwrite with sequence program
Access t o the buffer memory from the PC program is via the FROM
and TO application instructions.
(1) Read from buffer memory.
. . . .
.
.
.
.
.FROM, FROMP, DFRO, DFROP instructions
FROM
in~truction
executing AOSICPU
condition
down
I
. . I
4
FROMP
I I
n1
I
o
I
n,
r
".
I
Number of words of data t o be read
I
K . H
I
Usable
Devices
K, H
Symbol
n~
"2
POINT
Description
16th
1 1 0
address of the A051 omitting
the least significant digit.
*'
'1:Note
that the location specification for the AD51 is
different from other
I10
modules. To specify the slot
location use the number representing the 16th
1 1 0
point, omitting the "units".
(So for example,
I10
point
120H is represented as 12H.) Hence, i f the AD51 is
located at
I10
addresses. X60 t o X8F and Y60 t o Y8F.
n, is defined as H7.
0
I
Head device number
of data dertmatlon.
IT.C.D.W.R
Buffer memory heao address of data roarce.
[Program example]
K . H
Fig. 7.3 shows a program t o read the data from buffer addresses
500H t o 54FH t o data registers D l 0 0 t o Dl79 in the PC CPU. When
X I 3 turns with system configuration shown in Fig. 7.2.
to
10
to
to
to
.to
to
to
YOF X2F X4F XSF X8F Y8F Y A F YCF
Fia. 7.2 Unit Configuration
Fig.
7.3
Buffer Memory Read
X7D
I
A -
FROMP
H7
H500 0100
HSO

Advertisement

Table of Contents
loading

Table of Contents