I have used PLC to run MODBUS but have never written a MODBUS c++ program before. I am fairly new to c++. I bought the MODBUS tool kit hoping for some help on this but I am finding very little. Is there someone who could help me through this?
These demo programs are in C and for our controllers but they may help you to get started. See the SDK links on the following page. There are both Modbus RTU and Modbus TCP demos.