3 DATA COMMUNICATION USING NONPROCEDURAL PROTOCOL
3.1 Receiving Data from Target Device
61
3
Program for data reception
Program example for data reception
The following shows the program for data reception using the nonprocedural protocol and its example.
For details on the INPUT instruction, refer to the dedicated instructions.(Page 520 Dedicated Instructions)
*1 When the completion device is OFF, execute the INPUT instruction.
When INPUT instruction is executed when the completion device is ON, data may not be received properly.
*1
X3
M0 M1
G.INPUT M0Un D0 D10
X4
M0
M1
(CH1)
Read request
Create control data from D0
Abnormal
detection
Processing for normal completion
(received data is stored)
Processing for abnormal completion
(Reading and discarding received data,
retransmission request, etc.)