Omron CJ1W-ETN21 operation manual 150

Models: CJ1W-ETN21

1 242
Download 242 pages 30.9 Kb
Page 174
Image 174

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

 

0

1

2

3

4

 

5

 

 

 

6

 

 

7

 

 

8

 

 

 

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D00000

 

CMND(490) control data for UDP OPEN REQUEST

 

 

 

 

 

 

 

 

 

 

 

000AH

0004H

0001H

0110H

0000H

0032H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Response monitor time: 5 s

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FINS communications port: Port #0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Remote Ethernet Unit designation

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Network address: 01hex

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Node address: 01hex

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Unit address: 10hex

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Number bytes to receive: 4 bytes

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Number of UDP OPEN REQUEST command data bytes: 10 bytes (000Ahex)

 

0

1

 

 

2

3

4

5

 

 

6

 

 

7

 

8

 

 

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D00010

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

4

5

 

 

6

 

 

7

 

8

 

 

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D00020

 

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 (0074hex) bytes

Command format = 16 bytes + 100 bytes send data

0 1 2 3 4 5 6 7 8 9

D00030 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 (000Chex) Number of bytes received is specified in command data.

 

0

1

2

 

3

4

 

 

5

 

6

 

7

 

8

 

 

 

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D01000

 

UDP OPEN REQUEST command data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2701H

0001H

8203H

FC00H

1000H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Local port number: set to 4096 (1000hex)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Results storage area: set to D01020 (03FChex)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UDP socket number (Ethernet Unit socket number): set to 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

150

Page 174
Image 174
Omron CJ1W-ETN21 operation manual 150