Data Reception Processing - Omron NJ501-1300 User Manual

Sysmac machine automation controller, nj-series, cpu unit built-in ethernet/ip port
Hide thumbs Also See for NJ501-1300:
Table of Contents

Advertisement

9 Socket Service
Using UDP
The conditions shown in the following figure occur when data is sent in fragments in UDP communica-
tions.
(1) A send request is sent from the user program at the sending node. It specifies a vari-
able with a data length of 2,000 bytes.
(2) The built-in EtherNet/IP port separates the send data into 1,472 bytes in data A and
528 bytes in data B.
(3) Data A and data B are sent in sequence by the sending node.
(4) Data A and data B are joined to restore the original send data, and the data is passed
to the user program.
Sending node (Controller)
User program
(1) Send request
2,000 bytes
Original data
Because UDP communications are performed in datagram units as shown above, send data is
returned to the original data format before it is passed to the user program.
9-2-3

Data Reception Processing

This section describes data reception processing for TCP and UDP.
TCP Receive Processing
With TCP communications, the receive data that is stored in the receive buffer can be separated and
received. (The receive buffer holds up to 9,000 bytes.) This can be used to receive data that
exceeds the size that can be received with one data request (2,000 bytes), i.e., more than one
receive request is used to receive all of the data. Also, all of the receive data can be received if there
is less data in the receive buffer than the size of the variable that was specified in the receive
request.
Example: Receiving 3,000 Bytes of Receive Data in Two Sections
1. The data that was sent from the sending node in two sends is stored in the receive buffer.
2. Two receive requests are used to receive all of the send data.
9-6
Built-in
EtherNet/IP port
Ethernet line
(3)
(2) Fragmenting
Data A and
data B are
1,472 bytes
separated
and sent.
Data A
Data B
528 bytes
NJ-series CPU Unit Built-in EtherNet/IP Port User's Manual (W506)
Receiving node (host computer)
User program
Receiving node
(4) Receive request
2,000 bytes
Data A
Data B

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1400Nj501-1500

Table of Contents