Response codes, 7-6 response codes – Omron CS CJ1W-ETN21 User Manual

Page 144

Advertising
background image

120

Using Socket Services by Manipulating Dedicated Control Bits

Section 6-7

As shown in the above table, the Request Switches are turned OFF by the
Ethernet Unit when the requested processes has been completed.

Note There is also a Socket Force-close Switch in bit 2 of the first word allocated to

the Ethernet Unit in the CPU Bus Unit Area in the CIO Area. When the Socket
Force-close Switch is turned ON, all sockets that are open will be force-
closed. Refer to Section 4 Ethernet Unit Memory Allocations in the Operation
Manual, Construction of Networks
for details.

When using socket services with the Socket Service Request Switches, the
ladder diagram should be programmed to check the response codes when
Socket Service Request Switches are turned OFF.

6-7-6

Response Codes

When processing of a request has been completed for socket services exe-
cuted using Socket Service Request Switches, a response code will be stored
in the Response Code word in the Socket Service Parameter Area. The fol-
lowing response codes will be stored depending on the service that was
requested.

UDP Socket Open Request

UDP Socket Receive Request

13

5

Close Request
Switch

ON

User

Close processing executed when switch is turned ON.
(The protocol (TCP/UDP) is determined when the socket is
opened.)

OFF

Unit

Unit turns OFF switch when close processing has been com-
pleted.

Bit

Switch

Status

Manipulated

by

Unit operation

Response

code

Meaning

0000

Normal end

0105

Local IP address setting error.

0302

CPU Unit error; cannot execute.

1100

UDP socket number is not 1 to 8 or local UDP port number is 0.

110C

Request Switch turned ON during other processing.

220F

Specified socket is already open.

2211

Unit is busy; cannot execute.

2606

Specified socket is already open as TCP socket; cannot open UDP
socket.

2607

Specified Socket Service Parameter Area is already being used for
another socket.

003E

Internal buffer cannot be obtained due to high reception traffic
(ENOBUFS).

0049

The same UDP port number has been specified more than once
(EADDRINUSE).

0081

The specified socket was closed during open processing.

Response

code

Meaning

0000

Normal end

0302

CPU Unit error; cannot execute.

1100

Number of bytes to receive is not in allowable range.

1101

The area designation of the Send/Receive Data Address is not in
allowable range.

Advertising