266
7 SOCKET COMMUNICATION FUNCTION INSTRUCTION
7.5 Changing Destination
7.5
Changing Destination
SP_SOCCSET
The following instruction can go in the dotted squares.
SP_SOCCSET
■
Executing condition
■
Argument
Processing details
This instruction changes the IP address and port number of the external device of a specified connection.
(Available only with a UDP/IP connection)
Setting data
Instruction
Executing condition
SP_SOCCSET
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..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
(s1)
(s2)
Device
Item
Setting data
Setting range
Setting side
(s2)[0]
System area
(s2)[1]
Completion status
The instruction completion status is stored.
0: Normal completion
Other than 0: Error completion (error code)
System
(s2)[2]
(s2)[3]
Destination IP address
Specify the IP address of the external device.
1H to
FFFFFFFFH
0H : No
destination
(FFFFFFFFH :
broadcast)
User
(s2)[4]
Destination port No.
Specify the port number of the external device.
1H to FFFFH
(FFFFH:
broadcast)
User
QnUDE(H)
LCPU
Structured ladder/FBD
ST
SP_SOCCSET
EN
ENO
Un
s1
s2
SP_SOCCSET
(EN, Un, s1, s2);
ENO:=
Содержание MELSEC System Q
Страница 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Страница 2: ......
Страница 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Страница 309: ...I 307 MEMO ...
Страница 315: ......