
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.2 Socket Communications Function Instructions
631
8
Reading socket communications receive data
S(P).SOCRDATA
This instruction reads the data in the socket communication receive data area.
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
■
Control data
*1
The contents in the "Set by" column mean as follows:
System: The CPU module stores the execution results of the S(P).SOCRDATA instructions.
Ladder diagram
Structured text
ENO:=S_SOCRDATA(EN,U,s1,s2,n,d);
ENO:=SP_SOCRDATA(EN,U,s1,s2,n,d);
Operand
Description
Range
Data type
Data type (label)
(U)
Dummy
Character string
ANYSTRING_SINGLE
(s1)
Connection number
1 to 8
16-bit unsigned binary
ANY16
(s2)
Head device number for storing the control data
Refer to Control data
(
Word
ANY16_ARRAY
(Number of elements: 2)
(d)
Head device number for storing the read data
Word
ANY16
(n)
Number of the read data (1 to 1024 words)
1 to 1024
16-bit signed binary
ANY16
Operand
Bit
Word
Double word
Indirect
specification
Constant
Others
X, Y, M, L,
SM, F, B, SB
U
\G
T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(U)
(s1)
(s2)
(d)
(n)
Device
Item
Description
Setting range
Set by
(s2)+0
System area
(s2)+1
Completion status
The status at the completion of the instruction is stored.
0000H: Completed successfully
Other than 0000H: Completed with an error (error code)
For error codes, refer to
Built-in Ethernet communication manual.
System
(U)
(s1)
(s2)
(d)
(n)
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......