8 - 15 8 - 15
MELSEC-Q
8 MULTITASK PROCESSING
Data is stored in the following manner.
• For numeric data
The data is accessed
using addresses
1800
H
to 1805
H
00
H
(H)
12
H
(L)
18
H
(L)
00
H
(H)
23
H
(H)
45
H
(L)
RD%(0)
RD%(1)
RD%(2)
45
H
(L)
23
H
(H)
00
H
(H)
12
H
(L)
18
H
(L)
00
H
(H)
1
1800
H
1801
H
1802
H
1803
H
1804
H
1805
H
Integer variable,
integer array
GETMEM
/PUTMEM
Common memory
• For character data
41
H
(L)
44
H
(H)
31
H
(H)
35
H
(L)
48
H
(L)
0D
H
(H)
2000
H
2001
H
2002
H
2003
H
2004
H
2005
H
A
D
5
1
H
<CR>
41
H
= "A"
44
H
= "D"
35
H
= "5"
31
H
= "1"
48
H
= "H"
0D
H
=CR code
First
character
Second
character
Third
character
Fourth
character
Fifth
character
Sixth
character
GETMEM
/PUTMEM
( )
The data is accessed using
addresses 2000
H
to 2005
H
The values in common memory
are stored assuming that they
are character codes.
Character variable, character array variable
RD $
Common
memory
• 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.
. A. D. 5. 1. H.
. A. D. 5. 1. H. B. I. S. H. I.
RD$
Data read
Execute the read
operation.
Data prior to the read operation
is preserved if not overwritten.
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.
Содержание 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...