![background image](http://html1.mh-extra.com/html/omron/cp1l-el20dr-d/cp1l-el20dr-d_operation-manual_743755234.webp)
200
Socket Services
Section 6-6
Socket Services Parameter Area 1 to 3
When socket services are requested by control bit manipulation, the settings
must be made in advance in a Socket Service Parameter Area. The parame-
ters used will vary depending on the service requested.
Parameter Settings
The following table shows the parameters that are required for each service
and the use of the parameters by the socket service.
UDP Socket Services
Note
W:
Written by user
RW:
Written by user at execution and then read for results at completion
R:
Read by user for results at completion
---:
Not used.
Offset
Socket
No. 1
Socket
No. 3
Socket option
UDP/TCP socket number (1 to 3)
Local UDP/TCP port number (0000 to FFFF Hex)
Remote IP address
(00000000 to FFFFFFFF Hex)
Number of send/receive bytes (0000 to 0400 Hex (1024))
Send/receive data address
(Same as FINS variable area designation method.)
Timeout value (0000 to FFFF Hex)
Response code
Remote UDP/TCP port number (0000 to FFFF Hex)
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
...
+0
+1
+2
+4
+5
+6
+8
+9
m+8
m+28
...
m+9
m+29
m+10
m+11
m+30
m+31
m+12
m+32
...
m+13
m+33
m+14
m+34
m+15
m+35
m+16
m+36
m+17
m+37
...
Parameter
No. of
words
Range
(decimal values in
parentheses)
Socket service
UDP
open
UDP
receive
UDP
send
UDP
close
Socket option
1
Specified bit
---
---
---
---
UDP/TCP socket No.
0001 to 0003 hexadecimal
(1 to 3)
W W W W
Local UDP/TCP port No.
1
0000 to FFFF hexadecimal
(0 to 65,535)
W ---
---
---
Remote IP address
2
00000000 to FFFFFFFF
hexadecimal
(0.0.0.0 to 255.255.255.255)
---
R W ---
Remote UDP/TCP port No.
1
0000 to FFFF hexadecimal
(0 to 65,535)
---
R W ---
Number of bytes to send/
receive
1
0000 to 07C0 hexadecimal
(0 to 1,024 bytes)
---
RW RW ---
Send/Receive data address
2
Memory area address
---
W
W
---
Time out time
(Unit: 100 ms)
1
0000 to FFFF hexadecimal
(0 to 65,535)
(0: No limit, 0.1 to 6,553.5 s)
---
W ---
---
Response
code
1 ---
R R R R
Содержание CP1L-EL20DR-D
Страница 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Страница 4: ...iv...
Страница 10: ...x...
Страница 22: ...xxii...
Страница 34: ...xxxiv Software Licenses and Copyrights 7...
Страница 178: ...144 Connecting the CX Programmer Section 5 1 Click the Connect button to connect and then connection online is completed...
Страница 192: ...158 Trial Operation and Debugging Section 5 3...
Страница 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Страница 666: ...632 Trouble Shooting Section 11 7...
Страница 696: ...662 Standard Models Appendix A...
Страница 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Страница 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Страница 836: ...802 PLC Setup Appendix G...
Страница 838: ...804 TCP Status Transitions Appendix H...
Страница 840: ...806 Ethernet Network Parameters Appendix I...
Страница 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Страница 844: ...810 Ethernet Specifications Appendix K...
Страница 851: ...Index 817 work words 118 write protection 447...
Страница 852: ...818 Index...
Страница 854: ...820 Revision History...
Страница 855: ......