4/16/2008 9:51 AM | |
Posts: 78 Rating:
|
hello, everyone anyone know the differnt, UDP and TCP? which is better? cycle is shorter? if UDP is better, what way to prove it intuitionisticly? thank you in advance |
4/16/2008 10:31 AM | |
Posts: 487 Rating:
|
Hi From the PLC side : not all communication cards do UDP and TCP ( A mention in the doc like TCP/IP does not mean that it can be used to communicate via TCP.) UDP and TCP : you use send /receive FC's . but UDP : does not give a "reply" .Meaning you send something but you don't know if it has arrived.You have to do your own error routine's .UDP is the fastest TCP : does give a error code if the message has not arrived. My knowledge of simotion is zero but if speed is essential should you not look at using profinet ? Being to Siemens products I presume that comms via S7 could also be possible. Greetings Eric |
4/16/2008 10:45 AM | |
Joined: 9/27/2006 Last visit: 4/1/2025 Posts: 12345 Rating:
|
Hello; I am not an IT expert, so this answer only engages me; anyone feel free to correct or expand on what I am saying here. UDP and TCP are both protocols that are installed over IP; they use the sam addressing scheme, and are used tosend packets of data over the Internet between communication partners. TCP is used to establish robust and reliable connection over the Internet; it provides flow control by acknowledging reciept of all packets by the reciever, so the sender is aware of the status of all exchanges. TCP can be full duplex. UDP does not acknowledge reciept of the packet, so the sender is not aware of the status of the transmission. If some packets are missing, there is no inbuilt mechanism to retransmit. UDP has therefore less "overhead" (software to communicate between the sender and the reciever), it is faster asnd simpler. But it is not garanteed. SNMP and DNS are two commonprotocols that use UDP-they don't care much is every single packet sentis recieved, the reciever application will request a new transmission if it needs it. so you, as a programmer, have to decide what is more important to you: security or overall speed. Here is a link to a mode detailed explanation on the subject: http://www.laynetworks.com/Comparative%20analysis_TCP%20Vs%20UDP.htm You should also look at Wikipedia, they generally have very good contributors whocan give you great basic info. Hope this helps, Daniel Chartier |
4/17/2008 9:00 AM | |
Joined: 6/22/2006 Last visit: 3/7/2022 Posts: 156 Rating:
|
Hi, for a detailed description about UDP and TCP/IP with SIMOTION please have a look to following SIMOTION documents on the documentation CD - \2_Description_of_system_and_functions\Communication.pdf - \2_Description_of_system_and_functions\Basic_TechnologyFct.pdf or to the Online help. You can also find the SIMOTION documents in the Internet: http://support.automation.siemens.com/WW/view/en/10805436/133300 Filter settings: Manuals Manfred |
4/17/2008 1:59 PM | |
Posts: 5822 Rating:
|
Hello, I am sorry but I have to post some of my views on that too, because I think it is important. J_Bell |
We are working on a new user interface with better overview and more relevance.
Follow us on