199
Socket Services
Section 6-6
6-6-6
Data Memory Area Allocations
The memory allocation about socket service is shown in the following dia-
gram. These data will be allocated to the DM area of the PLC.
Beginning word m = 32400
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 maximum 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 exe-
cuted 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 available.
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 Appendix H TCP Status Transitions.
Word
Bit
D32400
D32401
D32402
D32404
D32405
D32406
D32407
D32408 to D32417
D32418 to D32427
D32428 to D32437
D32438 to D32447
Offset
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 Socket No. 1 Connection Status
TCP Socket No. 2 Connection Status
TCP Socket No. 3 Connection Status
Socket Services Parameter Area 1
Socket Services Parameter Area 2
Socket Services Parameter Area 3
Reserved
TCP Socket No. 1 Number of Bytes Received
TCP Socket No. 3 Number of Bytes Received
Reserved
TCP Socket No. 2 Number of Bytes Received
D32403
m+3
Reserved
m to m+2
Number of Bytes Received (0000 to 0400 hex)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TCP connection status
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 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: ......