Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
7.2 SOCCLOSE Instruction
7-5
7
SOCKET COMMUNICATION
FUNCTION INSTRUCTION
SP_SOCCLOSE
SP_SOCCLOSE
7.2 SOCCLOSE Instruction
SP_SOCCLOSE
*1: Local devices and file registers per program cannot be used as setting data.
Function
This instruction shuts off a specified connection.
SP_SOCCLOSE
Executing condition
:
indicates the following instruction.
SP_SOCCLOSE
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..1]
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

*1 *1

*1
*1

QnUDE(H)
LCPU
SP_SOCCLOSE
EN ENO
d
s1
s2
ST
SP_SOCCLOSE
(EN, Un, s1, s2, d);ENO:=
Un
Structured ladder/FBD
s1
s2
d