Mitsubishi Electric MELSEC iQ-R Series User Manual page 339

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

Advertisement

Transmission by 1st/2nd combinations of transparent code for sending specification
Ex.
Transparent code designation (1st): Additional code: 10H (DLE),Transparent code: 02H (STX)
Transparent code designation (2nd): Additional code: 10H (DLE),Transparent code: 03H (ETX)
Target
device
C24
Transmission
X50
command
CPU module
Completion device
M0
Status display
M1
device
at completion
■Program example
When C24 transmits data to the target device by transparent code designation (2nd combination of 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
(1st)
Transparent
Head data
code (1st)
D
S
N
0 1 2 3
A
L
T
U
E
X
L
L
30H 31H32H 33H 10H 02H 00H 41H
OUTPUT
Additional
code
(2nd)
Transparent
code (2nd)
For word unit:
D
E
N
C
L
Transmitted byte count excluding additional code (12)/2=6
B
L
T
U
For byte unit:
E
X
L
R
F
L
Transmitted byte count excluding additional code (12)
42H
0DH0AH
10H 03H 00H
ON
Abnormal
ON
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
(NULL) (ETX)
D14
00H , 03H
(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
(NULL) (ETX)
Un\G1029
00H , 03H
(LF) (CR)
Un\G1030
0AH , 0DH
Buffer memory
Device
337
16

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents