Download  Print this page

Mitsubishi Electric FX5 User Manual Page 46

Melsec iq-f series, ethernet communication.
Hide thumbs

Advertisement

Data reception processing for response messages
The following shows an example of the data reception processing of an external device.
Communication process of the
Send request message
Receive response message
Is TCP connection open?
Could data be received
within the monitor timer
Check the received data size
NO
Is receive data-size
Process the response message
Was the entire received
message processed?
For Ethernet communication, TCP socket functions are used inside personal computers.
These functions have no concept of boundaries. When the sender sends data by calling the send function
once, the receiver will call the recv function once or more to read that data. (Send and recv do not have a one-
to-one correspondence.)
Therefore, the processing shown above is always required in the program of the receiving device.
When the recv function is used with the blocking mode, data may be read by calling the function once.
5 SLMP FUNCTION
44
5.5 Precautions
target device
NO
YES
NO
value?
YES
sufficient?
YES
NO
YES
End
Error handling

Advertisement

Table of Contents

Comments to this Manuals

Symbols: 0
Latest comments: