252
7 SOCKET COMMUNICATION FUNCTION INSTRUCTION
7.1 Opening/Closing Connection
7
SOCKET COMMUNICATION FUNCTION
INSTRUCTION
7.1
Opening/Closing Connection
SP_SOCOPEN
The following instruction can go in the dotted squares.
SP_SOCOPEN
■
Executing condition
■
Argument
*1 Local devices and file registers per program cannot be used as setting data.
Processing details
This instruction establishes a connection.
Instruction
Executing condition
SP_SOCOPEN
Input/output
argument
Name
Description
Data type
Input argument
EN
Executing condition
Bit
Un
Dummy ("U0")
String
s1
Connection number (1 to 16)
ANY16
s2
Variable that stores control data
Array of ANY16 [0..9]
Output argument
ENO
Execution result
Bit
d
Variable that turns ON during one scan upon
completion of the instruction
d[1] also turns ON at the time of error completion.
Array of bit [0..1]
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
(s1)
(s2)
(d)
QnUDE(H)
LCPU
SP_SOCOPEN
EN
ENO
d
s1
s2
ST
SP_SOCOPEN
(EN, Un, s1, s2, d);
ENO:=
Un
Structured ladder/FBD
Summary of Contents for MELSEC System Q
Page 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Page 2: ......
Page 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Page 309: ...I 307 MEMO ...
Page 315: ......