67
CHAPTER 6 SOCKET COMMUNICATION FUNCTION
6
6.
4
S
o
ck
et
Comm
unicat
ion F
unct
ion
In
st
ru
ct
ions
6.
4.
3
Reading out
receive
d
dat
a
in t
he E
ND proc
essing (S
P
.S
O
CRCV
)
(3) Function
This instruction reads out received data of the connection specified in from the Socket communication receive
data area in the END processing after execution of the SP.SOCRCV instruction.
The result of the SP.SOCRCV instruction can be checked with the completion device
+0 and
+1.
• Completion device
+0
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
+1
Turns on or off according to the result of the SP.SOCRCV instruction.
State
Description
When completed
Remains off
When failed
Turns on in the END processing of the scan after completion of the SP.SOCRCV instruction, and turns
off in the next END processing.
S1
CPU module
Receive data
length
SP.SOCRCV
(Reading receive data)
Socket communication
receive data area
Connection
No. specified by S1
Receive data
Receive data
Receive data
D1 +0
D1 +1
D1 +2
D1 +n
External device
Receiving
D2
D2
D2
D2
Program
END processing
END processing
END processing
When failed
1 scan when
normally completed
OFF
ON
ON
Completion device D2
SP.SOCRCV instruction
SP.SOCRCV instruction executed
Data reading
OFF
Completion device D2 +1
+0
Summary of Contents for MELSEC L Series
Page 1: ......
Page 2: ......
Page 19: ...17 CHAPTER 1 OVERVIEW 1 Memo ...
Page 116: ...114 Memo ...
Page 123: ......