![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/3/3e/33e03642-aabc-433e-86f1-2665ff8fc79b/33e03642-aabc-433e-86f1-2665ff8fc79b-bgb6.png)
8 - 10
MELSEC-
8 OTHER FUNCTIONS
8.4 ASCII-BIN conversion of transmission data
When exchanging data between the R2 and external device, the data is transmitted
and received as ASCII code data, so ASCII-BIN conversion can be carried out.
Set according to the specifications of the external device.
The R2 converts the data as follows with ASCII-BIN conversion.
•
When transmitting........... The transmission area data is interpreted as binary data,
and is converted into ASCII data before transmission.
•
When receiving............... The reception data is interpreted as ASCII data, and is
converted into binary data before storage in the reception
area.
(1) Transmission order during ASCII-BIN conversion transmission
During ASCII-BIN conversion transmission, the data is transmitted from the low-
order byte, and when converted into ASCII code data, it is transmitted from the
high-order byte.
(2) Reception order during ASCII-BIN conversion transmission
During ASCII-BIN conversion reception, the reception data is stored from the
low-order byte. The odd character of the reception data is stored as the upper
digit of the 1-byte data after conversion, and is converted into binary code data
before storage in the reception area.
(0002
H
)
00
H
,02
H
(0212
H
)
02
H
,12
H
(BC3A
H
)
BC
H
,3A
H
(H) (L)
C
43
H
B
42
H
A
41
H
3
33
H
2
32
H
0
30
H
2
32
H
1
31
H
1
31
H
2
32
H
0
30
H
2
32
H
3
33
H
A
41
H
B
42
H
C
43
H
Buffer memory (transmission area/reception area)
Transmission data
size/reception
data size
Transmission data/
reception data
(The data size is for a word unit)
Conversion
Head data
Reception
Transmission
Random data section
Random data section
External device
Head data
R2