Omron CJ1W-ETN21 operation manual Socket Service Parameters

Models: CJ1W-ETN21

1 242
Download 242 pages 30.9 Kb
Page 139
Image 139

Using Socket Services by Manipulating Dedicated Control Bits

Section 6-7

6-7-3 Socket Service Parameters

The Socket Service Parameter Areas in which parameters are set to request socket services are in the CPU Bus Unit Area in the DM Area of the CPU Unit. The Socket Service Parameter Areas are allocated as shown in the following diagrams. The first word of in the DM Area allocated to the Ethernet Unit as a CPU Bus Unit is referred to as “m” and is calculated as follows:

m = D30000 + (100 unit number)

m+18

m+27

m+28

m+37

m+88

m+97

Socket Service Parameter Area 1

Socket Service Parameter Area 2

Socket Service Parameter Area 8

The configuration of each of the Socket Service Parameter Areas is shown in the following diagram.

Offset

+0

+1

+2

+3

+4

+5

+6

+7

+8

+9

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Socket option

 

 

 

 

 

UDP/TCP socket number

 

 

Local UDP/TCP port number (0000 to FFFF Hex)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Remote IP address (00000000 to FFFFFFFF Hex)

Remote UDP/TCP port number (0000 to FFFF Hex)

Number of bytes to send/receive (0000 to 07C0 Hex)

Send/receive data address

Timeout value (0000 to FFFF Hex)

Response code

115

Page 139
Image 139
Omron CJ1W-ETN21 operation manual Socket Service Parameters