Omron CS1W-ETN01 Operation Manuals page 146

Sysmac cs1 series ethernet unit
Hide thumbs Also See for CS1W-ETN01:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents