So what were my purposes? I wrote applications that did the following things: 1. TComPort seems like exactly what I needed for my purposes.
Nevertheless, as a person who believes strongly in the "smaller is beautifuller" concept, almost to an absurd degree, and who has found that the less code I put in my application, the less my application breaks in horrible ways, I still prefer TComPort for the cases where I need to do serial communication in a delphi app. AsyncPro is a fabulous component set, and nothing negative I have said in the past should be held as more correct than the simple fact that lots of people use, and still use AsyncPro, and are happy with it. I have said some negative things in the past about AsyncPro, because the complexity in it mixed poorly with the complexity in my products, and when I had to debug things, I found it really hard to debug AsyncPro.īut I should introduce a policy here on Delphi Code Monkey I intend to publically do penance for stupid things I have said in the past.
Like a lot of developers who need to do serial communication, I started using Turbo Power's very capable AsyncPro product, which is still alive, and doing well. It didn't need much tweaking, other than a bug fix here and there, and support for new Delphi versions as it came along. The TComPort component was originally written by Dejan Crnila, it was modified a bit by other people, including me, among others. Also via mail if you want philmacflygooglemailcom. Maybe you can help me out with some code of yours. Im having troubles to determin the end of the packets. Any help on this would be really appreciated.I just read this post, and I'm struggling to get my TComport to work with Modbus. Note: Delphi 2 is no longer suported, however, with some minor changes, it should compile under Delphi 2 as well.
If it complains that it can't install it because it can't find a library, you probably did not put the run-time package in the search path as described above. Click the Add button.īrowse to the design-time library and select it. Now move run-time package library files see above from ComPort folder to a folder that is accessible through the search PATH e. Compile the package from the project menu or Ctrl-F9.
If it complains that it can't install it because it can't find a library, you probably did not put the run-time package in the search path. TUTORIAL INSTAL komponen COMPORT DELPHI (10.2) TOKYO ComPort components appear in "CPortLib" page of component pallete. Now you have to install design-time package. Now move run-time package library file or files see above from ComPort folder to a folder that is accessible through the search PATH e. HPP files also get stored in the CPort directory.Ĭlick "Compile" button in Package window to compile the library. So, after you install CPort, double check to make sure the. I recommend installing CPort while running Delphi in the "all personalities" mode of Delphi, rather than in the Delphi only personality. Use the instructions below for all other Delphi versions.
Create a new folder under Delphi directory and extract Sources zip file into new folder. Installation Remove all previously installed files of ComPort Library TComPort component.