Using Socket Services by Manipulating Dedicated Control Bits

 

Section 6-7

TCP Socket Close Request

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Response

 

 

Meaning

 

 

 

 

code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0000

 

Normal end

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0302

 

CPU Unit error; cannot execute.

 

 

 

 

 

 

 

 

 

 

 

2210

 

The specified socket is not been connected.

 

 

 

 

 

 

 

 

 

 

2211

 

Unit is busy; cannot execute.

 

 

 

 

 

 

 

 

 

 

 

2607

 

Specified Socket Service Parameter Area is already being used for

 

 

 

 

another socket.

 

 

 

 

 

 

 

 

 

 

 

 

 

6-7-7

Timing Charts

 

 

 

 

 

 

 

The timing of flags for socket services (Opening, Receiving, Sending, or Clos-

 

 

ing Flag) when the Request Switches are used and the changes in the

 

 

response code are shown in the following chart.

 

 

 

 

Request

 

 

 

 

 

 

 

Switch

 

 

 

 

 

 

 

Response

 

 

 

Response code stored

 

 

code

 

 

 

 

 

 

 

 

 

 

 

 

Flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Request Switch

Request

Not synced with

 

 

 

 

turned ON.

accepted.

 

 

 

 

Request Switch.

 

 

 

 

 

 

 

Closing during Other

The Close Request Switch or Force-close Switch can be used to close a

Processes

 

socket even when open, receive, or send processing is being executed. Clos-

 

 

ing is the only other process that is possible during other processes.

125

Page 149
Image 149
Omron CJ1W-ETN21 operation manual Timing Charts, TCP Socket Close Request, Closing during Other, Processes