Does the PLCnext also have a library for TCP/IP communication? I was looking for it, but couldn’t find anything myself. I did see that the PLCnext has Ethernet/IP communication. Is this the same as TCP/IP?
If you are using PLCnext Engineer, then yes - the TLS_* function blocks can be used for TCP/IP communication:
Ethernet ');\n mywindow.document.close(); \n mywindow.focus();\n setTimeout(function () {\n mywindow.print();\n mywindow.close();\n }, 1000)\n return true;\n}\r\n\r\n\r\n (note that the TCP_* function blocks are now deprecated).
I did see that the PLCnext has Ethernet/IP communication. Is this the same as TCP/IP? No, Ethernet/IP is an industrial fieldbus protocol. Some PLCnext Control devices can be configured as an Ethernet/IP slave.
Hello, I am trying to use The TCP/IP function blocks and they work quite well. But I cant figure out how to use two clients at the same time to one server. I am trying to read from two clients with the PLCnext as my server. But I can only read from the first connected Client. Do I need to use the receive function block twice? and how do I tell my server that I have multiple Clients.
Hello!
Yes, you have to use several TLS_Socket FBs binded to the same port, and send\ eseive fbs binded to the each socket fb.
Take a look at the sample, that provide ModbusTCP library.
Best regards.