Mitsubishi QD51 Programming Manual page 107

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

Advertisement

4 THE EXCHANGE BETWEEN THE PLC AND BUFFER MEMORY
4 - 17
• Word Units
Continuous device numbers are read in blocks of 16 points when the bit
device is designated in word units.
The 16 points of data that has been read are 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
The status of the each bit is "0" when the corresponding device is OFF
and "1" when it is ON.
M47
M32 to M47 0 1
0 0 0 0 1
M47
M40
to
b7
b0
0 1
0 0 0 0 1
0
4
2
H
H
M63
M48 to M63
0 0
0 0 1 1 0
M63
M56
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.
When using RD$ as the readout variable
. A. D. 5. 1. H.
Readout data
M32
0
0 1
0 0 0 0 0
1
M39
M32
to
b7
b0
0 1
0 0 0 0 0
1
4
1
H
H
M48
1
0 1
0 0 0 0 1
1
M55
M48
to
b7
b0
0 1
0 0 0 0 1
1
4
3
H
H
NOJI $
RD$
. M. I. T. S. U. B. I. S. H.
Readout
execution
RD$
. A. D. 5. 1. H. B. I. S. H. I.
Data before the readout
execution will be stored
MELSEC-Q
The first 8 points and the second 8
points of data are stored as
character codes.
41
= "A"
H
42
= "B"
H
2 words (32 bits) of data
from M32 are accessed
using character variable
MOJI$.
43H= "C"
0D
H
A
B
C
1st
2nd
3rd
character
character
character
character
= CR code
CR
4th
4 - 17

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents