6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL
REMARK
(1)Data reception when the receive data storage area is larger than the receive data length
The following control is performed.
(Example) When the receive area for the CH1 side interface is located at addresses 600H to 7FFH (default values) and data of 511 words or less is received by the CH1 side interface.
External device
Q series C24
Reception data read request signal
X3
Sequence program
Complete code
100 words
INPUT
Read data count: 100 words
(2)Data reception when the receive data storage area is smaller than the receive data length
Since the following control is performed, data link processing is required in the sequence program.
1)Reception using the complete code
(Example) When the receive area for the CH1 side interface is located at addresses 600H to 7FFH (default values), and data of 534 words is received by the CH1 side interface.
|
|
|
|
|
|
|
|
|
|
|
|
| Complete code | ||
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
External device | 511 words |
| 23 words |
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q series C24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reception data read request |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
X3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sequence program |
|
|
|
| INPUT |
|
|
|
| INPUT |
| ||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
| Read data count: |
|
| Read data count: | ||||||||
|
|
|
| 511 words |
|
| 23 words |
6 - 9 | 6 - 9 |