Difference TCP & UDP Communications

Posted on March 1, 2023 by Ading
tcpvsudppicture

Hello everyone, in this article I'll be showing you my experience using the UDP and TCP communication protocols for PLC to server communication.

I am currently using TCP in my application.

Before using TCP, I've used the UDP protocol on my PLC and server communication. Initially there was no problem during the trial, even the data sent was very quickly received by the server. However, when I run the system on a production line where data traffic is very heavy, a lot of data sent by the PLC to the server is lost in the middle of the road. PLC has sent data but the server does not receive any data.

After that, I immediately fixed it and replaced the communication using TCP, the result is the data sent by the PLC to the server came in, although it was not as fast as during the UDP trial.

This can happen because TCP establishes a connection between two devices before sending data. So that they can confirm whether the data has been received or not. Unlike UDP, which only sends data without caring whether the data has arrived or not.

Hello everyone, in this article I'll be showing you my experience using the UDP and TCP communication protocols for PLC to server communication.

kocheng nangid

wkwkwkw