Mitsubishi Electric MELSEC iQ-R Series User Manual page 336

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

Advertisement

Operation example of reception by the receive end code
When C24 receives data from the target device when the transparent code designation is enabled
Ex.
Additional code: 10H(DLE), Transparent code: 02H(STX), End code: 0D0AH(CR+LF)
Head data
Target
device
CPU module
Reception data
X3
read request
CPU module
Completion device
M0
Status display
M1
device
at completion
When the transparent code for receiving specification is enabled, the codes for receivable data and the codes for the received
data which is stored in the receive area on the buffer memory are as shown below.
Type
Transparent code for receiving
specification portion
Arbitrary data portion (including end code)
16 TRANSPARENT CODES AND ADDITIONAL CODES
334
16.4 Data Communication Using Nonprocedural Protocol
Additional code (C24 deletes)
Transparent code
D
S
N
0
1
2
3
A
B
L
T
U
E
X
L
L
(1234H)
30H
31H
32H 33H 10H 02H
00H
41H
42H
34H12H
INPUT
Additional code
Transparent code
For word unit:
C
L
Received byte count excluding additional code (12)/2=6
For byte unit:
R
F
Received byte count excluding additional code (12)
0DH0AH
ON
ON
Abnormal
completion
Normal
completion
1 scan
Receivable codes
01H to FFH
00H to FFH
The following diagram is for word unit
00H , 06H
Un\G1536
(1) (0)
Un\G1537
D10
31H , 30H
(3) (2)
Un\G1538
D11
33H , 32H
(NULL) (STX)
Un\G1539
D12
00H , 02H
(B) (A)
Un\G1540
D13
42H , 41H
(1234H)
Un\G1541
D14
12H , 34H
(LF) (CR)
Un\G1542
D15
0AH , 0DH
Buffer memory
Codes stored in the receive
area
(Delete)
00H to FFH
Receive data count
is stored
00H , 06H
D2
(1) (0)
31H , 30H
(3) (2)
33H , 32H
(NULL) (STX)
00H , 02H
(B) (A)
42H , 41H
(1234H)
12H , 34H
(LF) (CR)
0AH , 0DH
Program
device memory

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents