Posted 29 Aug 2017 Hi everyone, I'm a newbie in the ladder logic programming languages. For my thesis project I've to develop a scenario but I'm stuck with the creation of a socket connection from the Modicon M340 PLC to a server for transfer continuous data given from sensors or similar. Does anyone have a sample program that could have such a functionality so that I can change it based on my needs? Thanks in advice for any further reply! Share this post Link to post Share on other sites
Posted 29 Aug 2017 I found this example code with modbus tcp/ip and VBA http://accautomation.ca/how-to-implement-modbus-tcp-protocol-using-vba-with-excel/ Share this post Link to post Share on other sites
Posted 29 Aug 2017 Thanks for the reply but I'm searching a Ladder Logic program with integrated a socket connection to a specify IP address (e.i. server) For trasnfer and receive data from or to the PLC. I'll keep in consideration your link as well! Share this post Link to post Share on other sites
Posted 5 Sep 2017 I guess you could use "Read_Var" and "Write_Var" to read and write. Share this post Link to post Share on other sites