16 TRANSPARENT CODES AND ADDITIONAL CODES
16.5 Handling Transparent and Additional Codes for Bidirectional Protocol Data Communication
339
16
16.5 Handling Transparent and Additional Codes for
Bidirectional Protocol Data Communication
This section explains how to handle the transparent codes and additional codes during data communication using the
bidirectional protocol.
Adding/deleting additional code designation code
The data designated by the additional code is added to/deleted from the data to be transmitted or received.
Data range of transmit/receive processing
The range of transmitted/received data to which processing to transmit/receive transparent codes and additional codes is
performed includes data length, data portion, and error code of a message.
Head code (ENQ, ACK, NAK) and sum check code of each message are not included.
C24 performs the following processing during data transmission/reception.
■At the time of request data reception
When an additional code set for reception is detected, C24 removes the additional code data and perform data reception
processing by treating the immediately succeeding 1-byte data as a part f the received data during the reception of a request
data.
■At the time of response message transmission
When transparent code/additional code data set for transmission is detected, C24 transmits data by adding the additional
code designation data immediately before it during the transmission of the response message to data reception.
■At the time of request data transmission
When transparent code/additional code data set for transmission is detected, C24 transmits data by adding the additional
code designation data immediately before it during data transmission.
■At the time of response message reception
When an additional code set for reception is detected, C24 removes the additional code data and perform data reception
processing by treating the immediately succeeding 1-byte data as a part of the received data during the reception of the
response message to data transmission.
HLHL
E
N
Q
A
C
K
N
A
K
LH
Transmission sequence
Error
code
(When
normal)
(When
abnormal)
Target device
Sum
check
code
Data section
(Designated transmission
data)
Data
length
CPU module
Applicable data range
*
*
*