A simple bridge program to interface between a serial host and a modbus controller. Delphi and Winxp
I am breaking the project into to phases the first phase will receive commands from the host and emulate the controller for a simulated environment. Whoever does the first phase will most likely receive the second phase
There are 5 basic commands and they will be on the serial com interface.
I want the program written in Delphi (2007 compatible). The visual forms are for troubleshooting purposes and will be turned off in operation. They should include a trace of the host commands and the programs response/ controller commands for easy trouble shooting and controls to operate the controller from the bridge program (again for troubleshooting).
There needs to be a simple configuration file that is used for the com port assignment and later for the modbus ip, and whatever else we need to add to configuration. I prefer .ini files vs registry.
For Serial communications my preference is asyncpro which is available on sourceforge.
I have documented the serial protocol and created a skeleton layout of simulation to get you pointed in the right direction.
I will need to do the final debugging of the program when it is attached to the host, though I have included example command strings.
Please look at the attached .pas file for the documentation and ask any questions.