Omron SYSMAC CS1W-ETN21 Operation Manual page 113

100base-tx ethernet units construction of networks
Hide thumbs Also See for SYSMAC CS1W-ETN21:
Table of Contents

Advertisement

DM Area Allocations
TCP Socket No. (1 to 8): Number of Bytes Received (Ethernet Unit to CPU Unit)
TCP Socket No. (1 to 8): Connection Status (Ethernet Unit to CPU Unit)
m+9 to m+16
Socket Services Parameter Area 1 to 8 (Ethernet Unit to CPU Unit)
Offset
Socket
No. 1
+0
m+18
+1
m+19
+2
m+20
m+21
+4
m+22
+5
m+23
+6
m+24
m+25
+8
m+26
+9
m+27
88
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
m+1 to m+8
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,984 bytes)
that can be set for receive requests by manipulating control bits or using
CMND(490) is stored.
0000 hex: 0 bytes
07C0 hex: 1,984 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 or using the CMND(490) instruction. 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.
15 14 13 12 11 10
09 08 07 06 05 04 03 02 01 00
The connection status for each TCP socket is stored by code in this word. For
details, refer to Appendix C TCP Status Transitions.
Socket
...
No. 8
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
...
m+88
Socket option
m+89
m+90
m+91
...
m+92
m+93
m+94
m+95
m+96
...
m+97
When socket services are requested by control bit manipulation, the settings
must be made in advance in a Socket Service Parameter Area. The parame-
ters used will vary depending on the service requested. For details, refer to
Operation Manual, Construction of Applications, SECTION 6.
Number of Bytes Received (0000 to 07C0 hex)
UDP/TCP socket number (1 to 8)
Local UDP/TCP port number (0000 to FFFF Hex)
Remote IP address
(00000000 to FFFFFFFF Hex)
Remote UDP/TCP port number (0000 to FFFF Hex)
Number of send/receive bytes (0000 to 07C0 Hex (1984))
Send/receive data address
(Same as FINS variable area designation method.)
Timeout value (0000 to FFFF Hex)
Response code
Section 4-2
TCP connection status

Advertisement

Table of Contents
loading

Table of Contents