114
Ethernet module User’s Manual
Chapter 6 Socket Interface Communication
6
6.4.7
TCP receive request (using the URCV_T instruction)
(1) Function
If an opened TCP socket receives data, read the received data into registers on the
local S controller. If no data has been received, wait until data arrives (the wait time
can be set) and then, after reception, read the received data into the local S controller
registers.
(2) Request command structure and error status
<Request command>
• The register where the received data will be stored is specified by the input operand
"receive data P" of the URCV_T function block.
• Transfer register size (number of words) 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.
<Error status>
Error status examples
(3) Request command details
• Reception data length: The data has been received by the socket. Set the amount of
data to be transferred to the S controller.
• Reception 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.
(4) Methods for storing reception data
• 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. The S controller
checks for register area with the value of N and returns a
Error status: Boundary error ••• 5060(16#EC3C)
In this case, data is not transferred to the register area, and the data is discarded. The
data is not retained in the EN311 either.
F
0
CMD
Request destination EN311 module slot number
CMD+1
Command (16#0338)
CMD+2
Socket identifier
Value:1-8
CMD+2
imeout value
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 control
Содержание 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: ......