Page 1 of 1

Serial Port (Rs232)

Posted: Wed Mar 18, 2009 11:57 pm
by Mario Mansilla
Hola :
Necesito comunicarme con una balanza electronica a travez de un puerto serie (rs232) . He intentado con la libreria port.dll pero solo es compatible con win98 . Tambien probe Hbcomm (la version para mingw) pero debe haber un problema con los fuentes ya que la version Hbcomm.lib funciona pero con la Libhbcomm.a para Hmg 2.0 (mingw) no es tan estable com su version para Borland .Por ultimo probe con la conocida mscomm pero siempre tengo que tener Vb instalado en la pc para que la registre .Alguien conoce alguna libreria para puerto serie que funcione con Hmg oficial .
De lo contrario tendre que modificar sistema para Hmg extended que trabaja con Borland .trabajar con la version

Saludos cordiales

Google Translator :
Hi:
Need to communicate with an electronic balance via a serial port (rs232). I tried the library but port.dll is only compatible with win98. Also try Hbcomm (the MinGW version) but there must be a problem with the source because the version in the works but Hbcomm.lib for Libhbcomm.a HMG 2.0 (MinGW) is not so stable with its version for Borland. Last probe MSComm known to always have to be installed on the pc Vb for the record. anyone know any library for serial port that works with HMG official.
Otherwise you will have to modify HMG extended system that works with Borland. Work with the version

Best regards

Re: Serial Port (Rs232)

Posted: Thu Mar 19, 2009 11:26 am
by salamandra
;) Hola mario,
No se exactamente que tipo de balanza es la que estas usando, mas
en la mayoria de los casos el propio fabricante te provee la DLL de
comunicacion con el equipo.
Por otra parte, grande parte de las balanzas envia para el puerto serial
( COM? ) un archivo en formato TXT, lo que te facilita bastante el trabajo
pues en esos casos puedes usar código Clipper puro para abrir y leer el
archivo TXT.

[]'s Fernando

// ============================================================================

;) Hi Mario,
I don't know exactly what kind of balance are you using, but
in most cases the manufacturer provides a DLL for communication with
the device.
Moreover, big part of the balance sent to the serial port
(COM?) a TXT file, which gives you quite work since in these cases you
can use pure Clipper code to open and read the TXT file.

[]'s Fernando

Re: Serial Port (Rs232)

Posted: Thu Mar 19, 2009 2:59 pm
by esgici
Hola Mario

Please look at HbComm - ¿Cómo construir la librería HbComm para comunicaciones? tag in :

http://www.carozodequilmes.com.ar/Proje ... ex_QAC.htm

I hope that it will be useful for you.

Regards

--

Esgici