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