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

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

Advertisement

Additional Information
Refer to the NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (Cat. No. W506) or NY-
series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User's Manual (Cat. No. W563)
for details on socket services.
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 from the receive buffer with one instruction.
• 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, a normal
end occurs without waiting to receive data even if a timeout has not occurred. The value of RcvSize
is 0 in that case.
• 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.
• Data reception is in progress for the socket specified with Socket.
• The socket specified with Socket is not open.
• The handle specified by Socket.Handle does not exist.
Sample Programming
Refer to the sample programming that is provided for the SktUDPCreate instruction (page 2-1045).

NY-series Instructions Reference Manual (W560)

2 Instruction Descriptions
2-1055
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents