83
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.
9
Soc
ket
c
o
mm
uni
ca
tion
receive
dat
a rea
d
(S
(P)
.S
O
CR
DAT
A
)
6.4.9
Socket communication receive data read (S(P).SOCRDATA)
(1) Setting data
*1
The "Set by" column indicates the following.
User: The data must be set before executing the S(P).SOCRDATA instruction.
(2) Control data
*2
The "Set by" column indicates the following.
System: The CPU module stores the execution result of the S(P).SOCRDATA instruction.
(3) Function
This instruction reads out the data of the amount specified for n from the Socket communication receive data area
of which connection is specified in
, and stores them in the device specified in
or higher. No processing is
performed when the number of read data (n) is 0.
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
-
-
-
-
-
-
-
-
-
-
-
n
-
-
-
Setting data
Description
Set by
*1
Data type
U0
Dummy
-
Character string
Connection number (Setting range: 1 to 16)
User
BIN 16-bit
Start number of the device from which control data are stored
Device name
Start number of the device where read data are stored
n
Number of read data (1 to 1024 words)
BIN 16-bit
Device
Item
Description
Setting range
Set by
*2
+0
System area
-
-
-
+1
Completion
status
Completion status is stored.
0000
H
: Completed
Other than 0000
H
: Failed (Error code)
-
System
Command
Command
S.SOCRDATA
SP.SOCRDATA
S.SOCRDATA
SP.SOCRDATA
U0
U0
S1
S2
D
n
S1
S2
D
n
S1
S2
D
S1
S2
D
S2
S2
S1
D
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: ......