154
Using Socket Services with CMND(490) Section 6-3
Program Memory Maps
The send and receive data and bits (flags) used by the program are shown in
the following diagrams.
DM Area
000AH 0004H 0001H 0110H 0000H 0032H
0123456789
D00000
Number bytes to receive: 4 bytes
Remote Ethernet Unit designation
Network address: 01
hex
Node number: 01
hex
Unit address: 10
hex
FINS communications port: Port #0
Response monitor time: 5 s
CMND(490) control data for UDP OPEN REQUEST
Number of bytes to send: 10 bytes (000A
hex
)
0008H 0004H 0001H 0110H 0000H 0032H
0123456789
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
0123456789
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
0123456789
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
0123456789
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 198 for details on formats for socket services)
Local port number: set to 4096 (1000
hex
)