EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-RJ71C24-R2 - Example of Data Reception

Mitsubishi Electric MELSEC iQ-RJ71C24-R2
574 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
16 TRANSPARENT CODES AND ADDITIONAL CODES
16.6 Data Communication Using Bidirectional Protocol
343
16
Example of data reception
The following example shows when receiving binary data including a transparent code from a target device.
Transparent code for receiving specification is enabled
Ex.
Transparent code designation: Additional code: 10H (DLE), Transparent code: 02H (STX)
Program example
For information on the module FB to be used, refer to the following manual.
MELSEC iQ-R Serial Communication Module Function Block Reference
Category Label name Description Device
Module label C24_1 Target module
C24_1.stnCH1.bSet_Req_ReceptionRead CH1 Reception data read request X3
Label to be defined Define the global label as shown below.
X3
M0
M1
10H05H
B
41H
A
34H12H
(1234H)
BIDIN
ON
ON
42H04H00H
(0004H)
02H11H
(1102H)
06H
43H 44H
LH
67H 01H
LH
E
N
Q
D
L
E
A
C
K
DC
00H , 04H
(B) (A)
42H , 41H
(1234H)
12H , 34H
(D) (C)
44H, 43H
D3
D10
D11
D12
D13
(1102H)
11H , 02H
00H , 04H
(B) (A)
42H , 41H
(1234H)
12H , 34H
(D) (C)
44H , 43H
(1102H)
11H , 02H
Additional code (C24 deletes)
Transparent code
Sum
check
code
Data
length
Data portion
Target
device
C24
Reception data
read request
(Receive data count):
Excluding additional codes
For word unit : 0004H
For byte unit : 0008H
CPU module
Completion device
The following diagram is for word unit
Abnormal
completion
Status display
device
at completion
Normal
completion
Data
length
Un\G1536
1 scan
Un\G1537
Un\G1538
Data
area
Un\G1539
Un\G1540
Buffer memory Program
device memory

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-RJ71C24-R2

Related product manuals