Mitsubishi Electric MELSEC iQ-R Series User Manual page 356

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

Advertisement

Operation example of reception using user frames
Ex.
When C24 receives data from the target device when ASCII-BIN conversion is enabled (Reception using user frames)
Head data
Target device
C24
Reception data
X3
read request
CPU module
Completion device
M0
Status display
M1
device
at completion
17 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION)
354
17.4 Data Communication Using Nonprocedural Protocol
S
;
T
Q
0
1
2
F
X
02H
51H
00H
0AH 3BH
30H
31H
32H46H 35H
First frame
(corresponds to registration
number 3E8H)
INPUT
E
5
A
B
C
D
E
F
9
T
X
41H
42H
43H
44H
45H
46H
39H
03H DEH
Last frame(corresponds to
Arbitrary data
registration number 41BH)
ON
ON
Abnormal
completion
Normal
completion
1 scan
Receive data count
For word units
Number of bytes after ASCII-BIN conversion of
receive data excluding frames and additional codes: ((6)/2=3)
For byte unites
Number of bytes after ASCII-BIN conversion of receive data
excluding frames and additional codes: (6)
The following diagram is for word unit
User frame enable/
Un\G173
2H
disable designation
First frame No. designation
Un\G174
3E8H
(1st)
Un\G175
3E9H
(2nd)
Un\G176
3EAH
(3rd)
(No designation)
Un\G177
(4th)
0H
Last frame No. designation
Un\G178
41BH
(1st)
Un\G179
41BH
(2nd)
(No designation)
Un\G180
(3rd)
0H
(No designation)
Un\G181
(4th)
0H
(Designation) (No designation)
Receive transparent
Un\G288
code designation
1002H/ 0H
(Convert)
ASCII-BIN conversion
Un\G289
designation
1H
Receive user
Un\G603
1H
frame (  th)
Receive data
Un\G1536
00H , 03H
count
Receive data
Un\G1537
2FH , 01H
(arbitrary data)
Un\G1538
BCH , 5AH
Un\G1539
F9H , DEH
Buffer memory
to D0
to D3
D10 to
D12

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents