Mitsubishi Electronics MELSEC Q series MELSEC L series ユーザーズマニュアル

ページ / 412
7.7 SOCCSET Instruction
 
7-19
7
SO
CKE
T COMM
UNI
CA
TI
ON 
FUNCTION I
NS
TRUCTION
SP_
SOCCSE
T
SP_SOCCSET
7.7  
SOCCSET Instruction
SP_SOCCSET
Function
This instruction changes the IP address and port number of the external device of a specified 
connection.
(Available only with a UDP/IP connection)
SP_SOCCSET
Executing condition :
 indicates the following instruction.
SP_SOCCSET
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..4]
Output argument
ENO:
Execution result
:Bit
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
QnUDE(H)
LCPU
SP_SOCCSET
EN
ENO
s1
ST
SP_SOCCSET
(EN, Un, s1, s2);
ENO:=
Un
s2
Structured ladder/FBD
s1
s2