Справочник Пользователя для Mitsubishi Electronics AJ65bt-r2
8 - 11
MELSEC-A
8 OTHER FUNCTIONS
(3) Precautions for using ASCII-BIN conversion transmission/reception
function
(a) The data codes 30
H
to 39
H
("0" to "9") and 41
H
to 46
H
("A" to "F") data is
handled as the transmission/reception data in the conversion target range.
(b) If ASCII-BIN conversion is designated for frame transmission or monitor
transmission, only the transmission data section (contents of transmission
area) is converted into ASCII data.
The registration frame (head frame/end frame when transmitting with
transmission frame 1 area) is not converted into ASCII data.
area) is converted into ASCII data.
The registration frame (head frame/end frame when transmitting with
transmission frame 1 area) is not converted into ASCII data.
(c) If ASCII-BIN conversion is designated for the frame reception, only the
reception data section (contents stored in the reception area) is converted
into binary data.
The reception head frame/end frame are compared with the reception data
as the registered data.
into binary data.
The reception head frame/end frame are compared with the reception data
as the registered data.
(d) If ASCII-BIN conversion is designated for the non-procedural transmission
or monitor transmission function, and the size of the binary data before
conversion exceeds 4096 bytes, the "transmission data size error (BB93
conversion exceeds 4096 bytes, the "transmission data size error (BB93
H
)"
will occur.
(e) If ASCII-BIN conversion is designated for frame transmission/reception
function, and the byte size of the data including the transmission/reception
data after ASCII-BIN conversion, the head frame and end frame exceeds
4096 bytes, the following errors will occur.
data after ASCII-BIN conversion, the head frame and end frame exceeds
4096 bytes, the following errors will occur.
•
When transmitting: Transmission data size error (BB93
H
)
•
When receiving: Reception data size over error (BBA2
H
)
(4) Setting the buffer memory
When carrying out ASCII-BIN conversion, designate the R2 buffer memory
shown below.
shown below.
R2 buffer
memory
address
address
Name
Details
R 2
103
H
ASCII-BIN
conversion
designation
conversion
designation
Designate whether to carry out ASCII-BIN conversion to
transmit/receive data as ASCII codes when exchanging data with
the external device.
transmit/receive data as ASCII codes when exchanging data with
the external device.
0 : Do not carry out ASCII-BIN conversion. (Default value)
1 : Carry out ASCII-BIN conversion.
1 : Carry out ASCII-BIN conversion.
POINT
When the above buffer memory setting values have been changed, initialize the R2
with the process given in section 8.6.
with the process given in section 8.6.