Mitsubishi Electric Q03UDVCPU User Manual page 62

Qnucpu series (communication via built-in ethernet port)
Hide thumbs Also See for Q03UDVCPU:
Table of Contents

Advertisement

(6) Receiving a response message
The following shows an example of receive processing on the other device side.
For Ethernet communication, TCP socket functions are used inside personal computers.
The functions do not have boundary concept. Therefore, if the sender sent data by calling the "send" function once, the
receiver needs to call the "recv" function once or more times to read out the data. ("send" does not correspond to "recv" on
the one-to-one basis.) For this reason, the processing shown above is always required on the program of the receiving
device. Note that, if the "recv" function is used in blocking mode, data may be read by calling the function once.
60
Communication processing on the other device side
Request message, send processing
Response message, receive processing
Is TCP connection open?
YES
Received data
within the time specified by
the monitoring timer
value?
YES
Check the received data size.
NO
Sufficient receive
data size?
YES
Processing for the response message
Was the entire
NO
received message
processed?
YES
End
NO
NO
Error handling

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents