Reading Socket Communication Receive Data - Mitsubishi Electric FX5 User Manual

Melsec iq-f series, ethernet communication
Hide thumbs Also See for FX5:
Table of Contents

Advertisement

Reading socket communication receive data

S(P).SOCRDATA
Reads data from 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 No.
(s2)
Start number of the device in which control data is
stored
(d)
Start number of the device where read data is
stored
(n)
Number of 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.
*2 Regardless of the program language to be used, the data type is specified by a device. Do not specify a label.
■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 The "Set by" column indicates the following.
System: The CPU module stores the execution result of the S(P).SOCRDATA instruction.
(d)
(n)
Range
1 to 8
Refer to Control data
(Page 99)
1 to 1024
Word
T, ST, C, D, W,
U\G
SD, SW, R
Description
Completion status is stored
0000H: Completed
Other than 0000H: Failed (Error code)
Refer to Page 150 Error Codes
Structured text
ENO:=S_SOCRDATA(EN,U0,s1,s2,n,d);
ENO:=SP_SOCRDATA(EN,U0,s1,s2,n,d);
Data type
Character string
16-bit unsigned binary
Word
Word
16-bit signed binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Setting range
7 SOCKET COMMUNICATION FUNCTION
7.4 Socket Communication Function Instructions
Data type (Label)
*2
(ANYSTRING_SINGLE)
ANY16
ANY16_ARRAY
(Number of elements: 2)
ANY16
ANY16
BOOL
BOOL
Constant
Others
K, H
E
$
*1
Set by
System
7
99

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents