Description This project has a popup page for testing Modbus/TCP (MODNET) communications. It uses the free MODPOLL.EXE command-line tool from www.modbusdriver.com. This allows you to do test reads/writes to any IP address, regardless of whether Citect is communicating with that device. The results are displayed and numbers can be shown in different formats. This can be helpful for testing devices that are not yet defined in Citect. It can also be used to verify the maximum number of registers the device will return in one request and to check which addresses can be read from the device.
To test it, download and restore the ModTest project, compile it, run the computer setup wizard, then run the project. Open the Test page and click the ModPoll button. Fill out the IP address, data type, and address fields, then click Execute. The results are displayed in the window.
See the instructions on the Test page to add this functionality to your project.