Search found 105 matches: writecomm

Return to advanced search

Re: Conexión con balanza a través del puerto RS232 (SOLUCIONADO)

... que responda con el peso. NI en el manual de la balanza viene esa indicación... tuve que ponerme en contacto con el equipo SAT del fabricante. WriteComm( nComm, '$' ) ) <= 0 Mil gracias, por todo!! saludos. LORENZO.
by Loren
Wed Mar 11, 2020 1:09 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Conexión con balanza a través del puerto RS232 (SOLUCIONADO)
Replies: 3
Views: 755

Conexión con balanza a través del puerto RS232 (SOLUCIONADO)

... return .f. endif                    && <-------- HASTA AQUÍ TODO PERFECTO !!!        ncomand="chr(0X44)"  if ( nBytes := WriteComm( nComm, ncomand +Chr( 10 ) )) < 0      && <------- HE PROBADO TAMBIEN INSERTANDO CHR(13) Y CHR(13)+CHR(10). ...
by Loren
Tue Mar 10, 2020 8:07 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Conexión con balanza a través del puerto RS232 (SOLUCIONADO)
Replies: 3
Views: 755

Does FiveLinux support RS232 Comm Functions??

Hello, I have been able to compile most of the sample linux prg's OK and have written a few of my own that compile and run OK. I have a need to do some serial communications (RS232). These are the linking errors I get when trying to compile. vend@v1:~/fivelinux/samples$ ./build.sh qibixx compiling.....
by bradmaudlin
Tue Nov 26, 2019 2:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Does FiveLinux support RS232 Comm Functions??
Replies: 1
Views: 743

Does FiveLinux support Serial Communications (RS232)

Hello, I have been able to compile most of the sample linux prg's OK and have written a few of my own that compile and run OK. I have a need to do some serial communications (RS232). These are the linking errors I get when trying to compile. vend@v1:~/fivelinux/samples$ ./build.sh qibixx compiling.....
by bradmaudlin
Mon Nov 25, 2019 10:23 pm
 
Forum: FiveLinux / FiveDroid (Android)
Topic: Does FiveLinux support Serial Communications (RS232)
Replies: 1
Views: 827

Re: WriteComm on file

Maurizio, do you mean this? FUNCTION MAIN()LOCAL nHandle LOCAL cBufLOCAL nLennHandle  := FOPEN( "COM1" , 1 )? nHandle cBuf := "ATDT161"nLen := LEN( cBuf )? FWRITE( nHandle , @cBuf , nLen )FCLOSE( nHandle )         &...
by MarcoBoschi
Mon Sep 02, 2019 7:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: WriteComm on file
Replies: 1
Views: 560

WriteComm on file

Can I write to Com1 as a file ?
Maurizio
by Maurizio
Fri Aug 30, 2019 4:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: WriteComm on file
Replies: 1
Views: 560

Re: Writecomm and CHR()

Miloš,

WriteComm( nComPos, Chr(0x02)+Chr(0x02)+Chr(0x30)+Chr(0x36)+Chr(0x03)+Chr(0x05) ) ??

Please explain it better, thanks
by Antonio Linares
Tue Mar 05, 2019 8:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Writecomm and CHR()
Replies: 1
Views: 409

Writecomm and CHR()

... len(alltrim(hb_NumToHex(nMen))) = 1 mLcr="0"+alltrim(hb_NumToHex(nMen)) else mLcr=alltrim(hb_NumToHex(nMen)) endif The value is: mLcr=05 WriteComm( nComPos, Chr(0x02)+Chr(0x02)+Chr(0x30)+Chr(0x36)+Chr(0x03)+ Chr(0x01) ) How to change the value 01 Chr(0x01) to 05 (mLcr) Chr(0x05)? Best ...
by mtajkov
Mon Mar 04, 2019 2:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Writecomm and CHR()
Replies: 1
Views: 409

Puerto to 485 with converter a USB ,Solucionado

... + Chr( 0x34 ) + Chr( 0x03 ) /* De suma importancia que el largo de la cadena sea de acorde */ nByteslargo:= Len( cTrIngPuerta001 ) If ( nWBytes := WriteComm( nComm,cTrIngPuerta001,nByteslargo ) ) <= 0 MsgStop( "Error al enviar datos la Puerto 485","Error" ) Return " ...
by Busmatic_wpb
Thu Feb 08, 2018 11:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ports to 485 with converter USB, please help.
Replies: 7
Views: 1415

Lectura de puertos seriales Solucionado.. gracias

... + Chr( 0x34 ) + Chr( 0x03 ) /* De suma importancia que el largo de la cadena sea de acorde */ nByteslargo:= Len( cTrIngPuerta001 ) If ( nWBytes := WriteComm( nComm,cTrIngPuerta001,nByteslargo ) ) <= 0 MsgStop( "Error al enviar datos la Puerto 485","Error" ) Return " ...
by Busmatic_wpb
Tue Feb 06, 2018 11:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2240

Ports to 485 with converter USB, please help.

... LOCAL cString:="02 30 30 30 31 31 33 30 30 31 34 03", nByteslargo:= Len( cString ) retorno = .t. FOR mcont := 1 TO 10 IF ( nBytes := WriteComm( port,cString,nByteslargo)) <= 0 MsgAlert("Mando mal ENQ") retorno := .f. ELSE retorno := .t. exit ENDIF MsgWait("Enviando ...
by Busmatic_wpb
Mon Feb 05, 2018 11:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ports to 485 with converter USB, please help.
Replies: 7
Views: 1415

Re: Lectura de puertos seriales..

Karina Gracias.
No te agradezco tu respuesta pero ando buscando el problema de WriteComm que no me funciona.
Gracias
by Busmatic_wpb
Thu Feb 01, 2018 1:03 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2240

Lectura de puertos seriales..

... de maravillas, envia y lee perfectamente. (utilizo el mismo seteo de COM2) Mi problema se da en la siguiente instruccion. if ( BitesSend := WriteComm( nComm, "02 30 30 30 31 31 33 30 30 31 34 03" )) > 0 msgwait('Sen han enviado'+str(BitesSend,5),'',.900) ENDIF Donde este string ...
by Busmatic_wpb
Tue Jan 30, 2018 11:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2240

Re: Consulta sobre OpenComm()

... parameters are ignored and the queue size is set to zero. Sample: SAMPLES\\TestComm.prg Source Code: SOURCE\\WINAPI\\Comm.c See also: CloseComm() WriteComm() ReadComm() BuildCommDcb() SetCommState() FlushComm() GetCommError()
by carlos vargas
Thu Jun 15, 2017 10:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre OpenComm()
Replies: 5
Views: 1070

Comunicacion con el Puerto Serial

... de totalizar el ticket esta es la instrucción que le mando a la caja: nComm := OpenComm( "COM1", 1024, 128 ) cVar:="1"+chr(13) WriteComm(nComm,cVar) El Valor : "1" = Codigo del Plu o Codigo de Barra interno de la caja El Valor : CHR(13) = Es como si le oprimiera intro ...
by daniv096
Mon Nov 28, 2016 11:13 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Comunicacion con el Puerto Serial
Replies: 2
Views: 655
Next

Return to advanced search

cron