![background image](http://html1.mh-extra.com/html/omron/cs1w-etn01/cs1w-etn01_operation-manuals_742528110.webp)
6-2
Section
Using Socket Services with Socket Service Request Switches
98
Time Out Time
Set the time limit in units of 0.1 s for completion of communications from the time
that the Send Request Switch is turned ON. A response code of 0080 Hex (time-
out) will be stored if communications time out. If 0 is set, the requested service
will not be timed.
Number of Bytes to Send/Receive
Send the number of bytes to be sent or the number of bytes to receive. When the
transfer has been completed, the actual number of bytes that have been sent or
received will be written here.
Send/Receive Data Address
Specify the address of the first word to send or the address of the first word
where data is to be received. Always set the bit number to 00 Hex.
Offset
Area
designation
Leftmost 2 digits
of word address
Rightmost 2 digits
of word address
Bit number
(always 00 Hex)
15
8
7
0
+7
+8
The following specifications can be used.
Area
Word address
Area
designation
(Hex)
Word address
(Hex)
CIO, HR,
CIO
0000 to 6143
B0
0000 to 17FF
and AR
HR
H000 to H511
B2
0000 to 01FF
Areas
AR
A448 to A959
B3
01C0 to 03BF
DM Area
DM
D00000 to D32767
B2
0000 to 7FFF
EM Area
Bank 0
E0_00000 to E0_32767
A0
0000 to 7FFF
:
:
:
:
Bank C
EC_00000 to EC_32767
AC
0000 o 7FFF
6-2-2 Response Codes
When processing of a request has been completed for socket services executed
using Socket Service Request Switches, a response code will be stored in the
Response Code word in the Socket Service Parameter Area. The following re-
sponse codes will be stored depending on the service that was requested.
UDP Socket Open Request
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).