Mitsubishi Electric MELSEC iQ-R Series User Manual page 314

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

Advertisement

Operation example
■When receiving data using a combination of arbitrary data and final frame (reception using
Method 0)
When STX is
handled
as transparent
code.
Head data
Target
device
CPU module
Reception data
X3
read request
CPU module
Completion device
M0
Status display
M1
device
at completion
15 DATA COMMUNICATIONS USING USER FRAMES
312
15.3 Program for Data Reception with User Frame
Additional code (C24 deletes)
Transparent code
D
S
L
T
E
X
10H 02H
S
C
B
0
1
2
3
T
A
C
X
R
(1234H)
30H 31H
32H 33H 02H
41H
42H
43H
34H 12H
0DH
Arbitrary data portion
Ò
INPUT
Un\G8224
Un\G8225
Un\G8226
Un\G8227
Un\G8228
Un\G8229
Un\G8230
Un\G8231
Buffer memory
L
E
O
F
T
0AH
3BH
04H
Last frame
(Corresponds to
registration No. 419H)
ON
ON
Abnormal
completion
Normal
completion
1 scan
User frame receiving
format designation
0H
(1st = format-0)
0H
(2nd = format-0)
0H
(3rd = format-0)
0H
(4th = format-0)
Received data count for format 1 only
0H
(1st)
0H
(2nd)
0H
(3rd)
0H
(4th)
Receive data count
Word units
Number of received byte excluding frame and additional code (12)/2=6
Byte units
Number of received byte excluding frame and additional code (12)
The following diagram is for word unit
Un\G173
2H
(None)
Un\G174
0H
(None)
Un\G175
0H
(None)
Un\G176
0H
(None)
Un\G177
0H
Un\G178
419H
(None)
Un\G179
0H
(None)
Un\G180
0H
(None)
Un\G181
0H
(None)
Un\G288
1002H
(Disable)
Un\G289
0H
Un\G603
1H
Un\G1536
00H , 06H
(1)
(0)
Un\G1537
31H , 30H
(3)
(2)
Un\G1538
33H , 32H
(A) (STX)
Un\G1539
41H , 02H
(C)
(B)
Un\G1540
43H , 42H
(1234H)
Un\G1541
12H , 34H
(LF) (CR)
Un\G1542
0AH , 0DH
Buffer memory
User frame use enable/
disable designation
First frame No. designation
(1st)
(2nd)
(3rd)
(4th)
Last frame No. designation
(1st)
(2nd)
(3rd)
(4th)
Receive transparent
code designation
ASCII-BIN conversion
designation
Ó
Receive user
to D0
frame (
th)
Ô
Receive data
to D3
count
Receive data
Õ
(arbitrary data portion)
to D10
or after

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents