Mitsubishi MELSEC L Series User Manual page 69

Cpu module, built-in ethernet function
Hide thumbs Also See for MELSEC L Series:
Table of Contents

Advertisement

(3) Function
This instruction reads out received data of the connection specified in
data area in the END processing after execution of the SP.SOCRCV instruction.
Receive data
D1 +0
length
Receive data
D1 +1
D1 +2
Receive data
Receive data
D1 +n
The result of the SP.SOCRCV instruction can be checked with the completion device
• Completion device
Turns on in the END processing of the scan after completion of the SP.SOCRCV instruction, and turns off in
the next END processing.
• Completion device
Turns on or off according to the result of the SP.SOCRCV instruction.
State
When completed
Remains off
Turns on in the END processing of the scan after completion of the SP.SOCRCV instruction, and turns
When failed
off in the next END processing.
Program
SP.SOCRCV instruction
Completion device D2
Completion device D2 +1
CPU module
Socket communication
receive data area
Connection
No. specified by S1
SP.SOCRCV
(Reading receive data)
+0
D2
+1
D2
END processing
SP.SOCRCV instruction executed
OFF
+0
OFF
Data reading
CHAPTER 6 SOCKET COMMUNICATION FUNCTION
from the Socket communication receive
S1
External device
Receiving
+0 and
D2
Description
END processing
END processing
ON
ON
When failed
1 scan when
normally completed
+1.
D2
6
67

Advertisement

Table of Contents
loading

Table of Contents