EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #627 background imageLoading...
Page #627 background image
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.2 Socket Communications Function Instructions
625
8
• When the SP.SOCRCV instruction is executed, reading data from the socket communication receive data
area is executed with the END processing. Thus, executing the SP.SOCRCV instruction extends the scan
time.
• When the data of odd-number of bytes is received, invalid data is stored in the higher byte of the device
where the last receive data is stored.
Processing details
In the END processing after the execution of the SP.SOCRCV instruction, the receive data of the connection specified by (s1)
is read from the socket communication receive data area.
The completion of the SP.SOCRCV instruction can be checked using the completion devices (d2)+0 and (d2)+1.
• Completion device (d2)+0: Turns ON during the END processing for the scan in which the SP.SOCRCV instruction is
completed, and turns OFF during the next END processing.
• Completion device (d2)+1: Turns ON or OFF depending on the status when the SP.SOCRCV instruction is completed.
The following figure shows the timing of the receive processing with the SP.SOCRCV instruction.
For details, refer to  Built-in Ethernet communication manual.
Status Description
When completed normally The device does not change (remains OFF).
When completed with an error The device turns ON during the END processing for the scan in which the SP.SOCRCV instruction is completed, and turns
OFF during the next END processing.
··
(d1)+0
(d1)+1
(d1)+2
(d1)+n
CPU module
Receive data
length
SP.SOCRCV
(reading
receive data)
Socket communications
receive data storage area
Connection number
specified by (s1)
Receive data
Receive data
Receive data
External device
Receiving
data
Sequence program
END processing END processing
When failed
SP.SOCRCV instruction
ON
OFF
ON
OFF
ON
OFF
1 scan
END processing
Execute SP.SOCRCV instruction
ON
OFF
ON
OFF
Completion device (d2)+0
Completion device (d2)+1
Open completion signal
(SD10680.n)
Receive state signal
(SD10682.n)
Send
data
Open
processing
Data reading
processing
Data
reception
Data
reading
processing
ACK
(Only TCP)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals