Recent

Author Topic: TComPort for Win  (Read 10590 times)

S.Eremenko

  • Newbie
  • Posts: 2
TComPort for Win
« on: July 23, 2008, 12:31:53 pm »
Hello, I am about to migrate to Lazarus from Delphi, so to check is it difficult or not I have ported to Lazarus one of often used components, TComPort (freeware after Dejan Crnila, 1998 - 2000).
I couldn'n find somthing of the sort ported for Lazrus.
Seems to work good under Windows.

If anybody is interested, I would be glad to distribute that for public use.
How could I do that? Upload somewhere?

Locky

  • Newbie
  • Posts: 2

S.Eremenko

  • Newbie
  • Posts: 2
TComPort for Win
« Reply #2 on: July 25, 2008, 07:12:46 am »
Thanks, Locky.
Anyway the ported component source and originsl's help are available here:
http://firtwig.ru/download/tcomport_lazarus.zip

chienmort

  • Newbie
  • Posts: 1
Re: TComPort for Win
« Reply #3 on: February 24, 2009, 04:19:49 pm »
Can you explain how I use this?

I need to control some equipment and the command format for Power On is:

02 PON 03

Where 02H  = STX in Hex
PON is ascii and needs to be converted to HEX
03H = ETX in Hex

How do I convert to commands to hex and also how do |I send the commands and read the responses from the equipment?




Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Re: TComPort for Win
« Reply #4 on: February 25, 2009, 12:20:19 am »
If you need it as string:
  MyString := #02'PON'#03;

//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018