Mitsubishi Electric MELSEC iQ-R Series User Manual page 415

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

Advertisement

Example of transmission using user frame
C24 transmits a string data using the NULL character automatic removal function to the target device.
Ex.
Transmitting given data in combination with a user frame with PRR dedicated instruction
Target device
C24
S
Q
T
X
02
51
0A
00
H
H
H
Corresponds to 3F2H
Registration No. of
(for first designated frame)
the corresponding
user frame
Transmission
X50
command
CPU module
Completion
M0
device
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
;
T
O
T
A
L
;
(Total
number)
(012D
H
3B
54
4F
54
41
4C
3B
2D
01
H
H
H
H
H
H
H
H
H
Corresponds to 3F3H (for
Corresponds to
second designated frame)
8001H (for third
designated frame)
PRR
ON
ON
Abnormal
completion
Normal
completion
1 scan
25 AUTOMATIC REMOVAL OF NULL CHARACTERS INCLUDED IN SEND DATA
E
T
Data in transmission area
X
(arbitrary data portion)
1
2
3
A
B
C
)
03
A7
31
32
33
41
42
43
H
H
H
H
H
H
H
H
H
Corresponds to 8000H
Corresponds to 41BH
(for fourth designated
(for fifth designated
frame)
frame)
Buffer memory (frame designation)
User frame
(Not sent)(Sending)
being
transmitted
For transmit
user frame
designation
(*1): NULL characters deletion is not performed since b14 for
transmission frame No. designation is 'ON'.
Buffer memory (transmission area)
(H)
Transmission
00
data count
32
00
Transmission
data
42
00
Description
Target module
User frame being transmitted
0H/Other than 0H
(Do not send)
CR/LF output designation
0
H
(1st)
Output head pointer designation
1
H
Output count designation
5
H
Transmission frame no. designation (1st)
43F2
(*1)
H
Transmission frame no. designation (2nd)
43F3
(*1)
H
Transmission frame no. designation (3rd)
C001
(*1)
H
Transmission frame no. designation (4th)
8000
H
Transmission frame no. designation (5th)
441B
(*1)
H
Transmission frame no. designation (6th)
0
H
(L)
(0004
)
H
,
04
H
H
(3231
)
H
,
31
H
H
(0033
)
H
,
33
H
H
(4241
)
H
,
41
H
H
(0043
)
H
,
43
H
H
Device
25.4 Program Example
25
413

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents