15 Ethernet
15-42
CP2E CPU Unit Software User’s Manual(W614)
The memory allocation about socket service is shown in the following diagram. These data will be allo-
cated to the DM area of the PLC.
Beginning word m = 16000
z
TCP Socket No. (1 to 3): Number of Bytes Received
For each TCP socket, the number of bytes of data in the reception buffer is stored in one word. A max-
imum of 4,096 bytes of data can be held in the reception buffer, but a value of only up to the maximum
value (1,024 bytes) that can be set for receive requests by manipulating control bits is stored.
0000 hex: 0 bytes
0400 hex: 1,024 bytes
The Data Received Flag in the CIO Area turns ON and OFF linked to this word. This area is given a
value of 0000 hex when a receive request is executed by manipulating control bits. If any data
remains in the reception buffer after the receive request processing is completed, the remaining
number of bytes is stored and the Data Received Flag turns ON again.
Before a receive request is executed, a check is performed to confirm that the required data is avail-
able.
z
TCP Socket No. (1 to 3): Connection Status
The connection status for each TCP socket is stored by code in this word. For details, refer to
.
15-5-6 Data Memory Area Allocations
Word
Bit
D16000
D16001
D16002
D16004
D16005
D16006
D16007
D16008 to D16017
D16018 to D16027
D16028 to D16037
D16038 to D16047
Off
s
et
m
m+1
m+2
m+4
m+5
m+6
m+7
m+8
m+17
m+18
m+27
m+28
m+37
m+38
m+47
15
08 07
00
TCP
S
ocket No. 1 Connection
S
t
a
t
us
TCP
S
ocket No. 2 Connection
S
t
a
t
us
TCP
S
ocket No. 3 Connection
S
t
a
t
us
S
ocket
S
ervice
s
P
a
r
a
meter Are
a
1
S
ocket
S
ervice
s
P
a
r
a
meter Are
a
2
S
ocket
S
ervice
s
P
a
r
a
meter Are
a
3
Re
s
erved
TCP
S
ocket No. 1 N
u
m
b
er of Byte
s
Received
TCP
S
ocket No. 3 N
u
m
b
er of Byte
s
Received
Re
s
erved
TCP
S
ocket No. 2 N
u
m
b
er of Byte
s
Received
D16003
m+3
Re
s
erved
m to m+2
Nu
m
b
er of Bytes Recei
v
ed (0000 to 0400 hex)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TCP connection stat
u
s
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
m+4 to m+6
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: ......