Reading Socket Communications Receive Data - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Reading socket communications receive data

S(P).SOCRDATA
This instruction reads the data in the socket communication receive data area.
Ladder diagram
(U)
(s1) (s2)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(U)
Dummy
(s1)
Connection number
(s2)
Head device number for storing the control data
(d)
Head device number for storing the read data
(n)
Number of the read data (1 to 1024 words)
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(U)
(s1)
(s2)
(d)
(n)
■Control data
Device
Item
(s2)+0
System area
(s2)+1
Completion status
*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.
(d)
(n)
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
Description
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.
Structured text
ENO:=S_SOCRDATA(EN,U,s1,s2,n,d);
ENO:=SP_SOCRDATA(EN,U,s1,s2,n,d);
Range
Data type
Character string
1 to 8
16-bit unsigned binary
Refer to Control data
Word
(Page 631)
Word
1 to 1024
16-bit signed binary
Double word Indirect
specification
Z
LC
LZ
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.2 Socket Communications Function Instructions
Data type (label)
ANYSTRING_SINGLE
ANY16
ANY16_ARRAY
(Number of elements: 2)
ANY16
ANY16
Constant
Others
K, H
E
$
*1
Setting range
Set by
System
8
631

Advertisement

Table of Contents
loading

Table of Contents