Mitsubishi QD51 Programming Manual page 160

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

Advertisement

8 MULTITASK PROCESSING
8 - 15
Data is stored in the following manner.
• For numeric data
Common memory
1
45
(L)
1800
H
H
23
(H)
1801
H
H
1802
12
(L)
H
H
1803
00
(H)
H
H
1804
18
(L)
H
H
00
(H)
1805
H
H
• For character data
Common
memory
41
41
(L)
2000
H
H
44
(H)
2001
H
H
35
(L)
2002
H
H
31
(H)
2003
H
H
2004
48
(L)
H
H
0D
(H)
2005
H
H
GETMEM
/PUTMEM
• If, when reading data using the GETMEM instruction, a character variable or
character array variable specified as the variable for reading stores more character
data than the number of bytes read (1 byte equals one character), the result
becomes as follows.
When RD$ is used as variable for reading
RD$
. M. I. T. S. U. B. I. S. H. I.
Data read
. A. D. 5. 1. H.
RD$
. A. D. 5. 1. H. B. I. S. H. I.
REMARK
Data can also be read/written to/from the extension registers ED using the special
variable W@(ED, n). See Section 2.8.3 for the details.
Integer variable,
integer array
RD%(0)
23
RD%(1)
00
GETMEM
RD%(2)
00
/PUTMEM
The data is accessed
using addresses
1800
to 1805
H
H
Character variable, character array variable
First
Second
Third
character
character
character
RD $
A
D
5
= "A"
H
44
= "D"
H
35
= "5"
H
31
= "1"
H
48
= "H"
H
0D
=CR code
H
(
The data is accessed using
addresses 2000
to 2005
H
Execute the read
operation.
Data prior to the read operation
is preserved if not overwritten.
45
(L)
(H)
H
H
(H)
12
(L)
H
H
(H)
18
(L)
H
H
Fourth
Fifth
Sixth
character
character
character
1
H
<CR>
The values in common memory
)
are stored assuming that they
are character codes.
H
MELSEC-Q
8 - 15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents