User`s manual

329
CHAPTER 13 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION)
13
13.5 Performing ASCII-BIN Conversion for Data Communicated via the Bidirectional Protocol
13.5 Performing ASCII-BIN Conversion for Data
Communicated via the Bidirectional Protocol
This section explains the ASCII-BIN conversion of data to be communicated using the bidirectional protocol.
(1) The following shows the range of transmission/reception data for which ASCII-
BIN conversion can be performed.
When sending or receiving data, the Q series C24 processes data as follows:
(a) Range of ASCII-BIN conversion
The Q series C24 performs the ASCII-BIN conversion for any data section (data length and data section) and
error code in a message.
(b) Conversion of data length
At transmission: The Q series C24 converts a transmission data count to 4-digit ASCII code data
(hexadecimal), then sends it beginning with the lowest byte (L).
At reception: The Q series C24 converts a received data length (4-digit ASCII code data (hexadecimal)) to
2-byte binary code data and stores it in the reception data count storage area.
(c) Conversion of data section
At transmission: The Q series C24 converts transmission data for one address to 4-digit ASCII code data
(hexadecimal), then sends it beginning with the lowest byte (L).
At reception: The Q series C24 converts each two characters of a received data section (2-digit ASCII
code data (hexadecimal)) to 1-byte binary code data and stores it in the reception data storage area.
N
A
K
A
C
K
E
N
Q
(Arbitrary data section)
Data section
Data
length
Sum check
code
Applicable data range at transmission/reception
Error code
Applicable data range at transmission/reception
Message at data transmission/
reception
Response message