Mitsubishi Electric MELSEC iQ-R Series User Manual page 307

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

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents