7DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL
(2)Transmission data arrangement
The following example shows an arrangement of the transmission data to be sent to the external device when storing it in the transmission area.
(Example) When "ABCDEFG123" is sent:
Q series C24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
| Transmission area |
|
| Transmission data (response message) |
|
|
|
|
|
|
|
| ||||||||||||||||
|
| (buffer memory) |
|
|
|
|
|
|
|
|
|
| ||||||||||||||||
Transmission |
| (00H) | 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data count |
| (05H) |
|
| Sum |
|
|
|
|
|
|
|
|
|
|
|
| Data |
|
|
|
|
|
|
| |||
|
|
|
|
| 3 | 2 | 1 | G | F | E | D | C | B | A | length |
|
|
|
|
|
|
| ||||||
designation area |
| B | A |
|
| check | ENQ |
|
|
|
|
|
| |||||||||||||||
| (42H) | (41H) |
|
| code |
|
|
|
|
|
|
|
|
|
|
|
| (0005H) |
|
|
|
|
|
| ||||
|
| D | C |
|
| H | L |
|
|
|
|
|
|
|
|
|
|
|
| H | L |
|
|
|
|
|
|
|
Transmission |
| (44H) | (43H) |
|
| 02H | 47H | 33H | 32H | 31H | 47H | 46H | 45H | 44H | 43H | 42H | 41H | 00H | 05H |
|
|
|
|
|
|
| ||
| F | E |
|
|
|
|
|
|
|
|
| |||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
data designation |
| (46H) | (45H) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 | G |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
area |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
| (31H) | (47H) |
|
|
|
|
| Receive data (response message) |
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||
|
| 3 | 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| (33H) | (32H) |
|
|
|
|
|
|
|
|
|
| ACK |
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| External device | ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| 06H |
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(Normal completion)
7 - 18 | 7 - 18 |