Mitsubishi QD51 Programming Manual page 246

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
GETMEM
Instruction
• Reads data from the buffer memory, common memory, and expansion register (ED) of the
communication module.
GETMEM
Syntax
FROM
read source
read data store area
offset 1
offset 2
number of bytes
GETMEM TO A%( ),
Examples
0 FROM 0, 2, 6
GETMEM TO A$, 1 FROM
&H1800, 0, 4
11 - 76
GET MEMory
TO
<read data store area> , <offset 1>
<read source> , <offset 2>, <number of bytes>
• • • •
• • • •
• • • •
• • • •
• • • •
• • • •
A%( )
(0)
12 56
H
(1)
37 66
H
(2)
08 00
H
(3)
49 56
H
• • • •
A$
0
A (41
1
B (42
2
C (43
3
D (44
4
E (45
5
F (46
Specify the starting address of the buffer memory or
common memory, or the starting device of the
expansion register (ED).
Specify the integer variable, integer array name,
character variable, or character array variable to
store the read data.
Specify the offset value (in bytes) from the start of
the read data store area.
Specify the offset value (in bytes) from the start of
the read source.
Specify the length of read data in bytes.
Reads data of the buffer memory 1 through 3 (six
bytes) to A%(0) through A%(2).
Buffer memory
0
56
H
1
6 bytes
12
H
66
H
2
37
H
00
H
3
08
H
Reads data from the address &H1800 through
&H1803 (four bytes) of the common memory in the
communication module to second through fifth
characters of A$.
)
H
1800
)
H
H
)
1801
H
H
4 bytes
)
1802
H
H
)
1803
H
H
)
1804
H
H
MELSEC-Q
0
1
2
3
Address specified by the
4
GETMEM instruction
5
6
7
Common memory
0
42
H
43
1
H
44
2
H
45
3
H
11 - 76

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents