Registering Transparent Codes And Additional Codes - Mitsubishi Electric MELSEC iQ-R Series User Manual

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

Advertisement

During data communication using the ASCII-BIN conversion
When transmitting data, the transparent code check is performed to the data after ASCII-BIN conversion. If a transparent code
is detected, an additional code is added to the 1-byte immediately preceding it.
When receiving data, the additional code check is performed to the data before ASCII-BIN conversion. If an additional code is
detected, the additional code are deleted.
Data which will be subject for the handling of a transparent code and an additional code is data after ASCII-BIN conversion for
data transmission and data before ASCII-BIN conversion for data reception.
Ex.
When transmitting/receiving data using an arbitrary format of the nonprocedural protocol
Target device
Head data
Arbitrary data
1
2
0
2
3
31
32
30
32
33
H
H
H
H
H
16.2
Registering Transparent Codes and Additional
Codes
To control transparent codes and additional codes for data to be sent/received with the nonprocedural or bidirectional
protocol, configuring the settings to C24 prior to data communication is required.
Registration method
For each interface, 10 combinations and one combination of transparent codes and additional codes can be set for
transmission and reception, respectively.
Transparent codes and additional codes are set in "Transparent code designation_Transparent code for sending specification
(nth)", and "Transparent code designation_Transparent code for receiving specification" of the parameter.
Navigation window  [Parameter]  [Module Information]  "Module Name"  [Module Parameter]  "Basic Settings"
 "Various control specification"
When specifying a transparent code for sending, set it by left justifying from the transparent code for sending specification
(1st) in order.
Precautions
If additional code data is received during data reception, C24 will not treat the immediately succeeding one-byte data as the
control data for the following frame:
• Data received as the start frame and final frame of the user frames
Therefore, do not configure the following settings. (The code for the data described above cannot be designated as additional
codes for data reception.)
• A receive user frame setting that contains an additional code data for data reception
• The same receive same code setting as the additional code data for data reception
Send
D
L
A
B
C
E
10
41
42
43
Receive
H
H
H
H
Transparent code
(For 41H)
Additional code
(For 10H)
Buffer memory (transmission area/reception area)
(H)
(0002H)
00H , 02H
(0212H)
02H , 12H
(BC3AH)
BCH , 3AH
(The data count is in word units)
16 TRANSPARENT CODES AND ADDITIONAL CODES

16.2 Registering Transparent Codes and Additional Codes

(L)
Transmission data
count/Receive data
count
Transmission data/
receive data
327
16

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents