EasyManuals Logo

Toshiba V Series User Manual

Toshiba V Series
258 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #134 background imageLoading...
Page #134 background image
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.
F0
CMD Request destination EN311 module slot number
CMD+1 Command (16#0338)
CMD+2 Socket identifier Value:1-8
CMD+2 imeout value
F0
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

Table of Contents

Other manuals for Toshiba V Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Toshiba V Series and is the answer not in the manual?

Toshiba V Series Specifications

General IconGeneral
BrandToshiba
ModelV Series
CategoryController
LanguageEnglish

Related product manuals