Parameter Settings; Udp Socket Services - Omron CP1L-EL20DR-D Operation Manual

Sysmac cp series cp1l-el/em cpu unit
Table of Contents

Advertisement

Socket Services
Socket Services Parameter Area 1 to 3
Offset
Socket
No. 1
+0
m+8
+1
m+9
+2
m+10
m+11
+4
m+12
+5
m+13
+6
m+14
m+15
+8
m+16
+9
m+17

Parameter Settings

UDP Socket Services

Parameter
Socket option
UDP/TCP socket No.
Local UDP/TCP port No.
Remote IP address
Remote UDP/TCP port No.
Number of bytes to send/
receive
Send/Receive data address
Time out time
(Unit: 100 ms)
Response code
Note
200
Socket
...
No. 3
15 14 13 12 11 10 9
...
m+28
Socket option
m+29
m+30
m+31
...
m+32
Remote UDP/TCP port number (0000 to FFFF Hex)
m+33
Number of send/receive bytes (0000 to 0400 Hex (1024))
m+34
m+35
m+36
...
m+37
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.
The following table shows the parameters that are required for each service
and the use of the parameters by the socket service.
No. of
words
(decimal values in
parentheses)
1
Specified bit
0001 to 0003 hexadecimal
(1 to 3)
1
0000 to FFFF hexadecimal
(0 to 65,535)
2
00000000 to FFFFFFFF
hexadecimal
(0.0.0.0 to 255.255.255.255)
1
0000 to FFFF hexadecimal
(0 to 65,535)
1
0000 to 07C0 hexadecimal
(0 to 1,024 bytes)
2
Memory area address
1
0000 to FFFF hexadecimal
(0 to 65,535)
(0: No limit, 0.1 to 6,553.5 s)
1
---
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.
8
7
UDP/TCP socket number (1 to 3)
Local UDP/TCP port number (0000 to FFFF Hex)
Remote IP address
(00000000 to FFFFFFFF Hex)
Send/receive data address
(Same as FINS variable area designation method.)
Timeout value (0000 to FFFF Hex)
Response code
Range
UDP
open
---
W
W
---
---
---
---
---
R
Section 6-6
6
5
4
3
2
1
0
Socket service
UDP
UDP
receive
send
---
---
W
W
---
---
R
W
R
W
RW
RW
W
W
W
---
R
R
UDP
close
---
W
---
---
---
---
---
---
R

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents