15 Ethernet
15-46
CP2E CPU Unit Software User’s Manual(W614)
z 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 hexadecimal.
The following specifications can be used.
z Response Codes
When processing of a request has been completed for socket services executed using Socket Ser-
vice Request Switches, a response code will be stored in the Response Code word in the Socket
Service Parameter Area. The following response codes will be stored depending on the service that
was requested.
UDP Socket Open Request
Area Word address Area
designation
(hexadecimal)
Word address
(hexadecimal)
CIO, HR,
and AR
Areas
CIO 0000 to 0289 B0 0000 to 0121
HR H000 to H127 B2 0000 to 007F
AR A448 to A959 B3 01C0 to 03BF
DM Area DM D00000 to D16383 82 0000 to 3FFF
Response
code
Meaning
0000 Normal end
0105 Local IP address setting error.
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 UDPsocket.
2607 Specified Socket Service Parameter Area is already being used foranother socket.
0049 The same UDP port number has been specified more than once (EADDRINUSE).
0081 The specified socket was closed during open processing.
Offset
15 8 7 0
+6
+7
Area
designation
Rightmost 2 digits
of word address
Bit number
(always 00 Hex)
Leftmost 2 digits
of word address