Omron CS CJ1W-ETN21 Operation Manual page 174

Sysmac cs and cj series ethernet units construction of applications
Hide thumbs Also See for CS CJ1W-ETN21:
Table of Contents

Advertisement

Using Socket Services with CMND(490)
Program Memory Maps
DM Area
D00000
D00010
D00020
D00030
Number of bytes received is specified in command data.
D01000
150
The send and receive data and bits (flags) used by the program are shown in
the following diagrams.
0
1
2
3
CMND(490) control data for UDP OPEN REQUEST
000AH 0004H 0001H 0110H 0000H 0032H
Remote Ethernet Unit designation
Network address: 01
Node address: 01
Unit address: 10
Number bytes to receive: 4 bytes
Number of UDP OPEN REQUEST command data bytes: 10 bytes (000A hex )
0
1
2
3
CMND(490) control data for UDP CLOSE REQUEST
0008H 0004H 0001H 0110H 0000H 0032H
Number of bytes to receive: 4 bytes
Number of UDP CLOSE REQUEST command data bytes: 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 UDP SEND REQUEST command data bytes: 116 (0074 hex ) bytes
Command format = 16 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 UDP RECEIVE REQUEST command data bytes: 12 bytes (000C
0
1
2
3
UDP OPEN REQUEST command data
2701H 0001H 8203H FC00H 1000H
Results storage area: set to D01020 (03FC
UDP socket number (Ethernet Unit socket number): set to 1
Command code
4
5
6
7
Response monitor time: 5 s
FINS communications port: Port #0
hex
hex
hex
4
5
6
7
4
5
6
7
4
5
6
7
4
5
6
7
Local port number: set to 4096 (1000
Section 6-8
8
9
8
9
8
9
8
9
)
hex
8
9
)
hex
)
hex

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs cs1w-etn21Sysmac cs1w-etn21Sysmac cj1w-etn21

Table of Contents