203
Socket Services
Section 6-6
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 hexadecimal.
The following specifications can be used.
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
Area Word
address
Area
designation
(hexadecimal)
Word address
(hexadecimal)
CIO, HR,
and AR
Areas
CIO
0000 to 6143
B0
0000 to 17FF
HR
H000 to H511
B2
0000 to 01FF
AR
A448 to A959
B3
01C0 to 03BF
DM Area DM
D00000 to D32767
82
0000 to 7FFF
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
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.
Summary of Contents for CP1L-EL20DR-D
Page 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Page 4: ...iv...
Page 10: ...x...
Page 22: ...xxii...
Page 34: ...xxxiv Software Licenses and Copyrights 7...
Page 192: ...158 Trial Operation and Debugging Section 5 3...
Page 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Page 666: ...632 Trouble Shooting Section 11 7...
Page 696: ...662 Standard Models Appendix A...
Page 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Page 836: ...802 PLC Setup Appendix G...
Page 838: ...804 TCP Status Transitions Appendix H...
Page 840: ...806 Ethernet Network Parameters Appendix I...
Page 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Page 844: ...810 Ethernet Specifications Appendix K...
Page 851: ...Index 817 work words 118 write protection 447...
Page 852: ...818 Index...
Page 854: ...820 Revision History...
Page 855: ......