11 - 77 11 - 77
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
GETMEM TO A%( ),
2 FROM W@(ED, 2), 4, 4
• • • •
Reads data of D2 and ED3 (four bytes) to A%(1) and
A%(2).
4 bytes
(0)
(1)
(2)
30 21
H
68 42
H
Internal device
ED4
ED5
3021
H
6842
H
8
10
9
11
A%( )
Description
• The GETMEM instruction reads data of <number of bytes> from the buffer memory,
common memory or expansion register specified by <read source> and <offset 2>, to the
variable specified by <read data store area> and <offset 1>.
• The address of the buffer memory or common memory, or an expansion register is
specified for <read source>.
The addresses of the buffer memory and common memory are as follows. Specify the
starting address of readout in <read source>.
0
1
2
3
Address specified by GETMEM
Buffer memory address 0
Buffer memory address 1
Buffer memory address BFF
H
17FE
H
17FF
H
1800
H
1801
H
37FE
H
37FF
H
Bu
ff
e
r me
mo
ry
C
o
mm
o
n
me
m
o
ry
Since the buffer memory address uses two bytes as shown above,
specify the address of the buffer memory by the GETMEM instruction as follows:
=
2
Buffer memory address specified
by the GETMEM instruction
Buffer memory address
of the communication module
To read to the expansion register, specify the starting device of the read source by using
special variable W@(ED, n).
To start from ED 100 W@(ED, 100)
To start from ED 20 W@(ED, 20)