125
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
7
7.4 Socket Communication F
unction
Instr
uctions
7.4.6 R
eading out connection
infor
m
ation (SP.SOCCINF
)
(2) Control data
*2
The "Set by" column indicates the following.
System: The CPU module stores the execution result of the SP.SOCCINF instruction.
*3
Using 0400
H
to 1387
H
and 1392
H
to EFFF
H
is recommended because the host station port numbers, 0001
H
to 03FF
H
,
are assigned for generally reserved port numbers (WELL KNOWN PORT NUMBERS), and F000
H
to FFFE
H
are used
for other communication functions. Do not specify 1388
H
to 1391
H
because these ports are used by the system. (
*4
When the item is performed by the unopened connection, 0
H
is returned.
*5
When the instruction is performed to the connection set the target device IP address to FFFFFFFF
H
(simultaneous
broadcast), the source IP address of the received data is returned. In this case, perform the instruction when Receive
state signal (SD1286) is on. When the instruction is performed before the data are received, FFFFFFFF
H
is returned.
*6
When the instruction is performed to the connection set the target device port number to FFFF
H
(simultaneous
broadcast), the source port number of the received data is returned. In this case, perform the instruction when Receive
state signal (SD1286) is on. When the instruction is performed before the data are received, FFFF
H
is returned.
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
+0
+1
Target device IP
address
IP address of the target device is stored.
1
H
to FFFFFFFF
H
*4 *5
+2
Target device
port number
Port number of the target device is stored.
1
H
to FFFF
H
*4 *6
+3
Host station port
number
Port number of the host station is stored.
1
H
to 1387
H
1392
H
to FFFE
H
*3 *4
+4
Application
setting area
[1] Communication method (protocol)
0: TCP/IP
1: UDP/IP
[2] Socket communication procedure
1: Nonprocedural (fixed)
[3] Open system
00: Active open or UDP/IP
10: Unpassive open
11: Fullpassive open
*4
S2
S2
D
D
D
D
D
[3]
D +4
b15 b14 b13
b10 b9 b8 b7
b0
to
to
0
0
[2] [1]
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: ......