Mitsubishi Electric MELSEC iQ-R Series User Manual page 420

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

Advertisement

Example of data transmission
C24 transmits a string data using the NULL character automatic removal function to the target device.
Ex.
Transmitting given data with BIDOUT dedicated instruction
Target device
C24
Transmission
X50
command
CPU module
Completion device
M0
Status display device
M1
at completion
■Program example
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
25 AUTOMATIC REMOVAL OF NULL CHARACTERS INCLUDED IN SEND DATA
418
25.6 Program Example
E
Data length
Data area
N
(0006)
Q
L
H
1
2
3
A
B
05
06
00
31
32
33
41
42
H
H
H
H
H
H
H
H
BIDOUT
ON
ON
1 scan
Transmission
data
A
C
K
06
H
Sum
check
code
L
H
C
43
62
01
H
H
H
Abnormal
completion
Normal
completion
(H)
(L)
(H)
(0008
)
H
D3
00
,
08
00
H
H
(3231
)
H
D10
32
,
31
32
H
H
(0033
)
H
D11
00
,
33
00
H
H
(4241
)
H
D12
42
,
41
42
H
H
(0043
)
H
D13
00
,
43
00
H
H
Program
Buffer memory
device memory
(transmission area)
Description
Target module
(The data count is in byte units)
(L)
(0008
)
H
Transmission data count
,
08
H
H
(3231
)
H
,
31
H
H
(0033
)
H
,
33
H
H
Transmission data
(4241
)
H
,
41
H
H
(0043
)
H
,
43
H
H
Device

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents