![Omron CS1W-ETN01 Operation Manuals Download Page 139](http://html1.mh-extra.com/html/omron/cs1w-etn01/cs1w-etn01_operation-manuals_742528139.webp)
6-3
Section
Using Socket Services with CMND(490)
127
•
One of the bits between CIO 000100 and CIO 000103 will turn ON if an error
occurs. Refer to 6-2-2 Response Codes for information on errors. The follow-
ing areas can be used to access details about errors:
CMND(490) response codes
Response codes in results storage area
Network Communications Error Flags (A21900 to A21907)
Completion codes (A203 to A210)
Program Memory Maps
The send and receive data and bits (flags) used by the program are shown in the
following diagrams. The following example shows how the memory maps are
structured.
Legend
0012H 0004H 0001H
0
1
2
D0000
CMND(490) control data
00
7
6
5
4
3
2
1
0
CIO 0000
15 to 8
TCP
Send
Bit
TCP
Close
Bit
TCP
Open
Bit
TCP
Receive
Bit
Describes the meaning of the data.
Indicates the contents of D00000 is 0012 Hex.
Indicates the contents of D00001 is 0004 Hex.
Indicates that CIO 000001 is used as the TCP Close Bit.
Indicates that CIO 000000 is used as the TCP Open Bit.
DM Area
0012H 0004H 0001H 0110H 0000H 0032H
0
1
2
3
4
5
6
7
8
9
D00000
Number of bytes to send: 18 (0012
hex
)
Number bytes to receive: 4 bytes
Remote Ethernet Unit designation
Network address: 01
hex
Node number: 01
hex
Unit address: 10
hex
Port number: Port #0
Response monitor time: 5 s
CMND(490) control data for TCP PASSIVE OPEN REQUEST
0008H 0004H 0001H 0110H 0000H 0032H
0
1
2
3
4
5
6
7
8
9
D00010
CMND(490) control data for TCP CLOSE REQUEST
Number of bytes to send: 8 bytes
Number bytes to receive: 4 bytes