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)
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...