Mitsubishi QD51 Programming Manual page 108

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

Advertisement

4 THE EXCHANGE BETWEEN THE PLC AND BUFFER MEMORY
4 - 18
(b) Word Devices
The data that has been read from the designated word device in word units
is separated into 8 points in the first half and 8 points in the second half.
Then the 8 points of ON/OFF data for the device numbers are treated as a
single JIS8 code and it is stored using the corresponding characters.
Therefore, the amount of data required for storing and setting the amount of
data designated in the number of process points to the elements are as
follows.
Number of character data = Process points x 2 bytes
b15
to
D10
19788
0 1
0 0 0 0 1
Upper 8 bits
b7
to
b0
0 1
0 0 0 0 1
0
4
2
H
H
b15
to
D11
3411
0 0
0 0 1 1 0
Upper 8 bits
to
b7
b0
0 0
0 0 1 1 0
1
0
D
H
H
When reading data with the PCRD instruction, the following illustrates if a
character data greater than the character variable specified as readout
variables or number of bytes to be read in the character array variables
(one byte = one character) is stored.
Readout data
to
b0
b8 b7
0 0 0 0 0
0
0 1
1
Lower 8 bits
b7
to
b0
0 1
0 0 0 0 0
1
4
1
H
H
b8 b7
to
b0
0 0 0 0 1
1
0 1
1
Lower 8 bits
to
b7
b0
0 1
0 0 0 0 1
1
4
3
H
H
NOJI $
When using RD$ as the readout variable
RD$
. M. I. T. S. U. B. I. S. H. I.
. A. D. 5. 1. H.
RD$
. A. D. 5. 1. H. B. I. S. H. I.
Data before the readout
execution will be stored
The data for the upper 8 bits and the lower
8 bits are stored individually as character codes
= " A"
41
H
42
= " B"
H
2 words of data from D10 are
accessed using character
variable MOJI$.
43
= " C"
H
A
B
C
1st
2nd
3rd
character
character
character
Readout execution
MELSEC-Q
0D
= CR code
H
CR
4th
character
4 - 18

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents