Omron CS CJ1W-ETN21 User Manual

Page 167

Advertising
background image

143

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. The following example shows how the memory maps
are structured.

Legend

DM Area

0012H 0004H 0001H

0

1

2

D0000

CMND(490) control data

00

7

6

5

4

3

2

1

0

CIO 0000

15 to 8

TCP
Close
Bit

TCP
Open
Bit

Describes the meaning of the data.

Indicates the contents of D00000 is 0012 Hex.

Indicates the contents of D00001 is 0004 Hex.

Indicates that CIO 000001 is used as the TCP Close Bit.

Indicates that CIO 000000 is used as the TCP Open Bit.

0012H 0004H 0001H 0110H 0000H 0032H

0

1

2

3

4

5

6

7

8

9

D00000

Number of TCP PASSIVE OPEN REQUEST command data bytes: 18 (0012

hex

) b

ytes

Number bytes to receive: 4 bytes

Remote Ethernet Unit designation
Network address: 01

hex

Node address: 01

hex

Unit address: 10

hex

Port number: Port #0

Response monitor time: 5 s

CMND(490) control data for TCP PASSIVE OPEN REQUEST

0008H 0004H 0001H 0110H 0000H 0032H

0

1

2

3

4

5

6

7

8

9

D00010

CMND(490) control data for TCP CLOSE REQUEST

Number of TCP CLOSE REQUEST command data bytes:

8 bytes

Number bytes to receive: 4 bytes

Number bytes to receive: 4 bytes

006EH 0004H 0001H 0110H 0000H 0032H

0

1

2

3

4

5

6

7

8

9

D00020

CMND(490) control data for TCP SEND REQUEST

Command format = 10 bytes + 100 bytes send data

Number of TCP SEND REQUEST command data bytes

: 110 (006E

hex

) bytes

Advertising