Ascii-Bin Conversion For Data Communicated With Nonprocedural Protocol - Mitsubishi Electric MELSEC iQ-R Series User Manual

Serial communication module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

17.3
ASCII-BIN Conversion for Data Communicated
with Nonprocedural Protocol
This section explains the ASCII-BIN conversion of data to be communicated using the nonprocedural protocol.
Data range of transmit/receive processing
The range of data to be sent/received to which ASCII-BIN conversion is performed is as shown below:
Message at transmission/
reception in arbitrary format
C24 performs the following processing when sending or receiving data.
■At the time of data reception
• C24 receives data of which data code is in the range of 30H to 39H ('0' to '9') and 41H to 46H ('A' to 'F') as the data within
the above conversion applicable range.
• C24 regards given data portion as ASCII code, and converts it to binary code to store in the buffer memory.
• The user frame portion is received in the data format corresponding to the registration to C24.
■At the time of data transmission
• C24 transmits data of which data code is in the range of 30H to 39H ('0' to '9') and 41H to 46H ('A' to 'F') as the data within
the above conversion applicable range.
• C24 regards data designated by the CPU module (given data portion in a transmission message) and user frame portions
as binary code data, and converts to ASCII code to transmit them.
Target device
(When communicated in an arbitrary format)
Head data
1
31
17 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION)
348

17.3 ASCII-BIN Conversion for Data Communicated with Nonprocedural Protocol

Applicable data range at transmission
Arbitrary data
Applicable data range at reception
Arbitrary data
2
0
2
3
A
B
C
Receive
32
30
32
33
41
42
43
H
H
H
H
H
H
H
H
Message at transmission/
reception using user frames
Buffer memory (transmission area/reception area)
Send
(No. of data in word units)
Applicable data range at transmission
User frame
Arbitrary
(First frame)
data
Applicable data range at reception
(H)
(L)
Transmission data count/
(0002H)
00H , 02H
Receive data count
(0212H)
02H , 12H
Transmission data/
receive data
(BC3AH)
BCH , 3AH
User frame
(Last frame)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents