8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.2 Socket Communications Function Instructions
629
8
Reading connection information
SP.SOCCINF
This instruction reads the connection information.
■Descriptions, ranges, and data types
■Applicable devices
Ladder diagram Structured text
ENO:=SP_SOCCINF(EN,U,s1,s2,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
(Page 630)
Word ANY16_ARRAY
(Number of elements: 2)
(d) Head device number for storing the connection information Word ANY16_ARRAY
(Number of elements: 5)
Operand Bit Word Double word Indirect
specification
Constant Others
(DY)
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)