D
I'm hoping that somebody can help me understand how to approach the following scenario.
I have a PLC (Modicon M340) which spits out Modbus TCP/IP over ethernet. This ethernet link is connected to a PC where we need to develop a C++ application to read and write data to the M340 using Modbus TCP/IP. In other words, I need to write a Modbus TCP/IP driver.
Has anyone had any experience with this? I understand the basic concept of opening a TCP/IP socket and modbus data wrapped in the TCP/IP packet structure down it. What I am not sure of is where to start. I have never coded anything to do with TCP/IP before and my C++ skills are fairly basic. I'll pick it up just fine though if I can get a starting point.
Incase it is mentioned, I know that we could use a SCADA package to read the data from the PLC and this would be usual practice. However on this occasion we need to develop our own software.
Thanks
I have a PLC (Modicon M340) which spits out Modbus TCP/IP over ethernet. This ethernet link is connected to a PC where we need to develop a C++ application to read and write data to the M340 using Modbus TCP/IP. In other words, I need to write a Modbus TCP/IP driver.
Has anyone had any experience with this? I understand the basic concept of opening a TCP/IP socket and modbus data wrapped in the TCP/IP packet structure down it. What I am not sure of is where to start. I have never coded anything to do with TCP/IP before and my C++ skills are fairly basic. I'll pick it up just fine though if I can get a starting point.
Incase it is mentioned, I know that we could use a SCADA package to read the data from the PLC and this would be usual practice. However on this occasion we need to develop our own software.
Thanks