6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL
6.2 Sending Data to the External Device
This section explains data transmission from the PLC CPU to the external device.
6.2.1 Transmission methods
The following shows how to send data in any format using the non procedure protocol.
PLC CPU
Transmission data
STX | A | B | C | D |
| E | F | G | H | ETX |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(02H) | (41H) | (42H) | (43H) | (44H) |
| (45H) | (46H) | (47H) | (48H) | (03H) |
| Q series C24 |
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
| Transmission area |
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
| Transmission | (buffer memory) |
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
| data count | 10 |
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
| designation |
| (00H) | (0AH) |
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
| area |
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
| A | STX |
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
| Transmission |
| (41H) | (02H) |
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
| data |
| C |
|
| B |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1) 2) |
|
|
| designation |
| (43H) |
|
| (42H) |
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
| area |
| E | D | 3) |
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
| OUTPUT instruction |
| (45H) | (44H) |
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| G | F | Transmission data |
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| (47H) (46H) | ETX |
| H |
|
|
|
|
| A |
| STX | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| ETX | H | (03H) |
| (48H) |
|
|
|
| (41H) |
| (03H) | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| (03H) (48H) |
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
| External device |
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
| Contents |
|
| CH1/CH2 |
| Control timing |
|
|
|
|
|
|
|
|
|
|
|
Transmission instruction
OUTPUT instruction completion device
OUTPUT instruction |
| OUTPUT |
| ||
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
1)Transmission data is stored in the device designated with the OUTPUT instruction.
2)Control data is stored in the device designated with the OUTPUT instruction.
3)When the OUTPUT instruction is executed, the Q series C24 sends the amount of data designated by the transmission data count from the transmission data area to the external device in ascending order of the transmission data area addresses.
6 - 22 | 6 - 22 |