![Mitsubishi Electric melsec q03ud(E)cpu Скачать руководство пользователя страница 62](http://html.mh-extra.com/html/mitsubishi-electric/melsec-q03ud-e-cpu/melsec-q03ud-e-cpu_user-manual_239150062.webp)
60
(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.
Communication processing on the other device side
End
Error handling
Request message, send processing
Response message, receive processing
YES
YES
YES
YES
NO
NO
NO
NO
Processing for the response message
Is TCP connection open?
Received data
within the time specified by
the monitoring timer
value?
Was the entire
received message
processed?
Check the received data size.
Sufficient receive
data size?
Содержание melsec q03ud(E)cpu
Страница 2: ......
Страница 11: ...9 Memo ...
Страница 209: ...207 APPENDICES A Appendix 4 Specifications Comparison with Ethernet Module Memo ...
Страница 213: ...211 Memo ...
Страница 219: ......