Mitsubishi Electric MELSEC iQ-R Series User Manual page 354

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

Advertisement

Operation example of reception by the receive end code
When C24 receives data from the target device when ASCII-BIN conversion is enabled (Reception by the receive end code)
Ex.
End code: 9H (code after ASCII-BIN conversion)
Head data
Target device
C24
Reception data
X3
read request
CPU module
Completion device
M0
Status display device
M1
at completion
When 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 processing by C24.
To perform ASCII-BIN conversion, ensure the end code is the code after conversion.
17 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION)
352
17.4 Data Communication Using Nonprocedural Protocol
0
1
2
3
4
5
A
B
C
D
E
30H 31H 32H 33H 34H 35H 41H
42H
43H 44H 45H39H
Set to even byte
INPUT
For word units
Data
Number of bytes after
corresponding
ASCII-BIN conversion:
to complete code
((6)/2=3)
For byte units
9
Number of bytes after
ASCII-BIN conversion:
(6)
ON
ON
Abnormal completion
Normal completion
1 scan
Receivable codes
30H to 39H, 41H to 46H
*
Two bytes of received data is read to
C24 as one-byte data.
Transmit data from the target device so
that the converted complete code data
is arranged in an even-number-byte of data.
The following diagram is for word unit
Un\G1536
00H , 03H
Un\G1537
23H , 01H
D10
Un\G1538
D11
ABH , 45H
Un\G1539
E9H , CDH
D12
Buffer memory
Codes stored in the receive
area
0H to 9H, AH to FH
Store receive
data count
D2
00H , 03H
23H , 01H
ABH , 45H
E9H , CDH
Program
device memory

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents