Search found 94 matches: ncomm

Return to advanced search

Re: Xbrowse and Touchscreen best use

... oDlg ; ON INIT ( oDlg:SetSize( 0, HALF_SIZE ),; oHangDown:Hide(), oLocalNum:Hide(),; // If( ! lInitModem(), oDlg:End(),),; EnableCommNotification( nComm, oDlg:hWnd, IN_BUFFER, IN_BUFFER ) ); VALID ( CloseComm( nComm ), .t. ) or this demo: *+*+      "Virtual Keyboard"#include ...
by Otto
Sun Feb 19, 2023 9:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse and Touchscreen best use
Replies: 8
Views: 1075

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

... 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: 877

Re: RS232 - dispensing equipment

Surely you need to use the function OpenComm()

nComm := OpenComm( "COM1", 1024, 128 )


I have never used it
by cnavarro
Tue Dec 03, 2019 10:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: RS232 - dispensing equipment
Replies: 2
Views: 409

Re: Consumo de CPU

... que te ocupa. cR := CommOpen( cP, aSpd[ j ] ) // Aqui es cR IF Empty( cR ) aadd( aDisponible, cP ) ELSE aadd( aNoDisponible, cR ) ENDIF CloseComm( nComm ) // Aqui es nComm
by cnavarro
Mon Jun 17, 2019 6:17 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consumo de CPU
Replies: 9
Views: 1665

Re: Read Com port

... If there is 2nd process coming during 1st process that doesn't finish. Dutch, I use a timer . DEFINE TIMER oTmr INTERVAL 6000 ACTION (BytesAtPort( nComm),oLbx:Refresh()) OF oWnd ACTIVATE TIMER oTmr function BytesAtPort( nComm, nStatus ) local cBuffer:=space(18) ReadComm( nComm, @cBuffer ) select ...
by dutch
Wed Oct 03, 2018 7:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 3075

Re: Read Com port

Dutch, I use a timer . DEFINE TIMER oTmr INTERVAL 6000 ACTION (BytesAtPort( nComm),oLbx:Refresh()) OF oWnd ACTIVATE TIMER oTmr function BytesAtPort( nComm, nStatus ) local cBuffer:=space(18) ReadComm( nComm, @cBuffer ) select RAWPOIDS append blank replace data ...
by Jack
Wed Oct 03, 2018 5:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 3075

Re: Read Com port

>>ReadComm( nComm, @cBuffer ) // <<<<---- program will lock here
>>Msginfo( AllTrim( cBuffer ))

Excuse me, but I do not understand how from these lines, if you run only once, can result two msginfo...

In any way, what is the total string?
by Diego Decandia
Fri Sep 28, 2018 1:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 3075

Re: Read Com port

Hi, I have delete the MsgInfo for the status . I have only this : ReadComm( nComm, @cBuffer ) // <<<<---- program will lock here Msginfo( AllTrim( cBuffer )) But it gives me 2 times the MsgInfo , first with a part of the info and the second with the ...
by Jack
Fri Sep 28, 2018 11:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 3075

Read Com port

... 18 string . How to return the total 18 strings from the BytesAtPort function ?? Thanks #include "FiveWin.ch" function Main() local oDlg, nComm := InitComm() DEFINE DIALOG oDlg TITLE "Testing Comm functions" oDlg:bCommNotify = { | nComm, nStatus | BytesAtPort( nComm, nStatus ...
by Jack
Wed Sep 26, 2018 9:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 3075

Puerto to 485 with converter a USB ,Solucionado

... 2 #define MARKPARITY 3 #define SPACEPARITY 4 #define ONESTOPBIT 0 #define ONE5STOPBITS 1 #define TWOSTOPBITS 2 FUNCTION LeePuerto485() LOCAL nComm, cBloque Public cResultado := "" ,nByteslargo ,cTrIngPuerta001 ,cTrIngPuerta002 cTrIngPuerta001:= Chr( 0x02 ) + Chr( 0x30 ) + Chr( 0x30 ...
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: 1606

Lectura de puertos seriales Solucionado.. gracias

... 2 #define MARKPARITY 3 #define SPACEPARITY 4 #define ONESTOPBIT 0 #define ONE5STOPBITS 1 #define TWOSTOPBITS 2 FUNCTION LeePuerto485() LOCAL nComm, cBloque Public cResultado := "" ,nByteslargo ,cTrIngPuerta001 ,cTrIngPuerta002 cTrIngPuerta001:= Chr( 0x02 ) + Chr( 0x30 ) + Chr( 0x30 ...
by Busmatic_wpb
Tue Feb 06, 2018 11:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2502

Lectura de puertos seriales..

... 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 "02 ...
by Busmatic_wpb
Tue Jan 30, 2018 11:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2502

Consulta sobre OpenComm()

... El primer parámetro lo tengo claro, pero los otros dos no (1024 y 128), ¿puede alguien decirme qué significan y si son obligatorios y opcionales) nComm := OpenComm( "COM5", 1024, 128 ) Gracias por adelantado, Fernando Las Palmas de Gran Canaria
by fernandomoralesdr
Thu Jun 15, 2017 8:21 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre OpenComm()
Replies: 5
Views: 1213

Re: LEER PUERTO SERIAL VIA RDP / readComm ?? Para Antonio

Antonio ... Buena tarde

El retorno es mayor a cero ...

local nComm := OpenComm( "COM5", 1024, 128 )

ALERTA(nComm) // 65007860.00

if ! BuildCommDcb( "COM5:9600,n,8,1", @cDcb )
MsgStop( "Error BUILD!" )
return .f.
endif
by russimicro
Thu Feb 09, 2017 11:20 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: LEER PUERTO SERIAL VIA RDP / SOLUCIONADO PARA LOCAL Y REMOTO
Replies: 28
Views: 7679

Re: LEER PUERTO SERIAL VIA RDP / readComm ?? Para Antonio


n := ReadComm( nComm, @cBuffer)
alert( GetCommError( nComm ) ) // = 0.00 valor retornado
alert(n) // = 0.00 valor retornado
alert(cBuffer) // retorno vacio

by russimicro
Fri Feb 03, 2017 1:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: LEER PUERTO SERIAL VIA RDP / SOLUCIONADO PARA LOCAL Y REMOTO
Replies: 28
Views: 7679
Next

Return to advanced search