Mitsubishi Electronics AJ65bt-r2 ユーザーズマニュアル

ページ / 264
6 - 3
MELSEC-A
6   EXCHANGING DATA WITH AN EXTERNAL DEVICE
(3)   Designating and writing the transmission data
The data to be transmitted from the programmable controller CPU to the external
device is designated with the R2 buffer memory transmission area.
1) Write the transmission data size in the transmission data size designation
area.
The data size unit differs according to the word/byte unit designation (
R 2
102
H
) setting.
2) Write the data to be transmitted (random data section in transmission
statement) in the transmission data storage area.
(Example)
To transmit the ten characters "ABCDEFG123" (the transmission
area is the default value)
(B)                                   (A)
42
H
                 ,                 41
H
(D)                                   (C)
44
H
                 ,                 43
H
(F)                                   (E)
46
H
                 ,                 45
H
(1)                                   (G)
31
H
                 ,                 47
H
(3)                                   (2)
33
H
                 ,                 32
H
(5)                                   (4)
35
H
                 ,                 34
H
(H)                 ,                 (L)
R2 206
H
R2 200
H
R2 201
H
R2 202
H
R2 203
H
R2 204
H
R2 205
H
Transmission data storage area designated with the 
transmission data size storage area.
The transmission data is stored in the order of the 
smaller addresses (L) to (H), and next address (L) to 
(H).
Buffer memory
5 or 10
Transmission data size storage area
Write the transmission data size (10 characters worth) 
with the designated value to the word/byte unit 
designation (               ).
     For word unit ... 5
     For byte unit .... 10
R2 102
H
Address
When the transmission request signal (RYn0) is turned ON after storing the data as
shown above, the R2 will sequentially transmit the designated data size in order of the
smaller addresses in the transmission data storage area.
A
41
H
B
42
H
C
43
H
D
44
H
E
45
H
F
46
H
G
47
H
1
31
H
2
32
H
3
33
H
To external
device
Random data section
When not using 
ASCII-BIN conversion