6-3
Section
Using Socket Services with CMND(490)
134
0008H 0004H 0001H 0110H 0000H 0032H
0
1
2
3
4
5
6
7
8
9
D00010
CMND(490) control data for UDP CLOSE REQUEST
Number bytes to receive: 4 bytes
Number of bytes to send: 8 bytes
Number bytes to receive: 4 bytes
0074H 0004H 0001H 0110H 0000H 0032H
0
1
2
3
4
5
6
7
8
9
D00020
CMND(490) control data for UDP SEND REQUEST
Command format = 14 bytes + 100 bytes send data
Number of bytes to send: 114 (0072
hex
) bytes
Number bytes to receive: 4 bytes
000CH 0004H 0001H 0110H 0000H 0032H
0
1
2
3
4
5
6
7
8
9
D00030
CMND(490) control data for UDP RECEIVE REQUEST
Number of bytes received is specified in command data.
Number of bytes to send: 12 bytes (000C
hex
)
2701H 0001H 8203H FC00H 1000H
0
1
2
3
4
5
6
7
8
9
D01000
UDP OPEN REQUEST command data
Command code
UDP socket number (Ethernet Unit socket number): set to 1
Results storage area: set to D01020 (03FC
hex
)
(Refer to page 192 for details on formats for socket services)
Local port number: set to 4096 (1000
hex
)
2701H
0
1
2
3
4
5
6
7
8
9
D01010
Re-
sponse
code
Stores the response after command execution.
UDP OPEN response
0
1
2
3
4
5
6
7
8
9
D01020
UDP OPEN REQUEST results storage area
Re-
sponse
code
2704H 0001H 8204H 1A00H
0
1
2
3
4
5
6
7
8
9
D1030
UDP CLOSE REQUEST command data
Command code
UDP socket number closed: set to 1 (0001
hex
)
Results storage area: set to D01050 (041A
hex
)