EasyManua.ls Logo

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

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.4 Data Communication Using Nonprocedural Protocol
335
16
Example of data transmission
The following shows an example of data transmission.
Transmission by transparent code for sending specification, 1st
Ex.
Transparent code designation: Additional code: 10H (DLE), Transparent code: 02H (STX)
Program example
When C24 transmits data to the target device by transparent code designation (1st combination of the transparent code for
sending specification is set)
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
Label to be defined Define the global label as shown below.
01123
B
A
30H 31H 32H
33H
10H 02H 00H 41H 34H 12H
(1234H)
0DH0AH42H
D
L
E
S
T
X
N
U
L
L
C
R
L
F
ON
ON
00H , 06H
(1) (0)
31H , 30H
(3) (2)
33H , 32H
(NULL) (STX)
00H , 02H
(B) (A)
42H , 41H
(1234H)
12H , 34H
(LF) (CR)
0AH , 0DH
00H , 06H
(1) (0)
31H , 30H
(3) (2)
33H , 32H
(NULL) (STX)
00H , 02H
(B) (A)
42H , 41H
(1234H)
12H , 34H
(LF) (CR)
0AH , 0DH
D3
D10
D11
D12
D13
D14
D15
X50
M0
M1
OUTPUT
Additional code (added by C24)
Target
device
Transparent code
Head data
For word unit:
Transmitted byte count excluding additional code (12)/2=6
For byte unit:
Transmitted byte count excluding additional code (12)
C24
Transmission
command
CPU module
Transmission
data count
Completion device
Abnormal
completion
Status display
device
at completion
The following diagram is
for word unit
Normal
completion
1 scan
Un\G1024
Un\G1025
Un\G1026
Transmission data
Un\G1027
Un\G1028
Un\G1029
Un\G1030
Program
device memory
Buffer memory

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-RJ71C24-R2

Related product manuals