8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.1 Open/Close Processing Instructions
619
8
8 BUILT-IN ETHERNET FUNCTION
INSTRUCTIONS
8.1 Open/Close Processing Instructions
Opening a connection
SP.SOCOPEN
This instruction opens a connection.
■Descriptions, ranges, and data types
■Applicable devices
*1 T, ST, C cannot be used.
Ladder diagram Structured text
ENO:=SP_SOCOPEN(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 620)
Word ANY16_ARRAY
(Number of elements:
10)
(d) 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, (d)+1 is also
turned on.
Bit ANYBIT_ARRAY
(Number of elements: 2)
Operand Bit Word Double word Indirect
specification
Constant Others
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)
*1