Mitsubishi Electric MELSEC iQ-R Series User Manual page 335

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

Advertisement

Reception example based on the receive end data quantity
When C24 receives data from the target device when the transparent code designation is enabled
Ex.
Transparent code designation: Additional code: 10H (DLE), Transparent code: 02H (STX), Receive end data quantity
designation: 6-word or 12-word
Head data
0
1
Target device
30H31H 32H 33H 10H 02H 00H 41H
C24
Reception data
X3
read request
CPU module
M0
Completion device
Status display device
M1
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 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)
Additional code (C24 deletes)
Transparent code
D
S
N
C
D
2
3
L
T
U
A
B
E
X
L
L
(1234H)
42H 34H
12H 43H 44H
INPUT
Additional code
Transparent code
For word unit:
Number of received byte excluding additional code (12)/2=6
For byte unit:
Number of received byte excluding additional code (12)
ON
The following diagram is for word unit
Abnormal
ON
completion
Un\G1536
00H , 06H
Normal
completion
Un\G1537
31H , 30H
1 scan
Un\G1538
33H , 32H
(NULL) (STX)
Un\G1539
00H , 02H
(B) (A)
Un\G1540
42H , 41H
(1234H)
Un\G1541
12H , 34H
Un\G1542
44H , 43H
Buffer memory
Receivable codes
01H to FFH
00H to FFH
16 TRANSPARENT CODES AND ADDITIONAL CODES
16.4 Data Communication Using Nonprocedural Protocol
Receive data count is
stored
00H , 06H
D2
(1) (0)
(1) (0)
D10
31H , 30H
(3) (2)
(3) (2)
D11
33H , 32H
(NULL) (STX)
D12
00H , 02H
(B) (A)
D13
42H, 41H
(1234H)
D14
12H , 34H
(D) (C)
(D) (C)
D15
44H , 43H
Program
device memory
Codes stored in the receive
area
(Delete)
00H to FFH
16
333

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents