15-43
15 Ethernet
CP2E CPU Unit Software User’s Manual(W614)
15-5 Soc
ket Ser
vic
es
15
15-5-6 D
ata Memor
y
Are
a Alloca
tions
z
Socket Services Parameter Area 1 to 3
When socket services are requested by control bit manipulation, the settings must be made in
advance in a Socket Service Parameter Area. The parameters used will vary depending on the ser-
vice requested.
The following table shows the parameters that are required for each service and the use of the
parameters by the socket service.
z
UDP 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
---:
Not used.
Parameter Settings
Parameter
No. of
words
Range
(decimal values in parentheses)
Socket service
UDP
open
UDP
receive
UDP
send
UDP
close
Socket option
1
Specified bit
---
---
---
---
UDP/TCP socket No.
0001 to 000
3
hexadecimal
(1 to
3
)
W W W W
Local UDP/TCP port No.
1
0000 to FFFF hexadecimal
(0 to 65,5
3
5)
W ---
---
---
Remote IP address
2
00000000 to FFFFFFFF
hexadecimal
(0.0.0.0 to 255.255.255.255)
---
R W ---
Remote UDP/TCP port No.
1
0000 to FFFF hexadecimal
(0 to 65,5
3
5)
---
R W ---
Number of bytes to
send/receive
1
0000 to 0400 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 ---
---
Response
code
1 ---
R R R R
Offset
Socket
N
o. 1
Socket
N
o. 3
Socket option
UDP/TCP socket n
u
m
b
er (1 to 3)
Local UDP/TCP port n
u
m
b
er (0000 to FFFF Hex)
Remote IP address
(00000000 to FFFFFFFF Hex)
Nu
m
b
er of send/recei
v
e
b
ytes (0000 to 0400 Hex (1024))
Send/recei
v
e data address
(Same as FI
N
S
v
aria
b
le area designation method.)
Timeo
u
t
v
al
u
e (0000 to FFFF Hex)
Response code
Remote UDP/TCP port n
u
m
b
er (0000 to FFFF Hex)
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
...
+0
+1
+2
+4
+5
+6
+8
+9
m+8
m+28
...
m+9
m+29
m+10
m+11
m+30
m+31
m+12
m+32
...
m+13
m+33
m+14
m+34
m+15
m+35
m+16
m+36
m+17
m+37
...
Summary of Contents for SYSMAC CP Series
Page 3: ......
Page 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Page 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Page 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Page 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Page 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Page 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Page 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Page 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Page 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Page 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Page 577: ......