Mitsubishi Electric MELSEC iQ-R Series User Manual page 413

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

Advertisement

Example of arbitrary data transmission
C24 transmits a string data using the NULL character automatic removal function to the target device.
Ex.
Transmitting given data with OUTPUT dedicated instruction
Target device
C24
Transmission
X50
command
CPU module
Completion device
M0
Status display
M1
device
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
(Arbitrary data)
1
2
3
A
B
C
31H 32H 33H 41H 42H 43H
OUTPUT
25 AUTOMATIC REMOVAL OF NULL CHARACTERS INCLUDED IN SEND DATA
ON
ON
Abnormal
completion
Normal
completion
1 scan
Transmission
data count
Transmission
data
Description
Target module
Buffer memory (transmission area)
(H)
(L)
(0004
)
H
00
04
H
H
(3231
)
H
32
31
,
H
H
(0033
)
H
00
33
,
H
H
(4241
)
H
42
41
,
H
H
(0043
)
H
00
43
,
H
H
(The data count is in word units)
Device
25.4 Program Example
25
411

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents