127
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
7
7.4 Socket Communication F
unction
Instr
uctions
7.4.7 C
hanging the tar
get of a connection (UD
P
/IP) (SP.SOCCSET)
7.4.7
Changing the target of a connection (UDP/IP) (SP.SOCCSET)
(1) Setting data
*1
The "Set by" column indicates the following.
User: The data must be set before executing the SP.SOCCSET instruction.
System: The CPU module stores the execution result of the SP.SOCCSET instruction.
(2) Control data
*2
The "Set by" column indicates the following.
User: The data must be set before executing the SP.SOCCSET instruction.
System: The CPU module stores execution result of the SP.SOCCSET instruction.
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
-
-
-
-
-
-
-
Setting data
Description
Set by
*1
Data type
U0
Dummy
-
Character string
Connection number (Setting range: 1 to 16)
User
BIN 16-bit
Start number of the device from which control data are stored
User, System
Device name
Device
Item
Description
Setting range
Set by
*2
+0
System area
-
-
-
+1
Completion
status
Completion status is stored.
0000
H
: Completed
Other than 0000
H
: Failed (Error code)
-
System
+2
+3
Target device IP
address
IP address of the target device is specified.
1
H
to FFFFFFFF
H
(FFFFFFFF
H
:
Simultaneous
broadcast)
User
+4
Target device
port number
Port number of the target device is specified.
1
H
to FFFF
H
(FFFF
H
:
Simultaneous
broadcast)
Command
SP.SOCCSET
SP.SOCCSET
U0
S1
S2
S1
S2
S1
S2
S2
S2
S2
S2
S2
Summary of Contents for melsec q03ud(E)cpu
Page 2: ......
Page 11: ...9 Memo ...
Page 209: ...207 APPENDICES A Appendix 4 Specifications Comparison with Ethernet Module Memo ...
Page 213: ...211 Memo ...
Page 219: ......