![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262374.webp)
15 Ethernet
15-44
CP2E CPU Unit Software User’s Manual(W614)
z
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.
z
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.
z
UDP/TCP Socket No.
Specify the number of the UDP or TCP socket to open.
z
Local UDP/TCP Port No.
Specify the number of the UDP or TCP port for the socket to use for communications.
•
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 number will be automati-
cally 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 000
3
hexadecimal
(1 to
3
)
W W W W W
Local UDP/TCP port
No.
1
0000 to FFFF hexadecimal
(0 to 65,5
3
5)
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,5
3
5)
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,5
3
5)
(0: No limit, 0.1 to 6,55
3
.5 s)
W ---
W ---
---
Response
code
1 ---
R R R R R
Parameters
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......