Download Print this page

Socket Communications Function Instructions - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

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

Advertisement

10.2

Socket Communications Function Instructions

Reading receive data during the END processing
SP.SOCRCV
This instruction reads the receive data. (Reading during END processing)
Ladder diagram
(U)
(s1) (s2)
FBD/LD
EN
ENO
U0
d1
s1
d2
s2
("SP_SOCRCV" 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 specifying the control data
(d1)
Head device number for storing the receive data
(d2)
Head device number which turns ON when the execution of
the instruction is completed and remains ON for 1 scan.
If the instruction is completed with an error, (d2)+1 is also
turned on.
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)
(d1)
(d2)
*1 T, ST, C cannot be used.
(d1) (d2)
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Structured text
ENO:=SP_SOCRCV(EN,U0,s1,s2,d1,d2);
Range
Data type
Character string
1 to 8
16-bit unsigned binary
Refer to Control data
Word
(Page 744)
Word
Bit
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
ANYBIT_ARRAY
(Number of elements: 2)
BOOL
BOOL
Constant
Others
K, H
E
$
743
10

Hide quick links:

Advertisement

loading