Mitsubishi Electric MELSEC iQ-R Series User Manual page 355

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

Advertisement

Operation example of reception based on the receive end data quantity
Ex.
When C24 receives data from the target device when ASCII-BIN conversion is enabled (Reception based on the receive end
data quantity)
Head data
0
1
2
Target device
30H
31H
32H 33H 34H
C24
Reception data
X3
read request
CPU module
Completion device
M0
Status display device
M1
at completion
When the transparent code for receiving specification is disabled and ASCII-BIN conversion is enabled, the codes for the
receivable data and the codes for the received data which is stored in the receive area on the buffer memory are as shown
below.
Type
Arbitrary data portion (including end code)
If data codes other than 30H to 39H and 41H to 46H are received for an arbitrary data portion, an error (7F20H) occurs after
ASCII-BIN conversion by C24.
3
4
5
A
B
C
D
E
9
35H
41H
42H
43H 44H 45H 39H
Set to even byte
INPUT
ON
ON
1 scan
17 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION)
For word units
Number of bytes after
Two bytes of receive data is read to
*
ASCII-BIN conversion:
C24 as one-byte data.
((6)/2=3)
For byte units
Number of bytes after
ASCII-BIN conversion:
(6)
The following diagram is for word unit
Abnormal completion
Normal completion
Un\G1536
00H , 03H
Un\G1537
23H , 01H
Un\G1538
ABH , 45H
Un\G1539
E9H , CDH
Buffer memory
Receivable codes
30H to 39H, 41H to 46H
17.4 Data Communication Using Nonprocedural Protocol
Store receive data count
D2
00H , 03H
D10
23H , 01H
D11
ABH , 45H
D12
E9H , CDH
Program
device memory
Codes stored in the receive
area
0H to 9H, AH to FH
353
17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents