Omron CS1W-ETN01 Network Card User Manual


 
148
Using Socket Services with CMND(490) Section 6-3
Number bytes to receive: 4 bytes
006EH 0004H 0001H 0110H 0000H 0032H
0123456789
D00020
CMND(490) control data for TCP SEND REQUEST
Command format = 10 bytes + 100 bytes send data
Number of bytes to send: 110 (006E
hex
) bytes
Number bytes to receive: 4 bytes
000CH 0004H 0001H 0110H 0000H 0032H
0123456789
D00030
CMND(490) control data for TCP RECEIVE REQUEST
Number of bytes received specified in command data.
Number of bytes to send: 12 bytes (000C
hex
)
2710H 0001H 8203H FC00H 1000H 0000H
0123456789
D01000
C424H 2037H
0000H
TCP PASSIVE OPEN REQUEST command data
Command code
TCP socket number (Ethernet Unit socket number): set to 1
Results storage area: set to D01020 (03FC
hex
)
(Refer to page for details on the results storage area.)
Local port number: set to 4096 (1000
hex
)
Timeout value: Not set
Host computer IP address: 196.36.32.55
(C4
hex
.24
hex
.20
hex
.37
hex
)
Remote node: Not specified
2710H
0123456789
D01010
Re-
sponse
code
TCP PASSIVE OPEN REQUEST response
Stores the response after command execution.
0123456789
D01020
TCP PASSIVE OPEN REQUEST results storage area
Re-
sponse
code
Remote IP
address
Remote
TCP
port No.
2714H 0001H 8204H 1A00H
0123456789
D1030
TCP CLOSE REQUEST command data
Command code
TCP socket number to close: set to 1 (0001
hex
)
Results storage area: set to D01050 (041A
hex
)