Download Print this page

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

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

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)
FBD/LD
EN
ENO
U0
d
s1
s2
n
("S_SOCRDATA", "SP_SOCRDATA" enters .)
Setting data
■Descriptions, ranges, and data types
Operand
Description
*1
(U)
Dummy (Input the character string ['U0'].)
(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)
EN
Execution condition
ENO
Execution result
*1 In the case of the ST language and the FBD/LD language, U displays as U0.
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(U)
(s1)
(s2)
(d)
(n)
■Control data
Device
Item
(s2)+0
System area
(s2)+1
Completion status
*1 System: The CPU module stores the execution result of the instruction.
(d)
(n)
Word
T, ST, C, D, W,
U\G
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 MELSEC iQ-F FX5 User's Manual
(Ethernet Communication).
Structured text
ENO:=S_SOCRDATA(EN,U0,s1,s2,n,d);
ENO:=SP_SOCRDATA(EN,U0,s1,s2,n,d);
Range
Data type
Character string
1 to 8
16-bit unsigned binary
Refer to Control data
Word
(Page 751)
Word
1 to 1024
16-bit signed binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
10 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
10.2 Socket Communications Function Instructions
Data type (label)
ANYSTRING_SINGLE
ANY16
ANY16_ARRAY
(Number of elements: 2)
ANY16
ANY16
BOOL
BOOL
Constant
Others
K, H
E
$
*1
Setting range
Set by
System
10
751

Hide quick links:

Advertisement

loading