3 - 28 3 - 28
MELSEC-Q
3 SPECIFICATIONS
(b) Writing/Reading data by the PUTMEM/GETMEM command in a BASIC
program
With the PUTMEM/GETMEM command, data can be written to or read from
the extension register.
An address can be specified by ED0 to ED1023 in units of 1 byte.
QD51(-R24)
Expansion Register
b7 to b0
ED0
ED1
ED2
ED1022
ED1023
Lower order
Higher order
Lower order
Higher order
Lower order
Higher order
Lower order
Higher order
Lower order
Higher order
to
BASIC
program
GETMEM
(Reading of data)
PUTMEM
(Writing of data)
Program example
In the following program, data (4 bytes) in A% (1) and A% (2) of the
QD51 (-R24) are written into ED4 and ED5.
20 PUTMEM TO W@ (ED,2), 4 FROM A%(), 2, 4
(1)
(2)
(0)
11
10
9
8
3021
H
68
6842
H
42
H
30
21
H
ED4
ED5
`
`
`
`
`
`
Expansion register
A%()
4bytes
Summary of Contents for QD51
Page 1: ......
Page 2: ......
Page 154: ...App 7 App 7 MELSEC Q APPENDIX MEMO ...
Page 159: ......
Page 160: ......