EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 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
Loading...
2-779
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Communications Instructions
2
SktTCPRcv
If the size of data that was received by the specified socket is smaller than the value of Size, then all
of the received data is stored in RecDat[]. Then size of data that was stored is stored in RcvSize.
If the size of data that was received by the specified socket is larger than the value of Size, then the
size of received data specified by Size is stored in RecDat[].
The receive data is not read if the value of Size is 0.
If the SktClose instruction closes the connection when there is no data in the receive buffer, an error
end occurs even if a timeout has not occurred.
You can execute a maximum of 32 of the following instructions at the same time: SktUDPCreate,
SktUDPRcv, SktUDPSend, SktTCPAccept, SktTCPConnect, SktTCPRcv, SktTCPSend, SktGetTCP-
Status, SktClose, and SktClearBuf.
An error occurs in the following cases. Error will change to TRUE.
There is a setting error for the local IP address.
The value of a member of Socket is outside of the valid range.
Data reception is in progress for the socket specified with Socket.
The socket specified with Socket is not connected.
The handle specified by Socket.Handle does not exist.
Data was not received before the time that is specified with TimeOut expired.
The socket was closed with the SktClose instruction.
Refer to the sample programming that is provided for the SktTCPConnect instruction (page 2-770).
Sample Programming

Table of Contents

Related product manuals