Mitsubishi QD51-R24 User Manual page 63

Melesec q series
Hide thumbs Also See for QD51-R24:
Table of Contents

Advertisement

3 SPECIFICATIONS
3 - 28
(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.
Expansion Register
b7
Lower order
ED0
Higher order
Lower order
ED1
Higher order
Lower order
ED2
Higher order
to
Lower order
ED1022
Higher order
Lower order
ED1023
Higher order
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
A%()
(0)
(1)
30
21
H
(2)
68
42
H
`
`
QD51(-R24)
to
b0
GETMEM
(Reading of data)
PUTMEM
(Writing of data)
Expansion register
`
ED4
3021
H
4bytes
6842
ED5
H
`
MELSEC-Q
BASIC
program
`
8
9
10
11
`
3 - 28

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qd51

Table of Contents