201
Socket Services
Section 6-6
TCP Socket Services
Note
W:
Written by user
RW:
Written by user at execution and then read for results at completion
R:
Read by user for results at completion
n---:
Not used.
Parameters
Socket Option
For the TCP OPEN REQUEST (ACTIVE or PASSIVE) command, specifies
whether or not the keep-alive function is to be used. When the keep-alive
function is used, bit 8 is ON.
UDP/TCP Socket No.
Specify the number of the UDP or TCP socket to open.
Local UDP/TCP Port No.
Specify the number of the UDP or TCP port for the socket to use for communi-
cations.
• Do not specify the port being used as the FINS UDP port (default: 9600)
in an open request for a UDP socket.
• Do not specify the port being used as the FINS TCP port (default: 9600)
in an open request for a TCP (active or passive) socket.
• Do not specify auto connection UDP port number 9600 in an open
request for a UDP socket.
• Do not specify auto connection TCP port number 9600 in an open request
for a TCP (active or passive) socket.
• As a rule, use port numbers 1,024 and higher.
If port number 0 is specified when for an active TCP open, the TCP port num-
ber will be automatically allocated and the number of the port that was
opened will be stored in the local UDP/TCP port number in the Socket Service
Parameter Area (i.e., the actual port number will be overwritten on the value of
0 set by the user).
Parameter
No. of
words
Range
(decimal values in
parentheses)
Socket service
TCP
passive
open
TCP
active
open
TCP
receive
TCP
send
TCP
close
Socket
option 1 Specified
bit
W W ---
---
---
UDP/TCP socket No.
0001 to 0003 hexadecimal
(1 to 3)
W W W W W
Local UDP/TCP port
No.
1
0000 to FFFF hexadecimal
(0 to 65,535)
W RW
---
---
---
Remote IP address
2
00000000 to FFFFFFFF
hexadecimal
(0.0.0.0 to 255.255.255.255)
RW W ---
---
---
Remote UDP/TCP
port No.
1
0000 to FFFF hexadecimal
(0 to 65,535)
RW W ---
---
---
Number of bytes to
send/ receive
1
0000 to 04D0 hexadecimal
(0 to 1,024 bytes)
---
---
RW RW ---
Send/Receive data
address
2 Memory
area
address
---
---
W W ---
Time out time (Unit:
100 ms)
1
0000 to FFFF hexadecimal
(0 to 65,535)
(0: No limit, 0.1 to 6,553.5 s)
W ---
W ---
---
Response
code
1 ---
R R R R R
Summary of Contents for CP1L-EL20DR-D
Page 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Page 4: ...iv...
Page 10: ...x...
Page 22: ...xxii...
Page 34: ...xxxiv Software Licenses and Copyrights 7...
Page 192: ...158 Trial Operation and Debugging Section 5 3...
Page 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Page 666: ...632 Trouble Shooting Section 11 7...
Page 696: ...662 Standard Models Appendix A...
Page 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Page 836: ...802 PLC Setup Appendix G...
Page 838: ...804 TCP Status Transitions Appendix H...
Page 840: ...806 Ethernet Network Parameters Appendix I...
Page 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Page 844: ...810 Ethernet Specifications Appendix K...
Page 851: ...Index 817 work words 118 write protection 447...
Page 852: ...818 Index...
Page 854: ...820 Revision History...
Page 855: ......