Mitsubishi Electric MELSEC iQ-R Series User Manual page 308

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

Advertisement

■When receiving with a combination of the start frame and arbitrary data (reception using
Method 0)
When STX is handled
as transparent code.
Head data
Target device
First frame (corresponds
CPU module
to registration No. 3E9H)
Reception data
X3
read request
CPU module
M0
Completion device
Status display device
M1
at completion
15 DATA COMMUNICATIONS USING USER FRAMES
306
15.3 Program for Data Reception with User Frame
Additional code (C24 deletes)
Transparent code
D
S
L
T
E X
10H 02H
S
S
;
A
T
0
1
2
3
T
A
B
C
X
X
02H41H 3BH30H 31H 32H 33H 02H 41H 42H 43H 34H 12H0DH0AH
Arbitrary data
(Received data count)
Ò
INPUT
Un\G8224
Un\G8225
Un\G8226
Un\G8227
Un\G8228
Un\G8229
Un\G8230
Un\G8231
C
L
R
F
(1234H)
ON
ON
Abnormal
completion
Normal
completion
1 scan
User frame receiving
format designation
0H
(1st = format-0)
0H
(2nd = format-0)
1H
(3rd = format-1)
1H
(4th = format-1)
Received data count for format 1 only
0H
(1st)
0H
(2nd)
0H
(3rd)
2H
(4th)
Buffer memory
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\G164
Received data count
6H
User frame use enable/
Un\G173
2H
disable designation
First frame No. designation
Un\G174
3E8H
3E9H
Un\G175
Un\G176
6H
15H
Un\G177
Last frame No. designation
Un\G178
41BH
(None)
Un\G179
0H
(None)
Un\G180
0H
(None)
Un\G181
0H
(YES)
(NO)
Receive transparent
Un\G288
1002H/ 0H
code designation
(Disable)
ASCII-BIN conversion designation
Un\G289
0H
Receive user
Un\G603
2H
frame (
Receive data
Un\G1536
00H , 06H
count
Received data
(1)
(0)
Un\G1537
(arbitrary data)
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
(1st)
(2nd)
(3rd)
(4th)
(1st)
(2nd)
(3rd)
(4th)
Ó
to D0
th)
Ô
to D3
Õ
to D10
or after

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents