
3 - 23 3 - 23
MELSEC-Q
3 SPECIFICATIONS
3.5.3 Common memory
Common memory is memory that can be used to send and receive data between the
QD51 (-R24) internally and each task.
Data from the programmable controller CPU can also be read and written using this
memory.
(1) Writing data to and reading data from common memory
Programmable
controller
CPU
TO
(Writing of data)
FROM
(Reading of data)
Common
memory
BASIC
Program
QD51(-R24)
GETMEM
(Reading of data)
PUTMEM
(Writing of data)
(a) In a BASIC program, data are read from or written to common memory
using the GETMEM/PUTMEM command.
Program example
The following shows a program where data from A%(0) to A%(9)
(equivalent to 20 bytes) are written into the common memory area
addressed 1800
H
to 1813
H
using the PUTMEM command.
100 PUTMEM TO &H1800, 0 FROM A%(), 0, 20
1800
H
1801
H
1802
H
1813
H
1811
H
1810
H
1803
H
1812
H
C00
H
C01
H
C09
H
C08
H
Common Memory
PUTMEM
(Writing of data)
BASIC
Program
(1-byte units)
QD51(-R24)
to
to
Содержание QD51
Страница 1: ......
Страница 2: ......
Страница 154: ...App 7 App 7 MELSEC Q APPENDIX MEMO ...
Страница 159: ......
Страница 160: ......