6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL
|
|
|
|
| Q series C24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
PLC CPU |
|
| Receive area |
|
| Reception error causing data | ||||||||||||||||||||||||
MODE. | Reception |
|
|
| ||||||||||||||||||||||||||
| (buffer memory) |
|
| |||||||||||||||||||||||||||
Q25HCPU |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
RUN. |
|
|
| abnormal | Receive data |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Receive | |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
| count storage |
|
|
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||
ERR. |
|
|
| detection |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||
USER. |
|
|
|
| (00H) | (03H) |
| Head data |
|
| complete code |
|
|
|
|
| ||||||||||||||
BAT. |
|
|
|
| area |
|
|
|
|
|
|
|
|
| ||||||||||||||||
BOOT. |
|
|
|
|
| A | STX |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
| Receive data |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
| storage area |
| (41H) (02H) |
| STX | A | B | C | D | E | F | G | H | ETX |
|
|
| |||||||||
|
|
|
| INPUT |
| C | B |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
| (02H) | (41H) | (42H) | (43H) | (44H) | (45H) | (46H) | (47H) | (48H) | (03H) | ||||||||||||||
|
|
|
| instruction |
|
| (43H) | (42H) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
| E | D |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
| (45H) | (44H) |
| Transmission data |
|
|
|
|
| External device | ||||||||||||||||
USB |
|
|
|
|
|
|
|
|
| |||||||||||||||||||||
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q series C24 ready signal | (X1E) |
Reception data read request | (X3) |
Reception abnormal | (X4) |
detection signal |
|
|
|
|
|
|
| |
INPUT instruction |
|
|
| INPUT | ||||
INPUT instruction complete device |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
INPUT instruction complete device + 1 |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| ||
(normal completion/abnormal |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 scan | ||
completion) |
|
|
|
|
| |||
|
|
|
|
| ||||
Receive data count storage area |
|
|
|
|
|
|
| |
| n | 3 |
|
|
| |||
(Buffer memory address: 600H) |
|
|
|
| ||||
|
|
|
|
|
|
| ||
Receive data storage area |
|
|
|
|
|
| ||
|
|
| Receive data |
| ||||
(Buffer memory addresses: 601H to) |
|
| ERR LED lights up | |||||
|
|
|
|
Reception abnormal detection data
Data reception
When the data from "G" to in the reception message shown in the figure above is received normally, the data is stored in the Q series C24 OS area.
The receive data stored in the OS area will be read to the PLC CPU in the succeeding read operation.
6 - 19 | 6 - 19 |