Omron CJ1W-ETN21 Network Card User Manual


 
150
Using Socket Services with CMND(490) Section 6-8
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 address: 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 UDP OPEN REQUEST command data bytes: 10 bytes (000A
hex
)
0008H 0004H 0001H 0110H 0000H 0032H
0123456789
D00010
CMND(490) control data for UDP CLOSE REQUEST
Number of bytes to receive: 4 bytes
Number of UDP CLOSE REQUEST command data bytes: 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 = 16 bytes + 100 bytes send data
Number of UDP SEND REQUEST command data bytes: 116 (0074
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 UDP RECEIVE REQUEST command data bytes: 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
)
Local port number: set to 4096 (1000
hex
)