User`s manual
325
CHAPTER 13 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION)
13
13.4 Example of Data Communication Using the Non Procedure Protocol
(2) Reception based on the received data count
When the receive transparent code designation is set to Disable and ASCII-BIN conversion is enabled, the codes of
receivable data and the codes of receive data that is stored in the reception area of the buffer memory are as follows:
If data codes other than 30H to 39H and 41H to 46H are received for an arbitrary data section, an error occurs after ASCII-
BIN conversion by the Q series C24.
Item Receivable codes Codes stored in the reception area
Arbitrary data section 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
X83
M0
M1
ON
ON
600H
601H
602H
603H
00H , 03H
23H , 01H
ABH , 45H
E9H , CDH
D2
D10
D11
D12
00H , 03H
23H , 01H
ABH , 45H
E9H , CDH
INPUT
Completion device
Reception data read
request
Head data
Status display device
at completion
One scan
Abnormal completion
Normal completion
Number of bytes after
ASCII-BIN conversion:
((6)/2=3) when
word units are used,
(6) when byte units are used
Buffer memory Sequence program
device memory
2)
3)
Set to even byte
Sets CH1 to the reception channel
Sets the normal completion flag
Sets the abnormal completion flag
Executes reception
Reception data read request
Sets the allowable number of receiving data to 6
Two bytes of reception data is read to
the programmable controller CPU as
one-byte data.
*
Store data
received count
Programmable
controller CPU
External device side
Programmable
controller CPU side
The diagram below is for when
word units are used.