Example Of Data Transmission - Mitsubishi Electric MELSEC iQ-R Series User Manual

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

Advertisement

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)
Target
device
C24
Transmission
X50
command
CPU module
M0
Completion device
Status display
M1
device
at completion
■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)
Category
Label name
Module label
C24_1
Label to be defined
Define the global label as shown below.
For information on the module FB to be used, refer to the following manual.
MELSEC iQ-R Serial Communication Module Function Block Reference
Additional code (added by C24)
Transparent code
Head data
D
S
N
0 1 1 2 3
L
T
U
E
X
L
L
30H 31H 32H 33H 10H 02H 00H 41H
OUTPUT
C
L
For word unit:
A
B
Transmitted byte count excluding additional code (12)/2=6
R
F
For byte unit:
Transmitted byte count excluding additional code (12)
(1234H)
42H
34H 12H
0DH0AH
ON
ON
Abnormal
completion
Normal
completion
1 scan
D3
00H , 06H
(1)
(0)
D10
31H , 30H
(3)
(2)
D11
33H , 32H
(NULL) (STX)
D12
00H , 02H
(B)
(A)
D13
42H , 41H
(1234H)
D14
12H , 34H
(LF) (CR)
D15
0AH , 0DH
Program
device memory
Description
Target module
16 TRANSPARENT CODES AND ADDITIONAL CODES
16.4 Data Communication Using Nonprocedural Protocol
Transmission
data count
The following diagram is
for word unit
Un\G1024
00H , 06H
(1)
(0)
Un\G1025
31H , 30H
(3)
(2)
Un\G1026
33H , 32H
(NULL) (STX)
Un\G1027
00H , 02H
(B)
(A)
Un\G1028
42H , 41H
(1234H)
Un\G1029
12H , 34H
(LF) (CR)
Un\G1030
0AH , 0DH
Buffer memory
Device
335
16

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents