Mitsubishi MELSEC AJ65BT-R2 User Manual page 111

Rs-232c interface module type
Hide thumbs Also See for MELSEC AJ65BT-R2:
Table of Contents

Advertisement

6 EXCHANGING DATA WITH AN EXTERNAL DEVICE
From external
device
R2 buffer
memory address
Reception area head
2
R 2
H
address designation
Reception area size
3
R 2
H
designation
(3) Arrangement of reception data
The arrangement of the data received from the external device when stored in
the reception area is shown below.
1) A random data section of the received statement is stored in the R2 buffer
memory (reception data storage area).
2) When ASCII-BIN conversion is carried out, the data converted into binary
data is stored.
3) The data is stored into the reception data storage area in the order of the
smaller addresses (L) to (H) received, and then the next address (L) to (H).
(Example)
To store the ten characters "ABCDEFG123" of the received random
data
(The reception area is the default value)
Address
R2 400
R2 401
Head
R2 402
"321GFEDCBA"
R2 403
R2 404
R2 405
R2 406
When the reception complete data size data has been received, the R2 turns the
reception normal read request signal (RXn2) or reception error read request
signal (RXn3) ON.
(4) Setting the buffer memory
The following buffer memories are related to the reception of data.
Name
Designate the head address of the R2 buffer memory to be used as the
reception area.
Always designate
Set so that the area is not duplicated with areas used by other functions.
Setting range: 200
Designate the size of the R2 buffer memory used as the reception area.
(Reception data size storage area + reception data storage area size)
Set the reception area size to be 2
Buffer memory
5 or 10
H
(B)
(A)
H
42
,
41
H
H
(D)
(C)
H
44
,
43
H
H
(F)
(E)
H
46
,
45
H
H
(1)
(G)
H
31
,
47
H
H
(3)
(2)
H
33
,
32
H
H
H
200
or above, which is the user free area.
R 2
H
to 7FE
(Default value: 400
H
H
6 - 7
Reception data size storage area
The received data size (10 characters worth)
is stored according to the word/byte unit
designation
(
R2 102
H
Reception data storage area
The received data is stored in the order of
smaller addresses (L) to (H) received, and
then the next address (L) to (H).
Details
)
H
or more.
H
MELSEC-A
.
)

Advertisement

Table of Contents
loading

Table of Contents