Search found 3588 matches

by Roberto Lopez
Fri Mar 17, 2017 12:52 pm
Forum: General Discussions
Topic: Block Check Character (BCC)
Replies: 22
Views: 543

Re: Block Check Character (BCC)

Hi Roberto, I found a BCC explanation on the Polish forum: BCC= The low part of the binary sum of all bytes. That would explain why only a part of the BCC sum agrees with the according manual. Result: '0554' The Hight part is '05' The Low part is: '54' Simply replacing the first two digits of the r...
by Roberto Lopez
Fri Mar 17, 2017 2:23 am
Forum: General Discussions
Topic: Block Check Character (BCC)
Replies: 22
Views: 543

Re: Block Check Character (BCC)

Could it be nibble? (...) The description of BCC in the manual (translated from original Spanish) is as follows: BCC = Four hexadecimales. Binary sum of all prior bytes (...) According Manual: '0000' It seems to me that you wrong read on the description of the calculation of BCC. The sum of the byt...
by Roberto Lopez
Thu Mar 16, 2017 4:57 pm
Forum: General Discussions
Topic: Block Check Character (BCC)
Replies: 22
Views: 543

Re: Block Check Character (BCC)

Edward. <..> Example according to andyglezl DecToHexa (BIntODEC (DecToBin (asciisum ("123")))) is OK, but shorter is NTOC( AsciiSum ( cSent ), 16, 4, '0' ) STX:=CHR(2) ESC:=CHR(27) FS:=CHR(28) ETX:=CHR(3) cSent:=STX+'1'+ESC+'*'+FS+'0000'+FS+'0000'+FS+'0004'+FS+'3'+FS+'83'+FS+'81'+FS+'2'+FS+'0'+FS+'0...
by Roberto Lopez
Thu Mar 16, 2017 4:05 pm
Forum: General
Topic: Facturación en Controlador Fiscal (Argentina)
Replies: 7
Views: 314

Re: Facturación en Controlador Fiscal (Argentina)

Te mando mis rutinas simple de winfis *-------------------------------------------------------------* Function AbrirPuerto( lRetorno ) *-------------------------------------------------------------* nHandler := CallDll32( "OpenComFiscal" , "WINFIS32.DLL" , 1 , 0 ) If nHandler >= 0 Principal.StatusB...
by Roberto Lopez
Thu Mar 16, 2017 3:53 pm
Forum: General Discussions
Topic: Block Check Character (BCC)
Replies: 22
Views: 543

Re: Block Check Character (BCC)

And...

I hope to have some free time during weekend, to check your suggestions and compare with the results shown in the printer manual.

Thanks again.
by Roberto Lopez
Thu Mar 16, 2017 3:50 pm
Forum: General Discussions
Topic: Block Check Character (BCC)
Replies: 22
Views: 543

Re: Block Check Character (BCC)

Yes. It provides a nice OCX and other things, but, I like do my apps portable, so I prefer not to rely on an OCX control that could generate unexpected problems. I mean here the idea to see how libraries provided by the manufacturer calculate the BCC. Since the OCX methods, does not require the use...
by Roberto Lopez
Mon Mar 13, 2017 12:51 am
Forum: General
Topic: Facturación en Controlador Fiscal (Argentina)
Replies: 7
Views: 314

Re: Facturación en Controlador Fiscal (Argentina)

Si, exactamente lo que hice, fue declarar la impresora fiscal bajo mi cargo y que el programaba cumple los requisitos que es la conmitancia que es lo que el scanner lee se imprime ... Ahora estoy tratando de ponerme al día con las impresoras fiscales de segunda generación Hasar y viendo el tema de ...
by Roberto Lopez
Mon Mar 13, 2017 12:47 am
Forum: General Discussions
Topic: Block Check Character (BCC)
Replies: 22
Views: 543

Re: Block Check Character (BCC)

I'm using such a function with communication with Polish fiscal printers to calculate CRC: function CalculateCRC param cString local nResult := 0xff local nChar local i local cRetValue for i:=1 to len(cString) nChar := asc(substr(cString,i,1)) nResult := numxor(nResult, nChar) next i // conversion ...
by Roberto Lopez
Mon Mar 13, 2017 12:44 am
Forum: General Discussions
Topic: Block Check Character (BCC)
Replies: 22
Views: 543

Re: Block Check Character (BCC)

<...> In my opinion the binary sum of all bytes is nothing but the sum of the ASCII codes of each character in the string. From a mathematical point of view, it does not matter if we add up the number of binary, hexadecimal or decimal notation. The sum should always be the same. For example: the su...
by Roberto Lopez
Thu Mar 09, 2017 11:51 pm
Forum: General
Topic: Facturación en Controlador Fiscal (Argentina)
Replies: 7
Views: 314

Re: Facturación en Controlador Fiscal (Argentina)

Perdón por no responder ya que estoy sin internet desde el 2 enero 2017.. Estoy desconectado del foro x ese motivo; si todavía tiene ese problema.Me fijo en mi cuenta afip Pueden usar mi celular que está más abajo para comunicarse conmigo mediante WhatsApp Gracias por tu respuesta Daniel. Encontré ...