Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

Precautions for Correct Use
• Execution of this instruction is continued until processing is completed even if the value of Execute
changes to FALSE or the execution time exceeds the task period. The value of Done changes to
TRUE when processing is completed. Use this to confirm normal completion of processing.
• Refer to Using this Section on page 2-3 for a timing chart for Execute, Done, Busy, and Error.
• This instruction can be used only for the built-in EtherNet/IP on NJ/NX-series CPU Units and NY-
series Controllers.
• Up to 2,000 bytes of data can be read with one instruction. A maximum of 2,000 bytes is read even if
the RcvDat[] array is larger than 2,000 bytes.
• 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, SktClearBuf, and SktSetOption.
• 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.
Sample Programming
Refer to the sample programming that is provided for the SktTCPConnect instruction (page 2-1062).

NY-series Instructions Reference Manual (W560)

2 Instruction Descriptions
2-1073
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents