![](/images/new-backgrounds/1193384/193384253x1.webp)
Overview | Section |
3.Data A and Data B are sent consecutively.
4.When the receiving user program sends a request to receive 1,984 bytes of data, Data A and Data B are linked to restore the original data, which is passed to the user program.
Sending User Program | Ethernet Unit | Receiving Node | Receiving User Program | |||||||
1. Send request |
|
|
|
|
|
|
|
|
| |
1,984bytes | 1,472 bytes |
|
|
|
|
| ||||
Source data |
|
| Data A |
|
|
| 4. First receive request | |||
|
|
|
|
| ||||||
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
| 1,984 bytes | |
|
|
| Data B |
|
| Data A | Data B |
|
|
|
|
|
| 512 bytes |
|
|
|
|
|
|
2.3.
As shown above, the UDP protocol handles data communications as datagrams, so that the send data is restored to the original data before being passed to the user program. Consequently, if the data length in the receive request is set to the length of the send data, the entire data can be received using a single receive data request. However, if the data length in the receive data request is set smaller than the actual length of the data, all received data exceeding the set data length will be discarded.
6-3 Overview
6-3-1 Socket Service Functions
The Ethernet Unit’s socket services are used to exchange data between the PLC and
Intranet
The host computer uses system calls to call sockets provided in a C language interface library to allow TCP and UDP protocols to be used directly to access PLC data.
Ethernet
Ethernet Unit
The program in the CPU Unit sends requests to the Ethernet Unit to open/close sockets or send/receive data. This is achieved by manipulating dedicated control bits or executing CMND(490), and allows the CPU Unit to exchange data with the host computer by using UDP or TCP protocols directly.
103