Mitsubishi QD51 Programming Manual page 247

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
GETMEM TO A%( ),
2 FROM W@(ED, 2), 4, 4
• The GETMEM instruction reads data of <number of bytes> from the buffer memory,
Description
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>.
To read to the expansion register, specify the starting device of the read source by using
special variable W@(ED, n).
11 - 77
A%( )
(0)
(1)
30 21
(2)
68 42
Address specified by GETMEM
17FE
17FF
1800
1801
37FE
37FF
Since the buffer memory address uses two bytes as shown above,
specify the address of the buffer memory by the GETMEM instruction as follows:
Buffer memory address specified
by the GETMEM instruction
To start from ED 100
To start from ED 20
• • • •
Reads data of D2 and ED3 (four bytes) to A%(1) and
A%(2).
ED4
H
4 bytes
ED5
H
0
Buffer memory address 0
1
2
Buffer memory address 1
3
H
Buffer memory address BFF
H
H
H
H
H
=
W@(ED, 100)
W@(ED, 20)
Internal device
8
3021
H
9
10
6842
H
11
H
Buffer memory address
of the communication module
MELSEC-Q
2
11 - 77

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents