7/26/2016 3:04 PM | |
Posts: 2 Rating:
|
Hi, I wrote a small c++ program which uses libnodave to read and write some data with a plc (simatic s-300). It works really nice. But now I am wondering how libnodave works so that I can implement it based on simple UDP or TCP/IP sockets myself for a better understanding. So I made some research on the internet and I found out that I have 3 possibilities:
So I found this PDF which describes the different solutions but I was confused by this statement mentioned at all 3 protocols:
But so far I understand it I would have to change the program of the plc (at least create a datablock with the udt 65 structure) to get a connection working. But when I used libnodave I did not any extra work on the plc and it works. So how libnodave exchange data with a plc if I choose the daveProtoISOTCP option and where I can find the specifications for this? But in case of I understood something completely wrong (I am pretty new to plc's), what are the possibilities of exchanging data based on simple tcp/ip or udp sockets with a pc over ethernet? |
Follow us on