Response Codes - Omron CS CJ1W-ETN21 Operation Manual

Sysmac cs and cj series ethernet units construction of applications
Hide thumbs Also See for CS CJ1W-ETN21:
Table of Contents

Advertisement

Using Socket Services by Manipulating Dedicated Control Bits
Bit
Switch
13
5
Close Request
Switch
6-7-6

Response Codes

UDP Socket Open Request
UDP Socket Receive Request
120
Status Manipulated
by
ON
User
OFF
Unit
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.
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.
Response
code
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
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.
Unit operation
Close processing executed when switch is turned ON.
(The protocol (TCP/UDP) is determined when the socket is
opened.)
Unit turns OFF switch when close processing has been com-
pleted.
Meaning
Meaning
Section 6-7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs cs1w-etn21Sysmac cs1w-etn21Sysmac cj1w-etn21

Table of Contents