Using Socket Services by Manipulating Dedicated Control Bits

Section 6-7

Basic Operations

 

 

 

• CIO 000000 is turned ON to request opening a UDP socket from the

 

Ethernet Unit.

 

 

• CIO 000001 is turned ON to request closing the UDP socket from the

 

Ethernet Unit.

 

 

• CIO 000002 is turned ON to request sending data from the Ethernet Unit.

 

The data is sent (100 bytes) beginning from word D00000.

 

 

• CIO 000003 is turned ON to request receiving data from the Ethernet

 

Unit. The data that is received (100 bytes) is stored beginning at D01000.

 

• One of the bits between CIO 000100 and CIO 000103 will turn ON if an

 

error occurs. Refer to 6-7-5 Socket Service Request Switches for informa-

 

tion on errors.

 

Program Memory Map

The send and receive data and bits (flags) used by the program are shown in

 

the following diagram.

 

DM Area

Send data, 100 bytes (100 = 0064 Hex)

Receive data, 100 bytes (100 = 0064 Hex)

CIO Area

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15 to

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

CIO 0000

 

 

 

 

 

 

 

 

UDP

UDP

UDP

UDP

 

 

 

 

 

 

 

 

Receive

Send

Close

Open

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

Bit

Bit

Bit

 

 

 

 

 

 

 

 

 

 

 

 

 

CIO 0001

 

 

 

 

 

 

 

 

UDP

UDP

UDP

UDP

 

 

 

 

 

 

 

 

Receive

Send

Close

Open

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Error

Error

Error

Error

 

 

 

 

 

 

 

 

 

Flag

Flag

Flag

Flag

 

 

 

 

 

 

 

 

 

 

 

 

 

CIO 0002

 

 

 

 

 

 

 

 

UDP

UDP

UDP

UDP

 

 

 

 

 

 

 

 

Receiving

Sending

Closing

Opening

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag

Flag

Flag

Flag

 

 

 

 

 

 

 

 

 

 

 

 

 

132

Page 156
Image 156
Omron CJ1W-ETN21 operation manual CIO 000000 is turned on to request opening a UDP socket from, Tion on errors