106
Ethernet module User’s Manual
Chapter 6 Socket Interface Communication
6
6.4.3
UDP receive request (using the URECV_T instruction)
(1) Function
If an opened UDP socket receives data, read the received data into registers on the
local node. If no data has been received, wait until data arrives (the wait time can be
set) and then read the received data into the local node registers.
(2) Request command structure and error status
<Request command>
• Local station register is specified by the input operand "receive data P" of the URCV_T
function block.
• Transfer register size is specified by the input operand "number of received data
words N" of the URCV_T function block.
Specify in words: 1 to 1001 words
The value specified as "number of received data words N" is the size of the transmitted
data in a single operation to the socket (number of words) + 1 word.
• If the transmission source IP address is set to "0.0.0.0", it will be broadcast.
<Error status>
Error status examples
(3) Request command details
• Receive data length: Set this parameter to a value greater than or equal to the largest
size for transmission data that could be sent to the object socket
in a single operation.
• Receive wait timeout time: Specified in 0.1-second units. (1 to 65535)
If zero is specified, the system is set to an unlimited
(infinite) wait state.
F
0
CMD
Request destination EN311 module slot
number
CMD+1
Command (16#0333)
CMD+2
Socket identifier
Value:1-8
CMD+3
Transmission destination IP address
(The input format is the same as that
for the parameter setup request.)
CMD+4
CMD+5
Specified socket UDP port number of
the local node
Value:1024-66
CMD+6
Receive wait timeout time
F
0
STATUS
Socket identifier (1-8) or Error status
Error status number
Description
-5002(16#EC76)
Timeout (detected by the S controller)
-5004(16#EC74)
Destination EN311 module slot number is missing or socket identifier is
out of range
2819(16#B03)
Local node standby
2848(16#B20)
Timeout (detected by the EN311)
2945(16#B81)
Socket not opened yet
3009(16#BC1)
Receive request (number of words) error in the S controller
Содержание V Series
Страница 1: ...6F8C0904 Integrated Controller V Series Ethernet module EN311 User s Manual Sep 30 2004 ...
Страница 12: ......
Страница 16: ......
Страница 34: ......
Страница 40: ......
Страница 106: ......
Страница 180: ......
Страница 199: ...6F8C0904 179 7 5 RAS Information Readout 7 Figure 7 1 Packet Format IP Datagram ...
Страница 200: ...180 Ethernet module User s Manual Chapter 7 RAS Information 7 ...
Страница 224: ......
Страница 240: ......
Страница 244: ......
Страница 248: ......
Страница 250: ......
Страница 256: ......
Страница 258: ......